Loot Conditions Entity Variable - Tmtravlr/LootOverhaul GitHub Wiki

Loot Conditions - Entity Variable

Structure:

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)
target String The entity target. Valid options are this, killer, killer_player, looter.

Description:

Will pass if the stored entity variable for the target entity is one of these values. Could be a single value, a list, or a min/max range.

Example Usage:

"conditions": [
 	{
 		"condition": "lootoverhaul:entity_variable",
 		"name": "some_variable",
 		"target": "this",
 		"type": "string",
 		"value": [
 			"First Possible Value",
 			"Another Possible Value"
 		]
 	}
]

Or:

"conditions": [
 	{
 		"condition": "lootoverhaul:entity_variable",
 		"name": "times_looted",
 		"target": "this",
 		"type": "integer",
 		"value": 4
 	}
]

Or:

"conditions": [
 	{
 		"condition": "lootoverhaul:entity_variable",
 		"name": "zombies_killed",
 		"target": "killer",
 		"type": "integer",
 		"value": {
 			"min": 6,
 			"max": 12
 		}
 	}
]

Or:

"conditions": [
 	{
 		"condition": "lootoverhaul:entity_variable",
 		"name": "player_has_killed_wither",
 		"target": "killer_player",
 		"type": "boolean",
 		"value": true
 	}
]

Or: Check if it exists

"conditions": [
 	{
 		"condition": "lootoverhaul:entity_variable",
 		"name": "player_has_killed_wither",
 		"target": "killer_player"
 	}
]
Previous - Entity Type Back Next - Global Variable
⚠️ **GitHub.com Fallback** ⚠️