Setting up and using Variables
The core of actions is the variable system. The basis of this system is that it is a filter. If the variable is set to none
, there is no filter. If it is set, if whatever the variable is entered as when a user performs an action matches the variable, it will progress.
Recently, we've also added sub variables which can make this system a bit more confusing. Here are some examples for different action types with and without sub variables.
Every action has the global sub variables listed below:
Every sub-variable is optional. If you don't specify it, it won't be filtered for. Therefore, you can just use holding.item
if you wish, or just holding.amount
.
Examples Without Sub-Variables:
The following two actions function in the same manner, they're just two ways of formatting them.
block-break
block-break
Some more random examples: throw-projectile
Examples With Sub-Variables:
block-break
enchant-all
This action is to enchant an item with soul speed 3 using an anvil.
Examples With Multiple Variables:
block-break
block-place
Last updated