diff --git a/src/main/java/carpet/script/CarpetExpression.java b/src/main/java/carpet/script/CarpetExpression.java index d6ff1f4e..621a62b2 100644 --- a/src/main/java/carpet/script/CarpetExpression.java +++ b/src/main/java/carpet/script/CarpetExpression.java @@ -1474,9 +1474,11 @@ public class CarpetExpression *
query(e,'age')Age, in ticks, of the entity, i.e. how long it existed.
*query(e,'item')Name of the item if its an item entity, null otherwise
The item triple (name, count, nbt) if its an item entity, null otherwise
query(e,'count')Number of items in a stack from item entity, null otherwise
query(e,'pickup_delay')Retrieves pickup delay timeout for an item entity, null otherwise
query(e,'is_baby')Boolean, true if its a baby.
*query(e,'target')modify(e, 'accelerate', x, y, z), modify(e, 'accelerate', l(x, y, z) )Adds a vector to the motion vector. Most realistic way to apply a force to an entity.
*modify(e, 'custom_name'), modify(e, 'custom_name', name )Sets a custom name for an entity. Removes a custom name if the argument is null
modify(e,'pickup_delay')Sets a custom pickup delay if the entity argument is an item entity
*modify(e, 'dismount')Dismounts riding entity.
*modify(e, 'mount', other)Sets AI to stay around the home position, within distance blocks from it. distance
* defaults to 16 blocks. null removes it. May not work fully with mobs that have this AI built in, like
* Villagers.
There is a number of events that happen to entities that you can attach your own code to in the form of event * handlers. The event handler is any function that runs in your package that accepts certain expected parameters, which