Wiki
Clone wikiLoot Overhaul / Loot Functions - Offset
Loot Functions - Offset
Structure:
Property | Type | Description |
---|---|---|
x | Float or Float Range | The x amount to offset. (Optional) |
y | Float or Float Range | The y amount to offset. (Optional) |
z | Float or Float Range | The z amount to offset. (Optional) |
radius | Float or Float Range | The radius to offset around the loot position + coordinate offset. (Optional) |
surface_search_max | Integer | The max distance to search for a solid surface for the loot. (Optional) |
Description:
Adds this offset to the loot's position.
NOTE: Delay, Position, and Offet must always be last, since other functions might not work after them.
Adds this offset to the loot's position
Example Usage:
Offset: Will offset the loot's position to the given position
"functions": [ { "function": "lootoverhaul:offset", "x": 10, "y": 10, "z": 10 } ]
"functions": [ { "function": "lootoverhaul:offset", "y": { "min": 5, "max": 30 } } ]
"functions": [ { "function": "lootoverhaul:offset", "radius": 10 } ]
"functions": [ { "function": "lootoverhaul:offset", "surface_search_max": 5 } ]
Previous - Position | Back | No Next |
Updated