Spawner

Creeper Spawner 2

This plugin allows you to set mob spawner types and optionally gather mob spawners with a Silk Touch enchanted tool.

Features

  • You can change the type of spawner you are looking at or holding by using /spawner <EntityType>. For example /spawner creeper will change the spawner to a creeper spawner.
  • It will tell you what kind of spawner you interact with or type /spawner while looking at it.
  • Command to give yourself or another player a spawner of a given type.
  • /spawner list and /spawner help commands that display the contents of text files so you can customize them to your liking.
  • Command to remove entities in a given radius with /spawner remove <EntityType> [radius]
  • This plugin will attempt to remove the Silk Touch enchant from the spawner that some plugins add otherwise players can use them as a Silk Touch enchanted tool.
  • Luck option to give a chance to not drop the spawner and break like normal (disabled by default).
  • Frequency option for each creature type to give a chance to not spawn.
  • Prevents renaming spawners on an anvil.
  • Config option to prevent players from making spawners of bad entities.
  • Config option to prevent explosions from destroying spawners.
  • Config file to change the language.
  • Config option to use creature aliases so you can just use horse instead of EntityHorse.
  • Permissions to disable eggs.
  • Configure drops.

This plugin may use various bits of code I found on the Bukkit forums.


Installation

  • Drop the plugin into your plugins folder like any other plugin.
  • Restart the server.
  • If you are updating from an older version you must either delete your language.yml file or update it with the new entries or you will get errors.
  • Make sure to configure it to your liking by editing the config.yml.
  • Type /spawner reload to reload any changes you make to the language.yml or config.yml files.
  • If you want players to be able to break spawners add permission for spawner.break.<entity>
  • If you want players to be able to mine spawners with a silk touch enchanted tool add permission for spawner.mine.<entity>
  • If you want players to be able to place spawners add permission for spawner.place.<entity>
  • <entity> in the above points can be any entity type (all lowercase) or all to indicate all entities. For example spawner.place.all will allow players to place any spawner type.


Spawner


Commands

/spawner <entity>
Switch the spawner you're looking at or holding to the given mob entity type.

/spawner give <entity> [player]
Give a spawner to yourself or another player.

/spawner list
Display the contents of the spawner/list.txt file.

/spawner help
Display the contents of the spawner/help.txt file.

/spawner remove <entity> [radius]
Removes entities of the specified type within a given radius.

/spawner reload
Reload the plugin. Useful if you make changes to any of the files.


Permissions

spawner.all
Gives all Spawner permissions.
Default: op

spawner.reload
Gives access to use /spawner reload to reload the plugin.
Default: op

spawner.set.<entity>
Gives access to use /spawner <entity>
Use spawner.set.all to allow all spawner entity types.
Default: op

spawner.get
Gives access to right-click a spawner or use /spawner to get the spawner entity type.
Default: op

spawner.break.<entity>
Allows players to break spawners as normal.
Use spawner.break.all to allow all spawner entity types.
Default: op

spawner.mine.<entity>
Allows players to mine spawners with a silk touch enchanted tool.
Use spawner.mine.all to allow all spawner entity types.
Default: op

spawner.place.<entity>
Allows players to place spawners.
Use spawner.place.all to allow all spawner entity types.
Default: op

spawner.give.<entity>
Gives access to use /spawner give <entity>
Use spawner.give.all to allow all spawner entity types.
Default: op

spawner.nosilk.<entity>
Allows mining spawners without using silk touch.
Use spawner.nosilk.all to allow all spawner entity types.
Default: op

spawner.giveothers.<entity>
Gives access to use /spawner give <entity> <player>
Use spawner.giveothers.all to allow all spawner entity types.
This can also be run from console.
Default: op

spawner.help
Gives access to use /spawner help
Default: op

spawner.list
Gives access to use /spawner list
Default: op

spawner.remove
Gives access to use /spawner remove <entity> [radius]
Default: op

spawner.eggs.<entity>
Allows using eggs on spawners to change their entity type.
Use spawner.eggs.all to allow all entity types.
Default: op

spawner.anvil.eggs
Allows using anvils to rename spawner eggs.
default: op

spawner.anvil.spawners
Allows using anvils to rename spawners.
Default: op

Note: In Spawner v1.9 some of the permissions changed from ending with .* to .all


Tips

  • Edit your config.yml and do /spawner reload to reload the changes.
  • Make sure you aren't looking at a spawner when you're trying to change the spawner you're holding.
  • It can also change an entire stack of spawners you're holding.
  • If you try to update the plugin with a plugin manager without restarting the server you may run into issues (such as duplicate spawner drops).
  • Doesn't work properly in creative mode.
  • The config.yml file has a section for valid_entities where you can list entities you want players to be able to use.


TODO

If they are crossed out it means they are finished or being worked on and may be in the next release.

  • Add ability to limit the number of spawners a player can give/change.
  • Add baby spawners.
  • Implement NBT features for MobSpawner from here for mob armor, etc.
  • Compatibility with Vault so that you can make it cost money to get/change a spawner.


Metrics

This plugin collects anonymous statistics about your server so that I can better understand how people are using the plugin.

It sends these stats to MCStats.org where it's publicly available. These statistics include your Java version, operating system, authentication mode, system architecture, number of system cores, server location, game version, server software, and which version of this plugin you are using.

