diff --git a/docs/scarpet/api/BlocksAndWorldAccess.md b/docs/scarpet/api/BlocksAndWorldAccess.md index cbf2f515..5af97a3a 100644 --- a/docs/scarpet/api/BlocksAndWorldAccess.md +++ b/docs/scarpet/api/BlocksAndWorldAccess.md @@ -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). +### `real_light(pos)` + +Numeric function, returning the real light at position. + ### `see_sky(pos)` Boolean function, returning true if the block can see sky. diff --git a/docs/scarpet/api/Entities.md b/docs/scarpet/api/Entities.md index 2b36d0a7..10d91e14 100644 --- a/docs/scarpet/api/Entities.md +++ b/docs/scarpet/api/Entities.md @@ -304,7 +304,15 @@ 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. +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')` @@ -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 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)` Modifies entity's internal age counter. Fiddling with this will affect directly AI behaviours of complex