1.8 KiB
1.8 KiB
ezoic_viltrumite.js — doStomp() (satır 674)
← ezoic_viltrumite.js · ← Master
ww.playSound("minecraft:entity.generic.explode", cx, cy, cz, 4.0, 0.3);
ww.playSound("minecraft:entity.lightning.thunder", cx, cy, cz, 3.0, 0.5);
ww.playSound("minecraft:block.anvil.land", cx, cy, cz, 3.0, 0.4);
ww.playSound("minecraft:entity.wither.break_block", cx, cy, cz, 2.5, 0.6);
spawnFx(ww, "hugeexplosion", cx, cy, cz, 1, 0, 0, 0, 0);
spawnFx(ww, "largeexplode", cx, cy+0.3, cz, 3, 1.0, 0.3, 1.0, 0);
spawnFx(ww, "largesmoke", cx, cy, cz, 12, 1.5, 0.5, 1.5, 0.05);
spawnFx(ww, "cloud", cx, cy+0.2, cz, 10, 2.0, 0.2, 2.0, 0.08);
// Entity push (10 blok)
var ents = ww.getEntities(cx, cy + 1, cz, 10);
for (var ei = 0; ei < ents.size(); ei++) {
var e = ents.get(ei);
if (e.isSame(pp) || isEzoic(e)) continue;
if (!e.isLivingBase()) continue;
var ep = e.getPosition();
var dx = ep.x - cx, dz = ep.z - cz;
var d = Math.sqrt(dx*dx + dz*dz);
if (d < 0.01) d = 0.01;
var f = 3.0 * (1 - Math.min(d, 10)/10) + 0.5;
e.addMotion((dx/d)*f, 0.8 + f*0.2, (dz/d)*f);
e.setFallDistance(0);
e.damage(20);
}
// Krater
destroyCrater(ctx, cx, cy, cz, 4);
// Zemin şok dalgası
var wt = 0;
var wStep = 1.5;
function groundWave(sc) {
var gr = wt * wStep;
if (gr >= 10) return;
var sw = sc.getWorld();
var gpts = Math.min(16, 8 + Math.floor(gr));
for (var gi = 0; gi < gpts; gi++) {