-
Notifications
You must be signed in to change notification settings - Fork 0
api
Also see note for better understanding.
These APIs are function tags. Add your functions into these tags.
Triggered when starting the creation of the structure, regardless of whether the targeted block is valid.
Execution Context:
| Context | Value |
|---|---|
| Executor | The player who creates the structure |
| Dimension | The player's current dimension |
| Position | The position of the player |
| Rotation | The rotation of the player |
| Anchor | feet |
Triggered during post-updates for valid blocks in the structure, immediately before removing the blocks. Each block update triggers this tag once. Invalid blocks will not respond.
Execution Context:
| Context | Value |
|---|---|
| Executor | Player (1st update) / Block displays or item displays (subsequent updates) |
| Dimension | The player's current dimension |
| Position | The position of the block |
| Rotation | The rotation of the player |
| Anchor | feet |
Triggered when finishing the creation of the structure. Will not trigger if the targeted block is invalid.
Execution Context:
| Context | Value |
|---|---|
| Executor | The player who creates the structure |
| Dimension | The player's current dimension |
| Position | The position of the player |
| Rotation | The rotation of the player |
| Anchor | feet |
Triggered when starting to transform the structure into blocks.
Execution Context:
| Context | Value |
|---|---|
| Executor | The player who blockifies the structure |
| Dimension | The player's current dimension |
| Position | The position of the player |
| Rotation | The rotation of the player |
| Anchor | feet |
Triggered during blockifying the structure, immediately after placing the blocks. Each block/item display triggers this tag once.
Execution Context:
| Context | Value |
|---|---|
| Executor | Block display or item display |
| Dimension | The root's current dimension |
| Position | The position of the root |
| Rotation | The rotation of the root |
| Anchor | feet |
Triggered when finishing blockifying the structure.
Execution Context:
| Context | Value |
|---|---|
| Executor | The player who creates the structure |
| Dimension | The player's current dimension |
| Position | The position of the player |
| Rotation | The rotation of the player |
| Anchor | feet |
These APIs are block tags. Add new blocks into these tags.
Blocks that are invalid in structures. Most of them are commmon in a normal world.
Blocks that will transform into item displays instead of block displays.
Blocks that will use tinted models.
Note: you still need to define an overridden item model mappings for that block. You can check Python scripts in the
resourcepackbranch.
These APIs are predicates. Call them directly as needed.
Check whether the player is morphed.