Files

42 lines
1.6 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.
# ezoic_radyasyon.js — runSlam() (satır 471)
[← ezoic_radyasyon.js](index.md) · [← Master](../../wiki.md)
Parça 3/3 · [önceki](runSlam-2.md)
```javascript
if (i % 2 === 0) spawnFx(ww2, "largeexplode", rx, cy + 0.3, rz, 1, 0.0, 0.0, 0.0, 0.0);
}
}
// Yüzeysel yıkım sadece iç halkada (ilk 6 blok)
if (waveT < 6) {
var seedCount = 4 + Math.floor(r);
for (var sd = 0; sd < seedCount; sd++) {
var sda = Math.random() * Math.PI * 2;
var sdr = r * (0.8 + Math.random() * 0.2);
var sdx = Math.floor(cx + Math.cos(sda) * sdr);
var sdz = Math.floor(cz + Math.sin(sda) * sdr);
var sdy = Math.floor(cy);
var bs = ww2.getBlock(sdx, sdy, sdz);
if (!bs) continue;
var bid = bs.getBlockId();
if (bid === "minecraft:air" || bid === "minecraft:bedrock" || bid === "minecraft:barrier") continue;
if (ww2.getTileEntity(sdx, sdy, sdz) !== null) continue;
ww2.setBlock(mappet.createBlockState("minecraft:air", 0), sdx, sdy, sdz);
scheduleRestore(wctx, sdx, sdy, sdz, bs);
}
}
if (waveT % 2 === 0) {
ww2.playSound("minecraft:entity.generic.explode", cx, cy, cz, 0.8, 0.5 + waveT * 0.04);
}
waveT++;
wctx.scheduleScript(1, waveLoop);
}
waveLoop(ctx);
});
}
```