Files

1.9 KiB
Raw Permalink Blame History

ezoic_fly.js — main() (satır 115)

← ezoic_fly.js · ← Master

Parça 5/9 · önceki · sonraki

                if (t % 8 === 0) {
                    ww.playSound("minecraft:entity.blaze.shoot", cx, cy, cz, 0.5, 2.0);
                }
            }

        } else if (wasFlying === 1 && onGround) {
            // ============================================================
            //  SUPERHERO LANDING — Yere iniş
            // ============================================================
            s2.setNumber("ezoic_fly_was_flying", 0);
            s2.setNumber("ezoic_fly_is_falling", 0);
            lastState = 0;
            hoverCmdSent = false;
            fastCmdSent = false;

            if (isFalling === 1) {
                // İniş komutu
                pp.executeCommand("mp event trigger @s ezoicfly3");

                // === SUPERHERO LANDING (optimize — partikül ticklere yayıldı) ===

                // Tick 0: Patlama sesi + merkez efekt (hafif)
            ww.playSound("minecraft:entity.generic.explode",     cx, cy, cz, 3.0, 0.6);
            ww.playSound("minecraft:entity.lightning.thunder",   cx, cy, cz, 2.0, 0.8);
            ww.playSound("minecraft:entity.wither.break_block",  cx, cy, cz, 2.0, 0.7);

            spawnFx(ww, "hugeexplosion",  cx, cy, cz, 1, 0, 0, 0, 0);
            spawnFx(ww, "largeexplode",   cx, cy + 0.5, cz, 3, 1.0, 0.3, 1.0, 0);
            spawnFx(ww, "largesmoke",     cx, cy, cz, 15, 1.5, 0.5, 1.5, 0.05);
            spawnFx(ww, "cloud",          cx, cy + 0.3, cz, 12, 2.0, 0.3, 2.0, 0.08);

            // === 3 BLOK İÇİNDEKİ ENTITY'LERİ GERİ PUSHLA ===
            var ents = ww.getEntities(cx, cy + 1, cz, PUSH_RADIUS);
            for (var ei = 0; ei < ents.size(); ei++) {