Get the files on 9Minecraft
InGame Info XML supports logic tags that allow for conditional formatting. This is primarily done in the XML format using specific tags:
<if>: Executes a block of code only if a condition is met.<equal>/<greater>/<less>: Comparison operators used within<if>tags.<op>: Mathematical operations (addition, subtraction, etc.).<str>: Defines a static string of text.<var>: Calls one of the variables listed in the Tags section.<num>: Defines a numerical value for comparisons.<icon>: Displays an item or block icon (e.g.,<icon>minecraft:iron_sword</icon>).
Example Logic (XML):
<if>
<greater>
<var>health</var>
<num>10</num>
</greater>
<str>{green}{health}</str>
<str>{red}{health} - WARNING!</str>
</if>
This example displays the player's health in green if it is above 10, and in red with a warning message if it is 10 or lower.












