Loot Functions Offset - Tmtravlr/LootOverhaul GitHub Wiki
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) |
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
}
]
Offset: Just offset the y position
"functions": [
{
"function": "lootoverhaul:offset",
"y": {
"min": 5,
"max": 30
}
}
]
Offset Radius: Offset at a position on a circle with this radius
"functions": [
{
"function": "lootoverhaul:offset",
"radius": 10
}
]
Offset to a surface: Tries to find a solid surface for the loot, checking at most 5 blocks up or down.
"functions": [
{
"function": "lootoverhaul:offset",
"surface_search_max": 5
}
]
Previous - Position | Back | No Next |
---|