一条萌新指令打造“伪32k”
effect
@a[hasitem={item=
iron_sword
,location=
slot.weapon.mainhand
}]
strength 1 55
true 原理:给予主手栏为铁剑的玩家1秒55级力量 彩色字都是可以替换的,红色字是hasitem指令相关的,绿色字是effect指令相关的 同理还可以制作 ①一个真正意义上的“不死”图腾:
effect
@a[hasitem={item=
totem_of_undying
,location=
slot.weapon.offhand
}]
instant_health 1 255
true 循环无条件保持开启 ②一个一次性的“闪电”图腾
execute
@a[hasitem={item=
totem_of_undying
,location=
slot.weapon.offhand
}] ~~~ execute @a[rm=2] ~~~
summon lightning_bolt
循环无条件保持开启
replaceitem
entity @a[hasitem={item=
totem_of_undying
,location=
slot.weapon.offhand
}] slot.weapon.offhand 1 air 1 1 链无条件保持开启