AT-PinataParty

Spawn locations

Saving the places a piñata can appear, either an exact spot or a random point inside a box.

Every named entry under locations in config.yml is a place /pp summon <name> can use. Names are not case sensitive.

Three panels. FIXED marks one exact block, RANGE flat picks a random spot on a grid at one height, RANGE 3D picks a random point inside a box

The quick way

Stand where you want it and run:

/pp setspawn arena

That writes a FIXED entry named arena at your exact position, facing the way you are looking. You can then summon it with /pp summon arena.

Running /pp setspawn with a name that already exists overwrites it without asking.

FIXED

The piñata always appears on the same block.

config.yml
locations:
  spawn1:
    type: FIXED
    world: "world"
    x: 0.5
    y: 65.0
    z: 0.5
    yaw: 0.0
    pitch: 0.0
KeyWhat it is
typeFIXED. Optional, since anything that is not RANGE is treated as fixed.
worldThe world name as your server knows it.
x, y, zExact coordinates.
yaw, pitchWhich way the piñata faces when it appears.

RANGE with a fixed height

The piñata appears somewhere random inside a flat rectangle, always at the same height. Good for an arena floor where you want players to have to find it.

config.yml
locations:
  arena_flat:
    type: RANGE
    world: "world"
    min-x: 100.0
    max-x: 150.0
    min-z: -50.0
    max-z: 50.0
    y: 64.0

RANGE with a random height too

Swap the single y for a pair and the height is randomised as well. Useful for flying mobs or an underwater arena.

config.yml
locations:
  arena_sky:
    type: RANGE
    world: "world"
    min-x: 200.0
    max-x: 250.0
    min-z: 200.0
    max-z: 250.0
    min-y: 100.0
    max-y: 120.0
KeyWhat it is
min-x, max-xThe horizontal box, west to east.
min-z, max-zThe horizontal box, north to south.
yOne fixed height. Use this or the pair below, not both.
min-y, max-yA height range. If both are present they win over y.

The order does not matter. Putting the larger number in min-x works fine, the plugin sorts them out. The facing is random every time.

Nothing checks that the spot is safe. A RANGE box over a ravine will drop the piñata into it, and a box inside solid stone will bury it. Pick a box you have actually looked at.

Editing by hand

You can add locations straight into config.yml and reload with /pp reload. If a world name does not match a loaded world, the location is skipped and a warning goes to the console.

Spawn points you add are kept when the plugin updates its config file, so an update never wipes your arenas.

On this page