Files

48 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.
# ezoic_fly.js — main() (satır 115)
[← ezoic_fly.js](index.md) · [← Master](../../wiki.md)
Parça 8/9 · [önceki](main-7.md) · [sonraki](main-9.md)
```javascript
spawnFx(w2, "flame", rx, cy + 0.1, rz, 1, 0, 0, 0, 0.01);
}
spawnFx(w2, "lava", cx, cy, cz, 8, 1.0, 0.1, 1.0, 0);
spawnFx(w2, "witchMagic", cx, cy + 0.3, cz, 10, 1.5, 0.3, 1.5, 0.02);
});
// Tick 8: Son dağılma
ctx.scheduleScript(8, function(c2) {
var w2 = c2.getWorld();
spawnFx(w2, "largesmoke", cx, cy, cz, 10, 2.0, 0.5, 2.0, 0.03);
spawnFx(w2, "endRod", cx, cy + 0.5, cz, 5, 1.0, 0.3, 1.0, 0.01);
w2.playSound("minecraft:entity.enderdragon.growl", cx, cy, cz, 0.6, 1.5);
});
}
} else if (!flying && onGround) {
// Yerde — önceki durumu sıfırla
if (lastState !== 0) {
lastState = 0;
hoverCmdSent = false;
fastCmdSent = false;
}
s2.setNumber("ezoic_fly_was_flying", 0);
s2.setNumber("ezoic_fly_is_falling", 0);
// Yerde iken minimal partikül (hazır bekliyor efekti)
if (t % 10 === 0) {
spawnFx(ww, "endRod", cx, cy + 0.1, cz, 1, 0.2, 0, 0.2, 0);
}
} else if (!flying && !onGround && wasFlying === 1) {
// Havada ama uçuş kapalı — düşüyor (henüz yere değmedi)
s2.setNumber("ezoic_fly_is_falling", 1);
// Düşerken partikül izi
spawnFx(ww, "cloud", cx, cy + 1, cz, 3, 0.2, 0.2, 0.2, 0);
spawnFx(ww, "largesmoke", cx, cy + 1, cz, 2, 0.15, 0.15, 0.15, 0.02);
}
t++;
```