Files

27 lines
899 B
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.
# HologramMenu.js — kalkanAktifEt() (satır 308)
[← HologramMenu.js](index.md) · [← Master](../../wiki.md)
Parça 5/5 · [önceki](kalkanAktifEt-4.md)
```javascript
e.setMotion(pX, pY, pZ);
} catch(err) {
// Eğer setMotion apide yoksa (eski sürümler için) eklenti olarak ekle
e.addMotion(pX, pY, pZ);
}
// Kalkan efekti
spawnFx(world, "hugeexplosion", ex, ey+1, ez, 2, 0.3, 0.3, 0.3, 0.1);
spawnFx(world, "endRod", ex, ey+1, ez, 5, 0.3, 0.5, 0.3, 0.2);
world.playSound("minecraft:block.glass.break", ex, ey, ez, 1.0, 0.8);
}
}
ctx.scheduleScript(CONFIG.kalkan_kontrol_interval, kalkanLoop);
}
c.scheduleScript(CONFIG.kalkan_kontrol_interval, kalkanLoop);
}
```