Рет қаралды 11,085
scoreboard objectives add time dummy
execute as @a[nbt={Inventory:[{id:"minecraft:nether_star",Slot:-106b}]}] at @s run summon minecraft:armor_stand ~ ~ ~ {Tags:["ads"],NoGravity:1,Invisible:1}
execute as @a[nbt={Inventory:[{id:"minecraft:nether_star",Slot:-106b}]}] at @s run item replace entity @s weapon.offhand with air
give @p nether_star
execute as @e[tag=ads] at @s run setblock ~ ~ ~ beacon
execute as @e[tag=ads] at @s facing entity @e[type=#minecraft:impact_projectiles,distance=..30,limit=1,sort=nearest] eyes run particle minecraft:cloud ^ ^ ^ ^ ^ ^10000000000000000 .0000000000000005 0 force
scoreboard players add @e[tag=ads] time 1
execute as @e[tag=ads,scores={time=10..}] at @s run kill @e[type=#minecraft:impact_projectiles,distance=..30,limit=1,sort=nearest]
scoreboard players reset @e[tag=ads] time
삭제 커맨드
kill @e[tag=ads]