[我的世界] (CB) 攻击伤害显示 生物检测血量显血(首发)
T显示的指令
给生物标签
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={血量检测=2,血量=1..}] ~ ~ ~ tellraw @p {"rawtext":[{"selector":"@s"},{"text":"-§a生命值: §b"},{"score":{"name":"@s","objective":"血量"}},{"text":" §d- §e"},{"score":{"name":"@s","objective":"血量计算"}},{"text":" = §c"},{"score":{"name":"@s","objective":"血量储存"}}]}
t显示2
execute @e[scores={血量检测=2,血量=1..}] ~ ~ ~ titleraw @p title {"rawtext":[{"text":"§c §o-"},{"score":{"name":"@s","objective":"血量计算"}}]}
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]"}}]}

