1.8 KiB
IScriptEntity.print
§7cubic_inout§r §7exp_in§r §7exp_out§r §7exp_inout§r §7back_in§r §7back_out§r §7back_inout§r §7elastic_in§r §7elastic_out§r §7elastic_inout§r §7bounce_in§r §7bounce_out§r §7bounce_inout§r §7sine_in§r §7sine_out§r §7sine_inout§r §7quart_in§r §7quart_out§r §7quart_inout§r §7quint_in§r §7quint_out§r
var s = c.getSubject(); var pos = s.getPosition(); s.moveTo("quad_out", 30, pos.x, pos.y+2, pos.z, false);
Parameters: interpolation - The interpolation type used for the movement. durationTicks - The duration of the movement in ticks. x - The target x-coordinate for the entity. y - The target y-coordinate for the entity. z - The target z-coordinate for the entity.
observe
void observe(IScriptEntity entity)
Makes the entity observe the given entity.
c.getSubject().observe(null); //to stop observing
Parameters: entity - The entity to observe
addEntityPatrol
void addEntityPatrol(double x, double y, double z, double speed, boolean shouldCirculate, java.lang.String executeCommandOnArrival)
Adds a patrol point to the entity
var s = c.getSubject(); s.addEntityPatrol(440, 117, 640, 1, true, "particle heart ~ ~1 ~ 0.2 0.2 0.2 1") s.addEntityPatrol(444, 117, 640, 1, true, "particle angryVillager ~ ~1 ~ 0.2 0.2 0.2 1")
Parameters: x - x coordinate y - y coordinate z - z coordinate speed - speed of the entity shouldCirculate - should the entity patrol the points in a loop executeCommandOnArrival - command to execute when the entity arrives at the point
clearEntityPatrols
void clearEntityPatrols()