Files

35 lines
1.1 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.
# Darklord.js — bloodPoolTransit() (satır 1712)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function bloodPoolTransit(c, p, arg)
{
var near = nearestBloodPool(p, true);
if (!near)
{
p.send(TAG + "\u00a78Yakinda kara kan gecidi yok. Once \u00a74!kan_yay\u00a78.");
return;
}
var target = findBloodTransitTarget(c, p, arg);
if (!target)
{
p.send(TAG + "\u00a78Gecilecek kardes bulunamadi.");
return;
}
var from = p.getPosition();
var to = target.getPosition();
spawnTransitBurst(p.getWorld(), from.x, from.y + 0.8, from.z);
try { p.setPosition(to.x + 0.8, to.y, to.z + 0.8); } catch (e1) {}
try { p.setFallDistance(0); } catch (e2) {}
var np = p.getPosition();
spawnTransitBurst(p.getWorld(), np.x, np.y + 0.8, np.z);
play(p.getWorld(), "minecraft:block.portal.travel", np.x, np.y + 1.0, np.z, 0.8, 0.65);
p.send(TAG + "\u00a74Kara kan seni " + roleNameByPlayer(target.getName()) + "\u00a74 tarafina tasidi.");
}
```