Requirements v2 - RealMegaMinds/ActionInventoryMod GitHub Wiki
Requirements are what determine whether a player is able to view or click on an action item.
Requirements are represented by a json object. All requirements have:
key = 'type'
Can be one of 'xp'. (More types planned soon!)
key = 'when'
Can be one of 'view' or 'click'.
Depending on the type, there are additional requirements.
This requirement looks a players experience level.
A requirement with type 'xp' must have:
key = 'requiredCost'
This is an int. This is the number of xp levels a player must have.key = 'consumes'
This is a boolean. This determines whether the player's xp levels are consumed (true) or not (false).key = 'allowPartial'
This is a boolean. This determines whether partial amounts can be taken (true) or if the full amount must be paid at the same time (false). This doesn't matter if 'consumes' is false. This requirement will not be met until the full amount is paid, even if 'allowPartial' is true.key = 'resets'
This is a boolean. This determines whether the requirement is reset (true) when a player is successful in activating an action item, or whether the paid amount is kept (false). This doesn't matter if 'consumes' is false.