51 lines
1.7 KiB
Markdown
51 lines
1.7 KiB
Markdown
# IScriptEntity.unlockRotation
|
|
|
|
[← IScriptEntity](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 6/17 · [önceki](unlockRotation-5.md) · [sonraki](unlockRotation-7.md)
|
|
|
|
void setChestplate(IScriptItemStack itemStack)
|
|
|
|
Set the entity's chestplate.
|
|
|
|
var item = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_chestplate\",Count:1b,tag:{ench:[{id:0,lvl:4}],RepairCost:1},Damage:0s}"));
|
|
c.getSubject().setChestplate(item)
|
|
|
|
|
|
setLeggings
|
|
|
|
void setLeggings(IScriptItemStack itemStack)
|
|
|
|
Set the entity's leggings.
|
|
|
|
var item = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_leggings\",Count:1b,tag:{ench:[{id:0,lvl:4}],RepairCost:1},Damage:0s}"));
|
|
c.getSubject().setLeggings(item)
|
|
|
|
|
|
setBoots
|
|
|
|
void setBoots(IScriptItemStack itemStack)
|
|
|
|
Set the entity's boots.
|
|
|
|
var item = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_boots\",Count:1b,tag:{ench:[{id:0,lvl:4}],RepairCost:1},Damage:0s}"));
|
|
c.getSubject().setBoots(item)
|
|
|
|
|
|
setArmor
|
|
|
|
default void setArmor(IScriptItemStack helmet,
|
|
IScriptItemStack chestplate,
|
|
IScriptItemStack leggings,
|
|
IScriptItemStack boots)
|
|
|
|
Set the entity's whole armor set.
|
|
|
|
var players = c.getServer().getAllPlayers();
|
|
|
|
for each (var player in players)
|
|
{
|
|
var helmet = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_helmet\",Count:1b,tag:{ench:[{id:0s,lvl:3s}],RepairCost:1},Damage:0s}"));
|
|
var chestplate = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_chestplate\",Count:1b,tag:{ench:[{id:0,lvl:4}],RepairCost:1},Damage:0s}"));
|
|
var leggings = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_leggings\",Count:1b,tag:{ench:[{id:0,lvl:4}],RepairCost:1},Damage:0s}"));
|