我的世界隨機物品
2023-06-08 21:12 作者:bili_69496850609 | 我要投稿

[置頂]前置指令 /scoreboard objectives add 手電筒 dummy
指令第一組
/scoreboard players set @a【scores={手電筒=-999..0},hasitem={item=blaze_rod,quantity=1..}】 手電筒 100 循環(huán) 無條件 開啟
/clear @a【hasitem={item=spyglass,quantity=1..}】 amethyst_shard 0 1 連鎖有條件開啟
第二組 /effect @a[scores={手電筒=1..100},【hasitem={item=spyglass,quantity=1..,location=slot.weapon.mainhand}】 night_vision 7 255 True 循環(huán)無條件開啟
/scoreboard players remove @a【scores={手電筒=1..100},location=slot.weapon.mainhand}】 手電筒 1 循環(huán)無條件開啟
最大值與最小值
/scoreboard players set @a【scores={手電筒=101..999}】 手電筒 100 循環(huán)無條件開啟
/scoreboard players set @a【scores={手電筒=-999..-1}】 手電筒 0 循

環(huán)無條件開啟
標簽: