Repository navigation
Conditions
Naylek edited this page Nov 30, 2026
·
2 revisions
when decides whether an element, or one of its parts, is shown. It is plain JSON.

| Form | True when |
|---|---|
{ "var": "health", "below": 6 } |
the value is lower (also above) |
{ "var": "health", "below": "max_health" } |
compared with another variable |
{ "var": "dimension", "is": "minecraft:the_nether" } |
equal (text or number) |
{ "var": "gamemode", "is": ["survival", "adventure"] } |
equal to one of the list |
{ "var": "health", "above": 0, "below": 6 } |
every test of the object is true |
{ "all": [ ... ] } |
every condition is true |
{ "any": [ ... ] } |
at least one is true |
{ "not": { ... } } |
the condition is false |
below and above are strict, and only work on numbers.
Low health outside creative mode:
{ "all": [
{ "var": "health", "below": 7 },
{ "not": { "var": "gamemode", "is": "creative" } }
] }A helmet that is nearly broken:
{ "all": [
{ "var": "head_max_durability", "above": 0 },
{ "var": "head_durability", "below": 20 }
] }