פעולות
What are actions?
Actions are what will happen when an event is triggered.
List of actions:
play_sound
stop_sound
execute_commands
play_particle
shoot_particle
play_effect
increment_durability
decrement_durability
decrement_usages
increment_amount
decrement_amount
drop_exp
feed
replace_properties
give_item
replace_near_blocks
replace_block
glow_near_blocks
multiple_break
potion_effect
remove_potion_effect
explosion
damage_near_entities
damage_entity_in_sight
damage_entity
increment_player_stat
decrement_player_stat
cancel
target_potion_effect
target_remove_potion_effect
play_totem_animation
Delay
Every action has a special attribute delay. It's the delay in ticks before starting the action. For example:
Multiple actions of the same type
You can set the same action multiple times. You just have to add _anything
at the end.
For example if you want to play two sounds you have to write this:
Actions permission
Every action has a special attribute permission.
It's the permission the player must have before starting the action.
For example the player must have myitems.usage.secret_items_dispenser
permission to play the sound.
In this example you will notice an "issue". The sound is played even if the user has no permission for the give event. That's because... well, permission check is only on the give_item.
Setting the same permission to every action
If you want to set the same permission to every action without copy and paste you can!
Use this special attribute all_actions_permission
.
For example:
List of actions properties
Use the online editor to create your files easier.
📄עורך הקבציםLast updated