Рет қаралды 12,523
tag @p add ga
execute as @a[tag=ga,nbt={Inventory:[{id:"minecraft:netherite_sword",Slot:-106b}]}] at @s run item replace entity @s weapon.offhand with air
execute at @e[tag=ga] as @e[sort=nearest,tag=!sw,tag=!ga] at @s run summon minecraft:armor_stand ~ ~8 ~ {Tags:["sw"],NoGravity:1,Invisible:1}
execute as @e[tag=ga] at @s as @e[sort=nearest,tag=!sw,tag=!ga] at @s run tp @e[tag=sw] ~ ~8 ~ ~ ~
execute as @e[tag=sw] at @s run particle minecraft:dust 1 1 .4 1 ^ ^ ^ 0 1 0 0 50 force
execute as @e[tag=sw] at @s run particle crit ^.2 ^ ^ 0 .8 0 0 10 force
execute as @e[tag=sw] at @s run particle crit ^-.2 ^ ^ 0 .8 0 0 10 force
execute as @e[tag=sw] at @s run particle crit ^.3 ^ ^ 0 .5 0 0 10 force
execute as @e[tag=sw] at @s run particle crit ^-.3 ^ ^ 0 .5 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^.2 ^1 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^.4 ^.9 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^-.2 ^1 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^-.4 ^.9 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^.6 ^.8 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^-.6 ^.8 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^.8 ^.7 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^-.8 ^.7 ^ 0 0 0 0 10 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^.2 ^1.2 ^ 0 0 0 0 5 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^.4 ^1.5 ^ 0 0 0 0 5 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^-.2 ^1.2 ^ 0 0 0 0 5 force
execute as @e[tag=sw] at @s run particle dust 1 1 .4 1 ^-.4 ^1.5 ^ 0 0 0 0 5 force
execute as @e[tag=sw] at @s run tp @s ~ ~-.5 ~
execute as @e[tag=sw] at @s run tp @s ~ ~-.5 ~
execute as @e[tag=sw] at @s unless block ~ ~-1 ~ minecraft:air run tp @s ~ ~1 ~
execute as @e[tag=sw] at @s run kill @e[distance=..2,tag=!ga,tag=!sw]
execute as @e[tag=sw] at @s run particle minecraft:crit ~ ~1 ~ 1 1 1 1 100 force
scoreboard objectives add co dummy
scoreboard players add @e[tag=sw] co 1
execute as @e[tag=sw,scores={co=20..}] at @s run kill @s
scoreboard objectives remove co
give @a[tag=ga] netherite_sword 1