Рет қаралды 3,708
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_sword",Slot:-106b}]}] at @s run item replace entity @s weapon.offhand with air
tag @p add nak
execute as @e[tag=nak] at @s if block ~ ~-1 ~ minecraft:air run tp @s ~ ~-1 ~
execute as @e[tag=nak] at @s unless block ~ ~-1.5 ~ minecraft:air run particle minecraft:explosion ~ ~.3 ~ 2 0 2 0 50 force
execute as @e[tag=nak] at @s run playsound minecraft:entity.lightning_bolt.impact master @s ~ ~ ~ 1 1.5
execute as @e[tag=nak] at @s unless block ~ ~-1.5 ~ minecraft:air run particle minecraft:lava ~ ~.3 ~ 2 0 2 0 50 force
tag @p remove nak
give @p netherite_sword 1
execute at @e[tag=nak] as @e[distance=..5,tag=!nak] at @s run effect give @s minecraft:instant_damage 1 1