Files

27 lines
1022 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.
# bariskeser_skills.js — cast_haste() (satır 1021)
[← bariskeser_skills.js](index.md) · [← Master](../../wiki.md)
```javascript
function cast_haste(c) {
var p = c.getPlayer(); if (!p) return;
if (guard(p, "haste")) return;
var w = c.getWorld(), pos = p.getPosition();
title(p, "§e§lHIZ", "§6şimşek gibi");
w.playSound("minecraft:entity.bat.takeoff", pos.x, pos.y, pos.z, 1, 1.6);
var sp = mappet.getPotion("speed"), jb = mappet.getPotion("jump_boost"), ha = mappet.getPotion("haste");
var dur = 240;
if (sp) p.applyPotion(sp, dur, 2, false);
if (jb) p.applyPotion(jb, dur, 2, false);
if (ha) p.applyPotion(ha, dur, 2, false);
for (var s = 0; s < 10; s++) {
var aa = (s / 10) * Math.PI * 2;
showHead(w, pos.x + Math.cos(aa) * 1.2, pos.y + 1, pos.z + Math.sin(aa) * 1.2, 1.1, 6);
}
fx(w, "crit", pos.x, pos.y + 1, pos.z, 30, 0.6, 0.8, 0.6, 0.1);
p.sendActionBar("§e12 saniye boyunca hızlandın!");
}
```