Files
MAPPET-ULTIMATE-WIKI/scripts/Ae/transparentOwnerMorphNbt-35.md

55 lines
1.9 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.
# Ae.js — transparentOwnerMorphNbt() (satır 808)
[← Ae.js](index.md) · [← Master](../../wiki.md)
Parça 35/38 · [önceki](transparentOwnerMorphNbt-34.md) · [sonraki](transparentOwnerMorphNbt-36.md)
```javascript
play(c.getWorld(), "minecraft:block.portal.trigger", s.centerX, s.centerY + 1.0, s.centerZ, 0.9, side === "ally" ? 0.8 : 0.55);
}
catch (e) {}
saveState(s);
}
function callHandler(c)
{
var owner = getPlayer(c);
if (!isOwner(owner)) return;
var ctx = owner.getUIContext();
if (!ctx || ctx.isClosed()) return;
var last = ctx.getLast();
if (last === "close" || last === "x")
{
owner.closeUI();
return;
}
if (last === "ally" || last === "enemy")
{
var data = ctx.getData();
var playerName = getDataString(data, "call_name", "");
callPlayerToSide(c, owner, playerName, last);
owner.closeUI();
}
}
function damage(c) { forceOwnerProtectionEvent(c); }
function damaged(c) { forceOwnerProtectionEvent(c); }
function hurt(c) { forceOwnerProtectionEvent(c); }
function attack(c) { handleProtectionEvent(c); }
function attacked(c) { forceOwnerProtectionEvent(c); }
function potion(c) { forceOwnerProtectionEvent(c); }
function effect(c) { forceOwnerProtectionEvent(c); }
function morph(c) { if (!handleProtectedMorphEvent(c)) forceTargetMorphEvent(c); }
function morphed(c) { if (!handleProtectedMorphEvent(c)) forceTargetMorphEvent(c); }
function morphChanged(c) { if (!handleProtectedMorphEvent(c)) forceTargetMorphEvent(c); }
function changedMorph(c) { if (!handleProtectedMorphEvent(c)) forceTargetMorphEvent(c); }
function gameMode(c) { forceTargetMorphEvent(c); }
function gamemode(c) { forceTargetMorphEvent(c); }
function spectator(c) { forceTargetMorphEvent(c); }
function morphIzin(c) { openOwnerMorphPermit(c, getPlayer(c)); }
```