# IScriptEntity.unlockRotation [← IScriptEntity](index.md) · [← Master](../../wiki.md) Parça 7/17 · [önceki](unlockRotation-6.md) · [sonraki](unlockRotation-8.md) var boots = mappet.createItemNBT(mappet.createCompound("{id:\"minecraft:diamond_boots\",Count:1b,tag:{ench:[{id:0,lvl:4}],RepairCost:1},Damage:0s}")); player.setArmor(helmet, chestplate, leggings, boots) } clearArmor default void clearArmor() Clear the entity's whole armor set. var players = c.getServer().getEntities("@e[type=player]"); for each (var player in players){ player.clearArmor() } setSpeed void setSpeed(float speed) Set entity's speed. getTarget IScriptEntity getTarget() Get this entity's attack target. setTarget void setTarget(IScriptEntity entity) Set this entity's attack target to given entity. // Stop the entity that you're looking at from targeting you. function main(c) { var s = c.getSubject(); var ray = s.rayTrace(64); if (ray.isEntity()) { ray.getEntity().setTarget(null) } } isAIEnabled boolean isAIEnabled() Check whether entity's AI is enabled. setAIEnabled void setAIEnabled(boolean enabled) Set entity's AI to be enabled or disabled (if it has it). getUniqueId java.lang.String getUniqueId() Get unique ID of this entity, which can be used, if needed, in commands as a target selector. function main(c) { var uuid = c.getSubject().getUniqueId() var entity = c.getServer().getEntity(uuid) var motion = c.getSubject().getMotion(); entity.setMotion(motion.x, motion.y+3, motion.z) } getEntityId java.lang.String getEntityId() Get entity's resource location ID, like minecraft:pig or minecraft:zombie. getTicks int getTicks() Get how many ticks did this entity existed. getCombinedLight int getCombinedLight()