SpawnerEXP
Enhance Spawners
Make spawners more useful by having the functionality of crafting them and changing their type through the use of mob eggs! To get a blank egg, just break an existing mob spawner.
When a natural (non-player-placed) spawner is broken, the following will occur if the player has the appropriate permissions:
- 3 to 6 iron bars and/or a spawner will drop (configurable)
- Between 300 to 600 exp will drop (equivalent to 3-6 levels if at a low level); This is fully configurable
- A spawn egg will drop (either a blank one or one of the spawner's type; this is configurable)
The inspiration came from pixelkids
http://www.reddit.com/r/Minecraft/comments/pbp75/i_love_making_mod_requests_i_give_you_spawnerxp/
Demonstration Video
http://www.youtube.com/watch?v=LFBLGHX1Rj8
Crafting Recipes
The crafting recipes may be found here
Permissions
These permissions have been tested with PermissionsBukkit and PermissionsEx.
Node | Description |
---|---|
spawnerexp.* | allows all permission nodes for SpawnerEXP |
spawnerexp.placespawner | allows/disallows the player to place a spawner |
spawnerexp.change.* | allows/disallows the changing of a spawner's type to any creature |
spawnerexp.change.type | allows/disallows the changing of mob spawners to specific types of mobs (in the link) |
spawnerexp.spawnerexp | allows/disallows experience from mobs spawned from player-placed spawners |
spawnerexp.spawnerdrops | allows/disallows drops from mobs spawned from player-placed spawners |
spawnerexp.use.survival.* | enables/disables the normal use of eggs in survival mode |
spawnerexp.use.creative.* | enables/disables the normal use of eggs in creative mode |
spawnerexp.drop.ironbars | enables/disables the dropping of iron bars |
spawnerexp.drop.exp | enables/disables the dropping of exp from spawners |
spawnerexp.drop.egg | enables/disables eggs dropping from spawners |
spawnerexp.drop.spawner | enables/disables spawners from dropping from natural spawners (dropSpawnerOnBreak must be enabled in the configuration for this permission to take effect) |
spawnerexp.drop.* | enables/disables all drops from a spawner |
spawnerexp.use.survival.egg | enables/disables the normal use of eggs in survival mode |
spawnerexp.use.creative.egg | enables/disables the normal use of eggs in creative mode |
Configuration
Value | Description |
---|---|
disableInCreativeMode | disables or enables all drops in creative mode |
disableSpawnerCrafting | enables/disables spawner crafting entirely |
dropSpawnerOnBreak | enables/disables a spawner drop when you break a natural spawner (to be able to get spawners if you disable spawner crafting) |
spawnerExpMin | the lowest amount of experience dropped when a spawner is broken |
spawnerExpMax | the maximum amount of experience dropped when a spawner is broken |
dropSpawnerTypeEgg | whether or not to drop an egg of the spawner's type from a natural spawner (non-blank mob eggs are not able to be crafted into other types of eggs) |
usePermissions | whether or not to use permissions. If disabled, all players can do everything. This is enabled by default. |
Commands
The commands for SpawnerEXP are only run from the console.
- spawnerexp purge
- Removes all player spawners from the database. This will cause them to behave like natural spawners
- spawnerexp dump
- Lists all spawners (e.g. "(X: 223, Y: 64, Z: -141) of type Spider")
- spawnerexp reload
- Reloads the configuration.
Todo
Add the ability to disable or enable the use of permissionsAdd a configuration option to disable experience from monsters from spawners (and/or a permission node)
@TheFlyingDharma
Hmm that's odd. It seems to work on my server. It works for pigs, at least. Maybe they're limited to spawning on grass or on the surface.
I kinda liked the idea from the original mod that the spawner would drop a spawn egg of whatever was already inside the spawner. Could you make an option to enable/disable this instead of a blank egg?
@VeryBigCorp
No problem, glad you care enough about the project to continue fixing it :) It is a really cool plugin, and my players are just as excited as I am about it.
The only remaining problem I'm seeing with 2.2.1 is that the spawners for passive mobs (chicken, cow, etc.) don't seem to actually spawn anything. Maybe I'm doing something wrong though? Or possibly just an SMP limitation since they don't occur naturally? Everything else seems to work great!
@TheFlyingDharma
@VeryBigCorp
Thanks for the update! Bear with me, found a couple more bugs in 2.1.
- The first time you put an egg into an empty spawner, it now spits out a pig egg.
- Player-placed spawners don't drop themselves when breaking. Could you make it so that they drop the actual spawner block?
@Sepulzera
Yeah that would be more easily understandable. Will do from now on.
Imo you should reverse the listing for your changelog, from the most recent version down to the initial release.
@TheFlyingDharma
Oh sorry about that. I guess I could store a list of player-placed spawners or something in the config. Thanks for the feedback!
Edit: Complete in v2.0!
@VeryBigCorp
Awesome, thank you so much! I put it up on my server to test, one thing I'm noticing is blank eggs drop from empty player-placed spawners, which adds an easy way to get as many blank eggs as you want. edit: Yikes, looks like EXP is dropping from player-placed spawners as well. Any way to make it so that player-placed spawners only drop the spawner and any egg you've place inside of it?
Other than that, looks great! Thanks again for all your efforts!
@TheFlyingDharma
Done. :D
Awesome, thanks so much for porting this! I'll definitely be using this as soon as permissions are added (would use it now but I'm a little nervous about what certain people on my server might do with it.)
@fonkfader
Yeah! I shall do that as soon as possible!
great plugin ! it's possible to add permission for crafting spawner/type of eggs, and exp from broken spawner ?