Effects
- Sound effect - Particle effect - offHand tnt for visualization
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# give and remove tnt
|
||||
item replace entity @a[tag=hc.get_tnt] armor.head with tnt{HideFlags:1,Enchantments:[{id:"minecraft:binding_curse",lvl:1s}]} 1
|
||||
item replace entity @a[tag=hc.give_tnt] armor.head with air 1
|
||||
item replace entity @a[tag=hc.get_tnt] armor.head with tnt{HideFlags:1,Enchantments:[{id:"minecraft:binding_curse",lvl:1s}],AttributeModifiers:[{Slot:"head",AttributeName:"generic.movement_speed", Name:"generic.movement_speed", Amount:0.02, Operation:0, UUID:[I;1,1,1,1]}],display:{Name:'[{"text":"Hostile boom box","color":"#de3131","italic":false}]',Lore:['{"text":"Stop reading.. get rid of it!"}','{"text":""}','{"text":"+2% Speed","color":"dark_green","italic":false}']}} 1
|
||||
clear @a[tag=hc.give_tnt] minecraft:tnt
|
||||
|
||||
# tnt in offhand
|
||||
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] if entity @s[nbt=!{Inventory:[{Slot:-106b,id:"minecraft:tnt"}]}] run clear @s minecraft:tnt{clear:1b}
|
||||
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] if entity @s[nbt=!{Inventory:[{Slot:-106b,id:"minecraft:tnt"}]}] run item replace entity @s weapon.offhand with minecraft:tnt{clear:1b}
|
||||
|
||||
# remove get/give tag
|
||||
tag @a remove hc.get_tnt
|
||||
tag @a remove hc.give_tnt
|
@ -1,4 +1,6 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
playsound minecraft:entity.firework_rocket.launch record @a ~ ~ ~ 1 1 1
|
||||
particle minecraft:totem_of_undying ~ ~1 ~ 0 0 0 1 30 normal
|
||||
advancement revoke @s only herohost:tnt/get_tnt
|
||||
tag @s add hc.get_tnt
|
@ -1,4 +1,4 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
advancement revoke @s only herohost:tnt/give_tnt
|
||||
tag @s add hc.give_tnt
|
||||
tag @s add hc.give_tnt
|
||||
|
Reference in New Issue
Block a user