Files

739 B
Raw Permalink Blame History

ezoic_radyasyon.js — scheduleRestore() (satır 70)

← ezoic_radyasyon.js · ← Master

function scheduleRestore(ctx, x, y, z, blockState) {
    ctx.scheduleScript(RESTORE_TICKS, function (cc) {
        var w = cc.getWorld();
        if (!w) return;
        var cur = w.getBlock(x, y, z);
        if (cur && cur.getBlockId() === "minecraft:air") {
            w.setBlock(blockState, x, y, z);
            var p = mappet.getParticleType("happyVillager");
            if (p) w.spawnParticles(p, true, x + 0.5, y + 0.5, z + 0.5, 4, 0.3, 0.3, 0.3, 0.02);
            w.playSound("minecraft:block.stone.place", x + 0.5, y + 0.5, z + 0.5, 0.3, 1.4);
        }
    });
}