[我的世界] (CB) 攻擊傷害顯示 生物檢測(cè)血量顯血(首發(fā))

T顯示的指令
給生物標(biāo)簽
tag @e[type=!minecraft:area_effect_cloud,type=!minecraft:armor_stand,type=!minecraft:arrow,type=!minecraft:wither,type=!minecraft:boat,type=!minecraft:chest_minecart,type=!minecraft:command_block_minecart,type=!minecraft:dragon_fireball,type=!minecraft:egg,type=!minecraft:ender_crystal,type=!minecraft:ender_pearl,type=!minecraft:evocation_fang,type=!minecraft:eye_of_ender_signal,type=!minecraft:falling_block,type=!minecraft:fireball,type=!minecraft:fireworks_rocket,type=!minecraft:fishing_hook,type=!minecraft:hopper_minecart,type=!minecraft:item,type=!minecraft:leash_knot,type=!minecraft:lightning_bolt,type=!minecraft:lingering_potion,type=!minecraft:llama_spit,type=!minecraft:minecart,type=!minecraft:player,type=!minecraft:moving_block,type=!minecraft:npc,type=!minecraft:painting,type=!minecraft:shulker_bullet,type=!minecraft:small_fireball,type=!minecraft:snowball,type=!minecraft:splash_potion,type=!minecraft:tnt,type=!minecraft:thrown_trident,type=!minecraft:tnt_minecart,type=!minecraft:wither_skull,type=!minecraft:wither_skull_dangerous,type=!minecraft:xp_bottle,type=!minecraft:xp_orb] add 生物
t顯示1
execute @e[scores={血量檢測(cè)=2,血量=1..}] ~ ~ ~ tellraw @p {"rawtext":[{"selector":"@s"},{"text":"-§a生命值: §b"},{"score":{"name":"@s","objective":"血量"}},{"text":" §d- §e"},{"score":{"name":"@s","objective":"血量計(jì)算"}},{"text":" = §c"},{"score":{"name":"@s","objective":"血量?jī)?chǔ)存"}}]}
t顯示2
execute @e[scores={血量檢測(cè)=2,血量=1..}] ~ ~ ~ titleraw @p title {"rawtext":[{"text":"§c §o-"},{"score":{"name":"@s","objective":"血量計(jì)算"}}]}
t顯示3
/execute @a ~ ~ ~ titleraw @s actionbar {"rawtext":[{"selector":"@e[c=1,type=!player]"},{"text":" §a生命值:§b"},{"score":{"objective":"血量","name":"@e[c=1,type=!player]"}}]}