Skip to content

Commit

Permalink
added command to get bubble_cannon
Browse files Browse the repository at this point in the history
also now gives arrows
  • Loading branch information
moltenwolfcub committed Sep 26, 2021
1 parent 1ae1989 commit 2dce619
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/aquallotle/functions/bubble_cannon/main.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
give @a[tag=aquallotle,scores={aquallotle_canon=1..}] bow{CustomModelData:1b,Unbreakable:1,display:{Name:'{"text":"Aquallotle Bubble Bazooka"}'}}
scoreboard players set @a[scores={aquallotle_canon=1..}] aquallotle_canon 0

scoreboard players enable @a[tag=aquallotle] aquallotle_canon
item replace entity @a[tag=aquallotle,nbt={SelectedItem:{id: "minecraft:bow",tag: {CustomModelData:1b}}},nbt=!{Inventory:[{"id":"minecraft:arrow"}]}] inventory.0 with minecraft:arrow 64

execute at @e[type=arrow] if entity @a[distance=..2,tag=aquallotle,nbt={SelectedItem: {id: "minecraft:bow", tag: {CustomModelData:1b}}}] run summon minecraft:snowball ~ ~ ~ {Tags:["bubbleball"],Item:{id:"minecraft:snowball",Count:1b,tag:{CustomModelData:2}}}
execute as @e[type=minecraft:snowball] at @s run data modify entity @s Motion set from entity @e[type=minecraft:arrow,distance=0,limit=1] Motion
execute as @e[type=minecraft:snowball] at @s run kill @e[type=minecraft:arrow,distance=0,limit=1]
Expand Down
1 change: 1 addition & 0 deletions data/aquallotle/functions/on_load.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ scoreboard objectives add aquallotle_item trigger
scoreboard objectives add aquallotle_baner trigger
scoreboard objectives add aquallotle_head trigger
scoreboard objectives add aquallotle_shiel trigger
scoreboard objectives add aquallotle_canon trigger

scoreboard objectives add aquallotle_drops trigger
scoreboard objectives add aquallotle_block trigger
Expand Down
1 change: 1 addition & 0 deletions data/aquallotle/functions/trigger_remove.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ execute as @a[tag=!aquallotle] run trigger aquallotle_boots set 0
execute as @a[tag=!aquallotle] run trigger aquallotle_head set 0
execute as @a[tag=!aquallotle] run trigger aquallotle_baner set 0
execute as @a[tag=!aquallotle] run trigger aquallotle_shiel set 0
execute as @a[tag=!aquallotle] run trigger aquallotle_canon set 0

attribute @a[limit=1,tag=!aquallotle] minecraft:generic.attack_damage modifier remove f81d4fae-7dec-11d1-a865-03f0c95e6bf7
attribute @a[limit=1,tag=!aquallotle] minecraft:generic.attack_speed modifier remove f81d4fae-7dec-11d1-a865-03f0c95e6bf7
Expand Down
1 change: 1 addition & 0 deletions data/default/functions/uninstall.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ scoreboard objectives remove aquallotle_shiel
scoreboard objectives remove aquallotle_shift
scoreboard objectives remove aquallotle_stand
scoreboard objectives remove aquallotle_petgo
scoreboard objectives remove aquallotle_canon

#endregion
#region drcc
Expand Down

0 comments on commit 2dce619

Please sign in to comment.