If you would like to opt out of this anonymous statistics collection process then you can disable it by editing the file /plugins/PluginMetrics/config.yml and changing opt-out to true.

Spawner


EntityTypes and Item Durabilities

Creating a Spawner From Another Plugin

Default config.yml

Default language.yml

Source


Donations

If you like this plugin please consider donating towards its development. This will encourage me to work on it more. Your donation is very much appreciated!

PayPal: You can find a donate link on the top-right of the page.
Bitcoin: 13Ypntcsv33jb9voWpkAUFZAAMzWAgEjqT

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of kliu1015 kliu1015 Feb 22, 2015 at 21:43 UTC - 0 likes

    @ryvix: Go

    I've stopped and started it, it still doesn't seem to work. I have no other plugins. I reloaded the language.yml and also deleted it so it can get regenerated. Every spawner still changes to a pig.

    If the next update fixes it, when will that be available?

  • Avatar of ryvix ryvix Feb 21, 2015 at 17:33 UTC - 0 likes

    @kliu1015: Go

    Hmm, have you restarted the server? You might actually have to stop the server, delete the language.yml file and then start the server. The /spawner reload command might not work properly in this version either but I've fixed that in the next version. Hoping to release it today if I can get some time to work on it. Normally so many things don't break but it's due to converting everything to work with Spigot. Hopefully this next release fixes all the bugs people are reporting.

  • Avatar of kliu1015 kliu1015 Feb 21, 2015 at 17:10 UTC - 0 likes

    @ryvix: Go

    I reset my language.yml and it's still broken. It just won't read the file. Is there a way to fix it?

  • Avatar of ryvix ryvix Feb 20, 2015 at 06:36 UTC - 0 likes

    @kliu1015: Go

    This is probably a bug with the language. Reset the entities section in your language.yml file. I hopefully have fixed this in the next release. I'm just working on making the language load properly now and then hopefully can release the next version.

  • Avatar of kliu1015 kliu1015 Feb 20, 2015 at 03:20 UTC - 0 likes

    Everything works fine, except whenever a player mines a spawner, it transforms into a pig spawner. They actually spawn pigs as well.

  • Avatar of ryvix ryvix Feb 19, 2015 at 22:25 UTC - 0 likes

    @GhastcraftMc: Go

    I'm guessing it's because I had to change the way it stores the spawner type because it wasn't saving the data value after a server restart. It now just uses the item display name to get the type of spawner. I've never used essentials so I'm not really sure if it's possible to make it work or not.

  • Avatar of GhastcraftMc GhastcraftMc Feb 19, 2015 at 13:39 UTC - 0 likes

    I have an issue with the plugin that I do not know how to resolve. Is there a way of using the essentials signs (shop signs) to sell spawners to players? Before I updated my server to 1.8 it worked perfectly and when I clicked to buy a creeper spawner, I got a creeper spawner, however now the only spawner I get when buying the spawners is a pig spawner, I use this format with the sign - [Buy] 1 52:50 $500000

    It has worked perfectly before the 1.8 update and I am hoping you know a solution, or you know how to fix the problem with your plugin Best Regards Hector Campbell

  • Avatar of ryvix ryvix Feb 17, 2015 at 22:46 UTC - 0 likes

    @TheMattVid: Go

    Sounds like you want a logging plugin. I'm not sure which ones even exist these days for 1.8 but there used to be plugins like Logblock, Hawkeye, Prism, etc. which would log all such actions.

    @AresOnePR: Go

    Make sure you're using Spawner v1.9b on Spigot 1.8 or if you are on 1.7 still use Spawner v1.8. Make sure you're also using the proper permissions for each version. Spawner v1.8 used a * for some permissions which was changed to all in v1.9b to prevent permission issues.

    Also note there are separate permissions for breaking spawners and mining spawners with silk touch.

    Also, I am getting close to the next release, just working on at least one last bug. Hopefully this week sometime it will be ready with any luck.

    Last edited Feb 17, 2015 by ryvix
  • Avatar of AresOnePR AresOnePR Feb 17, 2015 at 22:27 UTC - 0 likes

    Please help me. The plugin is awesome. The only issue we are having is the spawners will not drop when broken. We have tired everything and have had no luck. Is there a command like spawner.drop.* that you can add or guide me on how to fix it please. Thank you.

  • Avatar of TheMattVid TheMattVid Feb 15, 2015 at 17:04 UTC - 0 likes

    I love this plugin, but I would like a new feature added. I use this plugin for my skyblock server and contributors are given spawners and have the freedom to pick up and place spawners as they need to. The only problem is that sometimes if a contributorjoins a new skyblock or restarts his skyblock, he loses everything including his inventory. Normally, I would have no problem with this and I would just give the contributor the spawner again, but the only problem is that this leaves the possibility that they just gave the spawner to someone else and they are just pretending to have lost the spawner. For this reason, I would like this plugin to have a text file that tracks every action of a spawner, including the very moment a command is used to give it to someone, every time it is placed, every time it is broken, every time it is dropped, and every time it is picked up. That way, if someone claims to have lost a spawner, I can check the file to see if they are telling the truth. Perhaps every spawner can be given a separate ID# so that consistency can easily be tracked. Thanks for reading!

What do you want added next?

  1. Choices:

  1. Results
  2. 5 comments

Facts

Date created
Dec 03, 2012
Categories
Last update
Feb 25, 2015
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Spawner
Downloads
57,963
Recent files

Authors