Files

24 lines
927 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.
# Test (2).js — announceTrap() (satır 553)
[← Test (2).js](index.md) · [← Master](../../wiki.md)
```javascript
function announceTrap(c, x, y, z) {
var msgs = [
"\u00a78<\u00a7fLal\u00a78> \u00a77Kapan Kuruldu.",
"\u00a78<\u00a7fLal\u00a78> \u00a77Tuzak Aktiflestirildi.",
"\u00a78<\u00a7fLal\u00a78> \u00a77Sessiz Kapan Hazir.",
"\u00a78<\u00a7fLal\u00a78> \u00a77Gizli Tuzak Yerlesti.",
"\u00a78<\u00a7fLal\u00a78> \u00a77Av Alani Isaretlendi."
];
var msg = msgs[Math.floor(Math.random() * msgs.length)];
sendNearby(c, x, y, z, ANNOUNCE_RANGE, msg);
var w = c.getWorld();
w.playSound("block.tripwire.attach", x, y, z, 0.9, 1.4);
w.playSound("entity.experience_orb.pickup", x, y, z, 0.45, 0.8);
w.playSound("block.note.harp", x, y, z, 0.45, 1.8);
fx(w, "fireworksSpark", x, y, z, 18, 0.35, 0.2, 0.35, 0.02);
}
```