shoot_mount_test:
type: world
debug: true
events:
- on player right clicks at armor_stand:
- - if !<player.has_passenger||false> && <player.item_in_hand.material.name> != stick:
+ after player right clicks at bomb_entity:
+ - if !<player.has_passenger||false> && <player.item_in_hand.material.name> != player_head:
- mount <context.entity>|<player>
- - else:
+ - else if <player.passenger||false> == <context.entity||false>:
- - determine cancelled
- on player right clicks with stick:
- - if !<context.player.has_passenger||false>:
- - mount armor_stand|<player>
- on player damages armor_stand:
- - if <player.passenger||false> == <context.entity||false>:
- - determine passively cancelled
- mount cancel <player.passenger>
- wait 2t
- shoot <context.entity> origin:<player.location> destination:<player.location.cursor_on>
+ after player right clicks with bomb_item:
+ - if !<context.player.has_passenger||false>:
+ - mount bomb_entity|<player>
+
+bomb_item:
+ type: item
+ debug: false
+ material: i@player_head[skull_skin=4bf7a3f5-0839-4fe3-a39c-ba6216130a52|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmM1NjNiOWI1ODI0MDlmNDFmMGUwNzgxYTk4M2FmZTNkOGZlMmZiZjM4M2M1M2E1ZDI3NDMxNTU1NjRkNjgifX19]
+ display name: Bomb
+
+bomb_entity:
+ type: entity
+ entity_type: e@armor_stand
+ invulnerable: false
+ custom_name: Bomb
+ is_small: true
+ equipment: li@i@air|i@air|i@air|i@player_head[skull_skin=4bf7a3f5-0839-4fe3-a39c-ba6216130a52|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmM1NjNiOWI1ODI0MDlmNDFmMGUwNzgxYTk4M2FmZTNkOGZlMmZiZjM4M2M1M2E1ZDI3NDMxNTU1NjRkNjgifX19]|i@air
+ #visible: false
+ disabled_slots: HEAD|CHEST|LEGS|FEET