Loot Conditions Global Variable - Tmtravlr/LootOverhaul GitHub Wiki
Property | Type | Description |
---|---|---|
name | String | The name of the variable. |
type | String | The type of the variable. Valid options are string, integer, float, and boolean. (Optional, must be set for value to work) |
value | Basically anything | The values the variable can be. If not set, just checks if the variable exists. (Optional) |
Will pass if the stored global variable is one of these values. Could be a single value, a list, or a min/max range.
Example Usage:
"conditions": [
{
"condition": "lootoverhaul:global_variable",
"name": "some_variable",
"type": "string",
"value": [
"First Possible Value",
"Another Possible Value"
]
}
]
Or:
"conditions": [
{
"condition": "lootoverhaul:global_variable",
"name": "times_looted",
"type": "integer",
"value": 4
}
]
Or:
"conditions": [
{
"condition": "lootoverhaul:global_variable",
"name": "zombies_killed",
"type": "integer",
"value": {
"min": 6,
"max": 12
}
}
]
Or:
"conditions": [
{
"condition": "lootoverhaul:global_variable",
"name": "player_has_killed_wither",
"type": "boolean",
"value": true
}
]
Or: Check if it exists
"conditions": [
{
"condition": "lootoverhaul:global_variable",
"name": "player_has_killed_wither"
}
]
Previous - Entity Variable | Back | Next - Light Level |
---|