Files

25 lines
655 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.
# klon_siluet.js — toggle() (satır 140)
[← klon_siluet.js](index.md) · [← Master](../../wiki.md)
```javascript
function toggle(c, p)
{
var st = p.getStates();
if (st.getNumber(ST_ON) === 1 && isLoopAlive(st)) { stop(p, st); return false; }
var runId = st.getNumber(ST_RUN) + 1;
st.setNumber(ST_ON, 1);
st.setNumber(ST_RUN, runId);
st.setNumber(ST_ALIVE, nowMs());
p.send("§d[Siluet] §faktif §7— tetik: " + MODES[modeIdx(st)].n + "§7. §8(egil+sag tik = ayarlar)");
sound(p, "minecraft:entity.endermen.teleport", 0.6, 1.45);
startLoop(c, p, runId);
return true;
}
```