Files

41 lines
1.8 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.
# gojo_purple.js — main() (satır 9)
[← gojo_purple.js](index.md) · [← Master](../../wiki.md)
Parça 11/14 · [önceki](main-10.md) · [sonraki](main-12.md)
```javascript
// 3. Bloğu 80 tick (4 saniye) sonra sihirli bir şekilde geri yükle
(function(rx, ry, rz, rs) {
ctx.scheduleScript(80, function(c) {
if (c.getWorld().getBlock(rx, ry, rz).getBlockId() === "minecraft:air") {
c.getWorld().setBlock(rs, rx, ry, rz);
// Geri yükleme partikülü
var pType = mappet.getParticleType("portal");
if (pType) {
c.getWorld().spawnParticles(pType, true, rx + 0.5, ry + 0.5, rz + 0.5, 3, 0.2, 0.2, 0.2, 0.02);
}
}
});
})(x, y, z, blockState);
}
}
}
}
}
if (blockDestroyedThisTick) {
world.playSound("minecraft:entity.generic.explode", px, py, pz, 0.6, 0.55);
world.playSound("minecraft:block.stone.break", px, py, pz, 1.2, 0.6);
}
// === ALAN TARAMASI: KÜRE FORMU + VAKUM + ÖLDÜR ===
var entities = world.getEntities(px, py, pz, killRadius);
for (var i = 0; i < entities.size(); i++) {
var e = entities.get(i);
if (e.isSame(player)) continue; // Güvenli kendi-isSame karşılaştırması (çökmeyi & oyuncu çekmesini önler)
var ePos = e.getPosition();
var dx = px - ePos.x;
```