bomb arrows
Author: biteate
Created: 2014-04-16T05:22:22-0400
Edited: 2014-04-16T05:22:22-0400
Denizen Version: 0.9.4
Views: 2
Downloads: 616
Likes: 0
Description: Here is an arrow which explode when touch the ground.
It only can be used in survive.
In can be switched between the normal ones, only put them(the bombs) in the inventory(the hud one)...
...you can add "breakblocks" after explode "power:4 <context.location> fire" if you want some fun...
'arrow_with_dinamite':
type: item
material: arrow
display name: Bomb Arrow
recipe:
- i@air|i@77|i@air
- i@air|i@46|i@air
- i@air|i@262|i@air
no_id: false
bound: true
'arrow_bomb':
type: world
events:
on entity shoots bow:
- ^flag <player> arrow_bomb_b:0
- ^flag <player> arrow_bomb_a:0
- flag <player> arrow_bomb_b:<player.inventory.qty[i@arrow_with_dinamite]>
on projectile hits block:
- ^flag <player> arrow_bomb_a:<player.inventory.qty[i@arrow_with_dinamite]>
- ^if '<player.flag[arrow_bomb_b].sub[1]>' == '<player.flag[arrow_bomb_a]>' flag <player> bomb:1
- if '<player.flag[bomb]>' == 1 explode power:4 <context.location> fire
- flag <player> bomb:0
- flag <player> arrow_bomb_b:0
- flag <player> arrow_bomb_a:0