kit_item_snowbomb:
type: item
material: snow_ball
display name: Snow Bomb Kit
enchantments:
- durability:1
lore:
- Click for a high-damage
- exploding snowball throw!
kit_item_snowbomb_world:
type: world
events:
on player clicks with kit_item_snowbomb:
- shoot snowball o:<player> d:<player.location.cursor_on> speed:2 script:kit_item_snowbomb_impact
- take iteminhand
- determine cancelled
kit_item_snowbomb_impact:
type: task
script:
- if <def[last_entity]> != null {
- - explode %location% power:1 fire breakblocks
- - explode %location% power:3
- {
+ - explode <def[location]> power:1 fire breakblocks
+ - explode <def[location]> power:3
+ }