24 lines
927 B
Markdown
24 lines
927 B
Markdown
# 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);
|
||
}
|
||
```
|