angle-rightPosition System

What Are Positions?

Positions tell actions WHERE to do something. Every visual effect, damage area, and entity spawn needs a position.

The position system is flexible and powerful, supporting:

  • Predefined positions (trigger, player, target)

  • Relative movement (forward, left, up)

  • Custom coordinates

  • Math offsets

  • Entity tracking


Position Formats

Predefined Positions

The simplest and most common positions:

{trigger_pos}

Where the enchant was activated.

position: "{trigger_pos}"

What it means:

  • HIT_MOB: Where you hit the mob

  • MOB_DEATH: Where the mob died

  • PASSIVE: Player's location when checked


{player_pos}

The player's current location.


{target_pos}

The target mob's location.

Only available when:

  • Enchant was triggered by hitting/killing a mob

  • A target mob exists


Relative Positions

Move relative to where the player is facing:

Forward/Backward

Distance is in blocks (can be decimal):

Left/Right

Based on player's facing direction (not world coordinates).

Up/Down

Always relative to Y-axis (world up/down).

Examples

Spawn arrow above and in front:

Create circle of particles:


Custom Coordinates

Specify exact X, Y, Z coordinates:

Format: X, Y, Z (comma-separated, spaces optional)

With Variables

Use coordinate variables:

This is functionally the same as {player_pos} but lets you modify coordinates:


Math Offsets

Add or subtract from base positions:

Basic Offset

Format: {base_pos} + X, Y, Z

This spawns 5 blocks above the trigger position.

Negative Offsets

Moves position -10 X and +10 Z from player.

Complex Offsets

Moves +5 X, +10 Y, -3 Z from target position.

With Variables

X offset increases with enchant level.

Examples

Spawn meteor above target:

Ring of explosions around hit:


Entity Positions

Track positions of spawned entities:

Basic Usage

Format: {reference:position}

Multiple Entities

Track multiple entities with different references:


Random Positions

Create random positions using placeholders:

Random Offset

This creates a position within ±5 blocks of target (X and Z).

Random Height

Random height between 10-20 blocks above trigger.

Complete Random Position

circle-info

Random positions are calculated every time the placeholder is used. Use set-variable if you need the same random position multiple times.

With Variables

Store random offset for reuse:


Position Patterns

Meteor Strike Pattern

Spawn falling projectiles from above:

Circle Pattern

Create effects in a circle around player:

Line Pattern

Create a line of effects using loop:

Creates particles at 0, 1, 2, 3...9 blocks ahead.

Vertical Line

Creates a vertical beam from trigger position.

Spread Pattern

Random spread around a point:


Common Use Cases

Effects at Hit Location:

Effects on Target Mob:

Effects Above Target:

Sounds at Player:

Projectile in Front:

Falling from Sky:

Ground Effect:

Or use built-in:

Track Moving Entity:


Advanced Techniques

Dynamic Radius

Create expanding effect:

Particles spread more each iteration.

Spiral Effect

Combine forward movement with rotation:

Follow Player

Keep effect at player position:

Last updated