Description
前置指令(聊天框输入即可)
防刷屏:
关闭(指令/聊天栏)提示
/gamerule commandblockoutput false
/gamerule sendcommandfeedback false
必要:
创建"检测技能"计分板
/scoreboard objectives add 检测技能 dummy
技能1 迅捷(重复 无条件 保持开启)
/execute as @a[hasitem={item=filled_map,location=slot.weapon.mainhand}] at @s if score @s 检测技能 matches 1..1 run effect @s speed 10 2 true
技能2 力量(连锁 无条件 保持开启)
/execute as @a[hasitem={item=filled_map,location=slot.weapon.mainhand}] at @s if score @s 检测技能 matches 2..2 run effect @s strength 10 1 true
技能3 恢复(连锁 无条件 保持开启)
/execute as @a[hasitem={item=filled_map,location=slot.weapon.mainhand}] at @s if score @s 检测技能 matches 3..3 run effect @s regeneration 10 1 true
技能4 抗性(连锁 无条件 保持开启)
/execute as @a[hasitem={item=filled_map,location=slot.weapon.mainhand}] at @s if score @s 检测技能 matches 4..4 run effect @s resistance 10 1 true
将地图替换为屏障(连锁 无条件 保持开启)
/execute as @a[hasitem={item=filled_map,location=slot.weapon.mainhand}] at @s run replaceitem entity @s slot.weapon.mainhand 0 barrier 1 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}}
迅捷(重复 无条件 保持开启)
scoreboard players set @a[hasitem={item=empty_map,location=slot.weapon.mainhand,data=5}] 检测技能 1
力量(连锁 无条件 保持开启)
scoreboard players set @a[hasitem={item=empty_map,location=slot.weapon.mainhand,data=7}] 检测技能 2
恢复(连锁 无条件 保持开启)
scoreboard players set @a[hasitem={item=empty_map,location=slot.weapon.mainhand,data=9}] 检测技能 3
抗性(连锁 无条件 保持开启)
scoreboard players set @a[hasitem={item=empty_map,location=slot.weapon.mainhand,data=11}] 检测技能 4
T显(连锁 无条件 保持开启)
/execute as @a[hasitem={item=empty_map,location=slot.weapon.mainhand}] run titleraw @s actionbar {"rawtext":[{"translate":"%%5","with":{"rawtext":[{"selector":"@s[scores={检测技能=..1}]"},{"selector":"@s[scores={检测技能=..2}]"},{"selector":"@s[scores={检测技能=..3}]"},{"selector":"@s[scores={检测技能=..4}]"},{"text":"§r§f[§a技能§f]§b§l 迅捷"},{"text":"§r§f[§a技能§f]§b§l 力量"},{"text":"§r§f[§a技能§f]§b§l 恢复"},{"text":"§r§f[§a技能§f]§b§l 抗性"}]}}]}
Comments
[热词系列_三连]这不得奖励一下我[傲娇][傲娇]
♥ 3 ↩ 2
你有实测过吗,我之前想到了这个思路但是对玩家右键无法展开地图,后来用了雪球+keep的检测
♥ 2 ↩ 2
同款血条材质包
♥ 1
还能检测右键了OAO
♥ 1 ↩ 2
《空白地图》[doge]