add doc
This commit is contained in:
1 parent
382a13728a
commit
1d8903edf0
2 files changed
+25
-1
No files matched your search
@@ -420,6 +420,10 @@ Numeric function, returning the block light at position (from torches and other
|
|||||||
|
|
||||||
Numeric function, returning the sky light at position (from sky access).
|
Numeric function, returning the sky light at position (from sky access).
|
||||||
|
|
||||||
|
### `real_light(pos)`
|
||||||
|
|
||||||
|
Numeric function, returning the real light at position.
|
||||||
|
|
||||||
### `see_sky(pos)`
|
### `see_sky(pos)`
|
||||||
|
|
||||||
Boolean function, returning true if the block can see sky.
|
Boolean function, returning true if the block can see sky.
|
||||||
|
|||||||
@@ -304,7 +304,15 @@ Number of ticks an entity sits in a portal.
|
|||||||
|
|
||||||
### `query(e, 'item')`
|
### `query(e, 'item')`
|
||||||
|
|
||||||
The item triple (name, count, nbt) if its an item entity, `null` otherwise.
|
The item triple (name, count, nbt) if its an item or item frame entity, `null` otherwise.
|
||||||
|
|
||||||
|
### `query(e, 'offer_flower')`
|
||||||
|
|
||||||
|
The iron golem have red flower in hand or not.
|
||||||
|
|
||||||
|
### `query(e, 'skull_dangerous')`
|
||||||
|
|
||||||
|
The skull is blue or not.
|
||||||
|
|
||||||
### `query(e, 'count')`
|
### `query(e, 'count')`
|
||||||
|
|
||||||
@@ -670,6 +678,18 @@ if the custom name is always visible, even through blocks.
|
|||||||
Sets the entity persistence tag to `true` (default) or `false`. Only affects mobs. Persistent mobs
|
Sets the entity persistence tag to `true` (default) or `false`. Only affects mobs. Persistent mobs
|
||||||
don't despawn and don't count towards the mobcap.
|
don't despawn and don't count towards the mobcap.
|
||||||
|
|
||||||
|
### `modify(e, 'item', item_triple)`
|
||||||
|
|
||||||
|
Sets the item for the item or item frame entity.
|
||||||
|
|
||||||
|
### `modify(e, 'offer_flower', bool)`
|
||||||
|
|
||||||
|
Sets if the iron golem have red flower in hand.
|
||||||
|
|
||||||
|
### `modify(e, 'skull_dangerous', bool)`
|
||||||
|
|
||||||
|
Sets the skull is blue or not.
|
||||||
|
|
||||||
### `modify(e, 'age', number)`
|
### `modify(e, 'age', number)`
|
||||||
|
|
||||||
Modifies entity's internal age counter. Fiddling with this will affect directly AI behaviours of complex
|
Modifies entity's internal age counter. Fiddling with this will affect directly AI behaviours of complex
|
||||||
|
|||||||
Reference in new issue
Block a user