Skip to main content

Spawner Commands

Spawners allow to control the entity spawning in the specific area.

The following groups are available for the spawner:

  • owner.

Owner defines who can change the properties of the spawner after its creation. The owner group is initially set to the group set to allow-build in the spawner's area (zone or world).

Instead of using a specific name of the spawner a $-symbol could be used. In this case the command will be applied to the spawner located at the current player's location.

Spawners Video Tutorial​

Create a Spawner​

/share spawner $name create

This command must be executed when the selection is available (share select command). If a selection available, the command creates a new spawner with a given $name.

After the spawner is created some entities should be added to it to start their spawning.

The spawners can only be built by the player with the allow-build group in the current area.

The spawner must lay in the homogenous area (the same zone or no-zone area) and the size is restricted for non-world-owners.

Put/Remove Entities​

/share spawner $name entity-set $entity-name $count

Adds ($count>0) or removes ($count=0) a minecraft entity (PILLAGER, VINDICATOR, etc.) to the spawner.

The name of the available entity-names is provided in the command auto-completion.

The count specify how many entities should be maintained in the spawner.

The number of entities is maintained as provided. If some of the entities escape the spawner area - they are despawned, if the number of entities drops below the given count (killed, despawned) - they will be re respawned.

Set Group​

/share spawner $name group-set owner [$group-name]

Sets a respective group to the spawner. owner is a set of players who can change the spawner properties.

If the $group-name is not provided the group is removed, which makes it available to everyone.

The group with the group-name should be available. Create it in advance if needed (see share group create command).

The owner group is set initially to be the same as the allow-build group in the current player's area.

Get Info​

/share spawner $name info

Provides a full description of spawner configuration.

Set Spaw Interval​

/share spawner $name update-interval-set owner [$duration]

Sets an update interval of the spawner. It defines how often the set of entities are respawned in the area.

The $duration is given in seconds or minutes (1s, 10s, 1m, 5m, and so on).

If no duration is provided the standard duration is used, which is set to some meaningful value.

Set Spawning Location​

/share spawner $name spawner-set

Sets the exact block where the entities should spawn. If it is not provided the center of the spawner area is used.

Set Spawner Boundary​

/share spawner $name boundary-set

Changes the current boundary box of the spawner to the currently selected area.

Command is handy to change the spawner area.

To use the command first the area should be selected, for example with share select command.

Goto Spawner​

/share spawner $name boundary-goto

Teleport the player to the area of the given spawner and selects it to show its boundaries. Useful to find the spawner.

Command only works if the player is allowed entering the spawner area.

Goto Spawning Location​

/share spawner $name spawner-goto

Teleport the player to the given spawner's location. Used to find a spawner's exact block.

Command only works if the player is allowed entering the spawner location.

Delete a Spawner​

/share spawner $name delete

Removes a given spawn.

All the entities spawned by the spawner are removed.