DayKoala / SakuraSpawners

Monster Spawner Plugin For Pocketmine-MP (PMMP)
GNU Lesser General Public License v2.1
14 stars 5 forks source link
php pmmp pmmp-plugin pocketmine pocketmine-mp


Last Commit Poggit

About

Commands

Command Description Permission
/spawner SakuraSpawners main command sakuraspawners.command.main
/hitkill Kill all entities together in one hit sakuraspawners.command.hitkill

Permissions

Permission Description
sakuraspawners.stack Be able to stack entities with their own egg
sakuraspawners.change Be 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

Command Item ID:META Result
/give 52:10 Chicken Spawner
/give 52:11 Cow Spawner
/give 52:12 Pig Spawner

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

How can I get a Spawn Egg?

In the same way as the spawner, use:

Example

Command Item ID:META Result
/give 383:10 Chicken Egg
/give 383:11 Cow Egg
/give 383:12 Pig 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