Spawner Interface
Allows for manipulating spawners
Functions | Description |
---|---|
getCurrentlySpawningMob() | Gets the current spawning mob in the spawner |
captureSpawner([ inventory ], [ slot ]) | Makes the spawner drop itself |
changeSpawner(inventory, slot, [ force ]) | Makes the spawner swap what mob it spawns |
getCurrentlySpawningMob()
Description
Gets the current spawning mob in the spawner
Returns
- boolean | string - The state of the operation or the id of the spawning mob
- string - Error message, If there is a failure on the operation
captureSpawner([ inventory ], [ slot ])
Description
Makes the spawner drop itself
if the parameters are passed store the current mob on a spawner card.
Parameters
- inventory: string - a inventory that has a spawner card
- slot: number - the slot where the spawner card is located
Returns
- boolean - The state of the operation
- string - Error message, If there is a failure on the operation
changeSpawner(inventory, slot, [ force ])
Description
Makes the spawner swap what mob it spawns
Parameters
- inventory: string - a inventory that has a spawner card
- slot: number - the slot where the spawner card is located
- ?force: boolean - if set, the mob that was in the spawner is discarted
Returns
- boolean - The state of the operation
- string - Error message, If there is a failure on the operation