SakuraSpawners

Monster Spawner plugin with some different and useful functions.


Last Commit Poggit

About

  • SakuraSpawners is a plugin which adds the functionalities of the Monster Spawner block with some different and useful functions, for PocketMine-MP.

Commands

CommandDescriptionPermission
/spawnerSakuraSpawners main commandsakuraspawners.command.main
/hitkillKill all entities together in one hitsakuraspawners.command.hitkill

Permissions

PermissionDescription
sakuraspawners.stackBe able to stack entities with their own egg
sakuraspawners.changeBe able to change the entity in a spawner with an egg

How can I get a Spawner?

At the moment there is only one way in which you can get a spawer, using the /give command.

Example

CommandItem ID:METAResult
/give52:10Chicken Spawner
/give52:11Cow Spawner
/give52:12Pig Spawner

Remembering that the id of the spawner is 52 and the id of the desired entity is the meta.

  • If you want to see all available entity ids you can see them HERE !

How can I get a Spawn Egg?

In the same way as the spawner, use:

Example

CommandItem ID:METAResult
/give383:10Chicken Egg
/give383:11Cow Egg
/give383:12Pig Egg

Remembering that the id of the spawn egg is 383 and the id of the desired entity is the meta.

For Developers

1. How can I add my own entity to a spawner? It is currently not possible to do this with minor changes. You would need to create a Spawner or SpawnerTile extension and register it using the TileFactory

2. How can I get a Monster Spawner or Spawn Egg? Using SakuraSpawnersItems as in the example below:


use DayKoala\item\SakuraSpawnersItems;

SakuraSpawnersItems::MONSTER_SPAWNER(); # Spawner
SakuraSpawnersItems::SPAWN_EGG(); # Spawn Egg

  • Remembering that the Monster Spawner is returned as a Block if you want it as an item use Block->asItem();

Details

Version: 2.0.0

Downloads: 1,743

Updated: 6/27/2023

Supported API versions: 5.0.0 to 5.27.1

Categories: Mechanics, Vanilla Mechanics, Miscellaneous, Fun

License: GPL-2.0-OR-LATER

Producers

Collaborator