1.8 KiB
1.8 KiB
ezoic_radyasyon.js — runBlast() (satır 237)
← ezoic_radyasyon.js · ← Master
Parça 1/2 · sonraki
function runBlast(c) {
var p = c.getPlayer();
if (!p) return;
var w = c.getWorld();
var pos = p.getPosition();
var cx = pos.x, cy = pos.y + 1, cz = pos.z;
p.sendTitleDurations(0, 25, 10);
p.sendTitle("§a§l☢ PATLAMA ☢");
w.playSound("minecraft:entity.generic.explode", cx, cy, cz, 4.0, 0.4);
w.playSound("minecraft:entity.wither.spawn", cx, cy, cz, 3.0, 0.5);
w.playSound("minecraft:entity.lightning.thunder", cx, cy, cz, 4.0, 0.6);
w.playSound("minecraft:entity.enderdragon_fireball.explode", cx, cy, cz, 3.5, 0.7);
spawnFx(w, "hugeexplosion", cx, cy, cz, 8, 1.0, 1.0, 1.0, 0.0);
spawnFx(w, "largeexplode", cx, cy, cz, 6, 2.0, 2.0, 2.0, 0.0);
// İç dolgu — 15 blok içinde yoğun radyasyon bulutu
for (var i = 0; i < 90; i++) {
var ang = Math.random() * Math.PI * 2;
var r = Math.random() * INNER_RADIUS;
var px = cx + Math.cos(ang) * r;
var pz = cz + Math.sin(ang) * r;
var py = cy + Math.random() * 4;
spawnFx(w, "happyVillager", px, py, pz, 2, 0.3, 0.3, 0.3, 0.02);
spawnFx(w, "dragonbreath", px, py, pz, 1, 0.5, 0.5, 0.5, 0.05);
if (i % 3 === 0) spawnFx(w, "endRod", px, py, pz, 1, 0.1, 0.5, 0.1, 0.05);
}
// Dış halka (30 blok) — seyrek patlama parlamaları
for (var k = 0; k < 24; k++) {
var ka = (k / 24) * Math.PI * 2;
var krx = cx + Math.cos(ka) * OUTER_RADIUS;
var krz = cz + Math.sin(ka) * OUTER_RADIUS;
spawnFx(w, "largeexplode", krx, cy, krz, 1, 0.4, 0.4, 0.4, 0.0);