722 B
722 B
ezoic_fly.js — scheduleRestore() (satır 30)
function scheduleRestore(ctx, x, y, z, blockState) {
ctx.scheduleScript(RESTORE_TICKS, function(cc) {
var w = cc.getWorld();
if (!w) return;
try {
var cur = w.getBlock(x, y, z);
if (cur && cur.getBlockId() === "minecraft:air") {
w.setBlock(blockState, x, y, z);
spawnFx(w, "happyVillager", 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);
}
} catch (e) {}
});
}