-
Notifications
You must be signed in to change notification settings - Fork 1
Extras
This is a page with extra definitions related to entity modifiers.
Position providers give a position to use in in the minecraft:set_position entity modifier.
Provides a world position. Similar to x y z and ~x ~y ~z in the teleport command.
x: A relative number provider. Specifies the x position.
y: A relative number provider. Specifies the y position.
z: A relative number provider. Specifies the z position.
{
"function": "minecraft:set_position",
"position": {
"type": "minecraft:world",
"x": 1.0,
"y": {
"value": 1.0
},
"z": {
"value": {
"type": "minecraft:constant",
"value": 1.0
},
"relative": true
}
}
}Provides a local position. Similar to ^left ^up ^forwards in the teleport command.
left: A number provider. Specifies the leftwards offset.
up: A number provider. Specifies the upwards offset.
forwards: A number provider. Specifies the forwards offset.
{
"function": "minecraft:set_position",
"position": {
"type": "minecraft:local",
"left": 1.0,
"up": 1.0,
"forwards": {
"type": "minecraft:constant",
"value": 1.0
}
}
}Rotation providers give a rotation to use in the minecraft:set_rotation entity modifier.
x: A relative number provider. Specifies the rotation around the x-axis.
y: A relative number provider. Specifies the rotation around the y-axis.
{
"function": "minecraft:set_rotation",
"rotation": {
"x": 10.0,
"y": {
"value": 10.0,
"relative": true
}
}
}Relative number providers are like number providers, but they may be relative to an existing value.
value: A number provider. Specifies the number to use.
relative: An optional boolean. If true, value will be relative to the passed value.
{
"value": {
"type": "minecraft:uniform",
"min": -1.0,
"max": 1.0
}
"relative": true
}