added 'portal_cooldown' and 'portal_timer' to entity API (query and modify)
This commit is contained in:
1 parent
66c222a77a
commit
ab86fc9292
5 files changed
+65
No files matched your search
@@ -2526,6 +2526,14 @@ Breeding age of passive entity, in ticks. If negative, time to adulthood, if pos
|
||||
|
||||
For living entities, the number of ticks they fall outside of immediate player presence.
|
||||
|
||||
### `query(e, 'portal_cooldown')`
|
||||
|
||||
Number of ticks remaining until an entity can use a portal again.
|
||||
|
||||
### `query(e, 'portal_timer')`
|
||||
|
||||
Number of ticks an entity sits in a portal.
|
||||
|
||||
### `query(e, 'item')`
|
||||
|
||||
The item triple (name, count, nbt) if its an item entity, `null` otherwise
|
||||
@@ -2739,6 +2747,14 @@ Sets the breeding age for the animal.
|
||||
|
||||
Sets a custom despawn timer value.
|
||||
|
||||
### `modify(e, 'portal_cooldown', number)`
|
||||
|
||||
Sets a custom number of ticks remaining until an entity can use a portal again.
|
||||
|
||||
### `modify(e, 'portal_timer', number)`
|
||||
|
||||
Sets a custom number of ticks an entity sits in a portal.
|
||||
|
||||
### `modify(e, 'dismount')`
|
||||
|
||||
Dismounts riding entity.
|
||||
|
||||
Reference in new issue
Block a user