Bump to 1.0.6-SNAPSHOT; add ENDERMAN_ATTACK_PLAYER and FORMBLOCK actions; refactor Validator, NodeHandler and Policy to be aware of world the action takes place instead of entity (for supporting entity-less actions like FORMBLOCK); change VersionMatcher to load 1.21 implementation on all versions that don't match b1.7.3 to support future versions; properly register autocomplete for /eye command.
This commit is contained in:
parent
da27a0a40c
commit
1f053c00ac
32 changed files with 213 additions and 828 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Nodes
|
||||
Nodes narrow down even further if an action can be done or not. A node needs _properties_ to know what it should check against, for example, a HIT node needs a _list_ of blocks that it will check if the player is holding; while a USE_ENCHANTMENT node needs a mapping of enchantment to level. Some nodes like glyde don't need a value and will ignore if you provide one.
|
||||
Nodes narrow down even further if an action can be done or not. A node needs _properties_ to know what it should check against, for example, a HIT node needs a _list_ of blocks that it will check if the player is holding; while a USE_ENCHANTMENT node needs a mapping of enchantment to level. Some nodes like GLYDE don't need a value and will ignore if you provide one.
|
||||
```yaml
|
||||
nodes:
|
||||
- [HIT]:
|
||||
|
|
@ -31,4 +31,11 @@ Triggered on `InventoryClickEvent` and `PlayerInteractEvent` (only if item is an
|
|||
Triggered on `PlayerMoveEvent`, returns true if player is gliding.
|
||||
|
||||
### USE_ENCHANTMENT
|
||||
Triggered on `BlockBreakEvent` and `onEntityDamageByEntityEvent`, returns true the used item has an enchantment matching the provided mapping of enchantment-level.
|
||||
Triggered on `BlockBreakEvent` and `onEntityDamageByEntityEvent`, returns true when the used item has an enchantment matching the provided mapping of enchantment-level.
|
||||
|
||||
### FORMBLOCK
|
||||
Triggered on `BlockFormEvent` (ex. triggers when snow is formed from rain), returns true when the block being formed is in the provided list of materials.
|
||||
|
||||
## ENDERMAN_ATTACK_PLAYER
|
||||
Triggered on `EndermanAttackPlayerEvent` (from actions other than hitting the Enderman), returns true.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue