28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# denem.js — detonateArea() (satır 165)
|
||
|
||
[← denem.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
Parça 2/2 · [önceki](detonateArea.md)
|
||
|
||
```javascript
|
||
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);
|
||
}
|
||
```
|