Each CustomItem can have multiple Events with multiple Actions.
Events added so far:
wolfyutilities:player/interact
wolfyutilities:player/consume_item
wolfyutilities:player/interact_entity
wolfyutilities:player/interact_at_entity
wolfyutilities:player/item_break
wolfyutilities:player/item_damage
wolfyutilities:player/item_drop
wolfyutilities:player/item_swap_hand
wolfyutilities:player/item_held
Actions added so far:
wolfyutilities:player/command
wolfyutilities:location/particle_animation
wolfyutilities:location/sound
When applying actions to an event you need to make sure they are using the same or sub type.
Usually the data type is visible in the key of the actions and events like player or location
Data structure:
Data
DataLocation
DataPlayer
DataPlayerEvent - This contains the bukkit event that executed the event.
DataEntity
DataBlock
From this structure you can see that you can use Actions with the DataLocation in Events using the DataPlayer or DataPlayerEvent. But not the other way around!
CustomItems can be configured with Events and Actions now, that are called and executed accordingly.
The settings can be written straight into the json root of the CustomItem:
Each CustomItem can have multiple Events with multiple Actions.
Events added so far:
Actions added so far:
When applying actions to an event you need to make sure they are using the same or sub type. Usually the data type is visible in the key of the actions and events like
player
orlocation
Data structure:
From this structure you can see that you can use Actions with the DataLocation in Events using the DataPlayer or DataPlayerEvent. But not the other way around!