Inspect: type: world events: on player damages entity: - if CONTAINS "Inspect target": - determine cancelled passively - narrate targets: "<&3>-----------------------------------------------------" - narrate targets: "<&e>Inspecting <&c>:" - narrate targets: "<&c><&l>Health Info:" - narrate targets: "<&b>- <&9>Health: <&a><&e>/<&2>" - narrate targets: "<&b>- <&9>Health Percentage: <&a>" - narrate targets: "<&b>- <&9>Health State: <&a>" - narrate targets: "<&c><&l>Physical Info:" - narrate targets: "<&b>- <&9>Speed: <&a>" - narrate targets: "<&c><&l>Combat Info:" - narrate targets: "<&b>- <&9>Melee attack damage: <&a>" - narrate targets: "<&b>- <&9>Melee attack damage to you: <&a>]>" - if == Player: - narrate targets: "<&b>- <&9>Melee attack speed: <&a>" - narrate targets: "<&b>- <&9>Melee attack damage you'll deal: <&a>]>" - narrate targets: "<&b>- <&9>Melee attack damage that will be absorbed: <&a>]>]>" - narrate targets: "<&b>- <&9>Armor: <&a>" - if != "li@i@air|i@air|i@air|i@air": - narrate targets: "<&c><&l>Equipment Info:" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Main hand item: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Main hand item: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Main hand item durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Main hand item enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Off hand item: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Off hand item: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Off hand item durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Off hand item enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Helmet: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Helmet: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Helmet durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Helmet enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Chestplate: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Chestplate: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Chestplate durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Chestplate enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Leggings: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Leggings: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Leggings durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Leggings enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Boots: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Boots: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Boots durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Boots enchantments: <&a>|<&a>]>" - if : - narrate targets: "<&c><&l>Potion Info:" - narrate targets: "<&5><&l>*<&5> Type Level Duration" - foreach as:potions: - narrate "<&5>- <&a><[potions].split[,].get[1]> <&e><[potions].split[,].get[2]> <&a>t].formatted>" targets: - narrate targets: "<&3>-----------------------------------------------------" - stop - if CONTAINS "Inspect target": - determine cancelled passively - narrate targets: "<&3>-----------------------------------------------------" - narrate targets: "<&e>Inspecting <&c>:" - narrate targets: "<&c><&l>Health Info:" - narrate targets: "<&b>- <&9>Health: <&a><&e>/<&2>" - narrate targets: "<&b>- <&9>Health Percentage: <&a>" - narrate targets: "<&b>- <&9>Health State: <&a>" - narrate targets: "<&c><&l>Physical Info:" - narrate targets: "<&b>- <&9>Speed: <&a>" - narrate targets: "<&c><&l>Combat Info:" - narrate targets: "<&b>- <&9>Melee attack damage: <&a>" - narrate targets: "<&b>- <&9>Melee attack damage to you: <&a>]>" - if == Player: - narrate targets: "<&b>- <&9>Melee attack speed: <&a>" - narrate targets: "<&b>- <&9>Melee attack damage you'll deal: <&a>]>" - narrate targets: "<&b>- <&9>Melee attack damage that will be absorbed: <&a>]>]>" - narrate targets: "<&b>- <&9>Armor: <&a>" - if != "li@i@air|i@air|i@air|i@air": - narrate targets: "<&c><&l>Equipment Info:" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Main hand item: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Main hand item: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Main hand item durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Main hand item enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Off hand item: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Off hand item: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Off hand item durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Off hand item enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Helmet: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Helmet: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Helmet durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Helmet enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Chestplate: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Chestplate: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Chestplate durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Chestplate enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Leggings: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Leggings: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Leggings durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Leggings enchantments: <&a>|<&a>]>" - if != i@air: - if : - narrate targets: "<&b>- <&b><&l>Boots: <&a>" - if : - narrate targets: "<&b>- <&b><&l>Boots: <&a>" - if >= 0: - narrate targets: "<&b>- <&9>Boots durability: <&a><&e>/<&a>" - if != li@: - narrate targets: "<&b>- <&9>Boots enchantments: <&a>|<&a>]>" - if : - narrate targets: "<&c><&l>Potion Info:" - narrate targets: "<&5><&l>*<&5> Type Level Duration" - foreach as:potions: - narrate "<&5>- <&a><[potions].split[,].get[1]> <&e><[potions].split[,].get[2]> <&a>t].formatted>" targets: - narrate targets: "<&3>-----------------------------------------------------" - stop