Files

41 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# alan.js — detonateArea() (satır 163)
[← alan.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](detonateArea.md)
```javascript
// Her hedef üzerinde özel patlama sesi çal
world.playSound("minecraft:entity.generic.explode", entPos.x, entPos.y + 1.0, entPos.z, 0.8, 1.25);
// Doğrudan Devasa Hasar çekerek anında öldür (2000k Hasar!)
ent.damage(AREA_CONFIG.DAMAGE_AMOUNT);
}
}
}
// Devasa patlama partikülleri (Ekstrem yoğunlukta siyah duman ve toz yayılımı)
var spread = radius * 0.4;
spawnAreaParticle(world, AREA_CONFIG.PARTICLE_EXPLODE_1, cx, cy, cz, 650, spread, spread * 0.7, spread, 0.1);
spawnAreaParticle(world, AREA_CONFIG.PARTICLE_EXPLODE_2, cx, cy, cz, 450, spread * 1.1, spread * 0.8, spread * 1.1, 0.05);
spawnAreaParticle(world, AREA_CONFIG.PARTICLE_EXPLODE_3, cx, cy, cz, 300, spread * 1.3, spread * 0.9, spread * 1.3, 0.02);
// Kıyamet düzeyinde devasa patlama sesleri
world.playSound("minecraft:entity.generic.explode", cx, cy, cz, 8.0, 0.5);
world.playSound("minecraft:entity.firework.large_blast", cx, cy, cz, 8.0, 0.65);
world.playSound("minecraft:entity.enderdragon.growl", cx, cy, cz, 2.5, 0.5);
// Genişleyen düz şok dalgası tetikle
c.setValue("shockwaveRadius", 2.0);
c.setValue("hitCx", Math.floor(cx));
c.setValue("hitCy", Math.floor(cy));
c.setValue("hitCz", Math.floor(cz));
c.scheduleScript("runShockwave", 1);
// Çemberden Küreye Morflanan partikül animasyonunu başlat
c.setValue("explosionAnimTick", 0);
c.scheduleScript("runExplosionParticles", 1);
}
```