Conditions are boolean expressions that are used in If statements.

Supported conditions:

  • HaveMod {id or version} – Checks that a mod is present
  • HaveAPI {apiid} – Checks that an API is present
  • HaveOD {name} – Checks that the OreDictionary has an entry with at least one block matching the name

Boolean operators:

  • ! {condition} – Inverts the result
  • ( {condition1} && {condition2} ) – AND, true if both conditions are true
  • ( {condition1} || {condition2} ) – OR, true if either or both conditions are true
Note: Parentheses are required for binary operators

 Posted by at 9:15 am