Loot Functions Position - Tmtravlr/LootOverhaul GitHub Wiki
Property | Type | Description |
---|---|---|
target | String | The entity to target. Valid options are entity selector (like @p), THIS, KILLER, KILLER_PLAYER, and LOOTER. (Optional) |
x | Float | x position to move to. (Optional) |
y | Float | y position to move to. (Optional) |
z | Float | z position to move to. (Optional) |
Sets the loot's position to an entity or a static position.
NOTE: Delay, Position, and Offet must always be last, since other functions might not work after them.
Example Usage:
Entity: Will set the loot's position to the looter
"functions": [
{
"function": "lootoverhaul:position",
"entity": "looter"
}
]
Entity: Will set the loot's position to the nearest player
"functions": [
{
"function": "lootoverhaul:position",
"selector": "@p"
}
]
Static Position: Will set the loot's position to the given position
"functions": [
{
"function": "lootoverhaul:position",
"x": "0",
"y": "64",
"z": "0"
}
]
Static Position: Just set the y position
"functions": [
{
"function": "lootoverhaul:position",
"y": "128"
}
]
Previous - Delay | Back | Next - Offset |
---|