指令楼
循环
execute as @e[hasitem={item=leather_helmet,location=slot.armor.head}] at @s run summon armor_stand 剑气 ^^^1
连锁[不做特殊说明,皆为连锁无条件]
execute as @e[hasitem={item=leather_helmet,location=slot.armor.head}] at @s run summon armor_stand 目标 ^^^13
execute as @e[hasitem={item=leather_helmet,location=slot.armor.head}] at @s run playsound armor.equip_iron @s ~ ~ ~ 20 1 500
execute as @e[hasitem={item=leather_helmet,location=slot.armor.head}] at @s run replaceitem entity @s slot.armor.head 0 air 1 1
循环延迟四十[可以根据冷却需要更改过短容易出bug]
execute as @a[tag=剑] at @s run replaceitem entity @s slot.hotbar 0 leather_helmet 1 0 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}
循环
execute as @e[name=剑气,type=armor_stand] at @s run tp @s ^^^0.6 facing @e[c=1,name=目标]
execute as @e[name=目标,type=armor_stand] at @s run tp @s ~~~
execute as @e[type=armor_stand,name=目标] at @s if entity @e[r=1,type=armor_stand,name=剑气] run kill @e[c=2,type=armor_stand]
execute as @e[name=剑气,type=armor_stand] at @s run damage @e[r=3,rm=0.1,name=!目标,tag=!剑] 40 entity_attack entity @p[tag=剑]
粒子效果

循环
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^ ^1.3 ^0.3
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^0.3 ^1.3 ^0.25
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^0.6 ^1.3 ^0.2
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^0.9 ^1.3 ^0.15
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^1.2 ^1.3 ^0.1
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^ ^1.3 ^0.3
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^-0.3 ^1.3 ^0.25
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^-0.6 ^1.3 ^0.2
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^-0.9 ^1.3 ^0.15
execute as @e[name=剑气,type=armor_stand] at @s run particle minecraft:balloon_gas_particle ^-1.2 ^1.3 ^0.1
effect @e[type=armor_stand] invisibility 99 55 true
上面的盔甲加隐身,可以自己加目标选择题,不然的话就是默认全部隐身
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删