Рет қаралды 13,985
tag @p add som
scoreboard objectives add time dummy
execute as @a[tag=som,nbt={Inventory:[{id:"minecraft:netherite_sword",Slot:-106b}]}] at @s run item replace entity @s weapon.offhand with air
execute as @e[tag=som] at @s run tp @s ~ ~ ~ ~ 0
execute as @e[tag=som] at @s run summon minecraft:armor_stand ^ ^ ^ {Tags:["at"],NoGravity:1,Invisible:1}
execute as @e[tag=som] at @s run summon minecraft:armor_stand ^ ^ ^2 {Tags:["at"],NoGravity:1,Invisible:1}
execute as @e[tag=som] at @s run summon minecraft:armor_stand ^ ^ ^4 {Tags:["at"],NoGravity:1,Invisible:1}
execute as @e[tag=som] at @s run summon minecraft:armor_stand ^ ^ ^6 {Tags:["at"],NoGravity:1,Invisible:1}
execute as @e[tag=som] at @s run summon minecraft:armor_stand ^ ^ ^8 {Tags:["at"],NoGravity:1,Invisible:1}
execute as @e[tag=som] at @s run summon minecraft:armor_stand ^ ^ ^10 {Tags:["at"],NoGravity:1,Invisible:1}
execute as @e[tag=som] at @s run tp @s ^ ^ ^10
execute as @e[tag=som] at @s run particle minecraft:sweep_attack ^ ^1.2 ^1 0 0 0 1 1 force
execute as @e[tag=at] at @s as @e[tag=!som,distance=..10] run data merge entity @s {Tags:["hit"],NoAI:1b}
execute as @e[tag=hit] at @s run scoreboard players add @s time 1
execute as @e[tag=hit,scores={time=20..}] at @s run particle dust 2 0 0 1 ~ ~1 ~ 0 .8 0 1 50 force
execute as @e[tag=hit,scores={time=100..}] run kill @e[tag=hit]
give @a[tag=som] minecraft:netherite_sword 1