From b6fe264a76471b545bc288ce75f74b2b523398ca Mon Sep 17 00:00:00 2001 From: gnembon Date: Tue, 1 Oct 2019 10:47:25 -0300 Subject: [PATCH] pickup delay docs --- src/main/java/carpet/script/CarpetExpression.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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')

@@ -1567,7 +1569,8 @@ public class CarpetExpression *

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)

@@ -1586,6 +1589,7 @@ public class CarpetExpression *

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.

+ * *

Entity Events

*

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