Variable: conditions
Misat11 edited this page Jul 3, 2020
·
4 revisions
This variable is used for dynamic changes according to current conditions.
- type: item_definition
a:1
b:2
conditions:
- if: "%this.a% == 1" # will be true
then:
type: item_definition
else:
type: another_item_definition
- if: "%this.b% == 1" # will be false
then:
disabled: true
For groovy equívalent look here: Render callback
Can't find what are you looking for on this wiki? Maybe our automatically generated javadoc could help you https://docs.screamingsandals.org/simpleinventories/simpleinventories-core/
- Welcome on this wiki
- Formats:
- Variables:
- Callbacks: (Groovy only)
-
Examples:
- Making shop (Groovy only)
- Making vault shop (Groovy only)