Spells are cast with a context that can be modified with spell transformers.
{}: Root object.{}position: Position to apply spell effects at, by default caster position.""type: Position type specified by id.+Additional fields based on position type.
{}rotation: Rotation to apply spell effects with, by default caster facing.""type: Rotation type specified by id.+Additional fields based on rotation type.
{}target: Living entity to apply spell effects to, by default the caster.""type: Target type specified by id.+Additional fields based on target type.
Position
Absolute
Position based on absolute coordinates.
{}: Root object.
Example JSON
{"type": "magicalscepter:absolute","x": -390.0,"y": 64.0,"z": 220.0}
Entity
Position based on context entity position.
Example JSON
{"type": "magicalscepter:entity","anchor": "eyes"}
Mixed
Position based on a mix of positions.
{}: Root object.
Example JSON
{"type": "magicalscepter:mixed","x": {"type": "magicalscepter:relative","x": 0.0,"y": 0.0,"z": 1.0},"y": {"type": "magicalscepter:entity","anchor": "eyes"},"z": {"type": "magicalscepter:relative","x": 0.0,"y": 0.0,"z": 1.0}}
Random
Position based on random relative coordinates.
{}: Root object.
Example JSON
{"type": "magicalscepter:random","x": 4.0,"y": 4.0,"z": 4.0}
Relative
Position based on relative coordinates.
{}: Root object.
Example JSON
{"type": "magicalscepter:relative","x": 0.0,"y": 0.0,"z": 20.0}
Rotation
Absolute
Rotation based on absolute angles.
{}: Root object.
Example JSON
{"type": "magicalscepter:absolute","yaw": 180,"pitch": 45,}
Entity
Rotation based on entity rotation.
{}: Root object.
Example JSON
{"type": "magicalscepter:entity"}
facing
Rotation to face a position.
Example JSON
{"type": "magicalscepter:facing","position": {"type": "magicalscepter:entity"}}
Mixed
Rotation based on mixed angles.
{}: Root object.
Example JSON
{"type": "magicalscepter:mixed","pitch": {"type": "magicalscepter:entity"}}
Random
Rotation based on random angles.
{}: Root object.
Example JSON
{"type": "magicalscepter:random","yaw": 30,"pitch": 10,}
Relative
Rotation based on relative angles.
{}: Root object.
Example JSON
{"type": "magicalscepter:relative","yaw": 30,"pitch": -10,}
Target
Absolute
Target based on UUID.
Example JSON
{"type": "magicalscepter:target","target": "19fc9957f9a845089140f7491fcdbba4",}