Spawner

Creeper Spawner 2

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

DOWNLOAD LATEST


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.

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


Entity Types

You can make spawners any of the entity names listed here. Generally you would use the name that appears inside the quotes in the brackets. For example PigZombie will work while PIG_ZOMBIE will not.

The config.yml file has a section for valid_entities where you can list entities you want players to be able to use.


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

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).


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 max creatures spawned by spawners.
  • Add amount parameter.
  • 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


Entity Types

Creating a Spawner From Another Plugin

Spawner config.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 ryvix ryvix Jan 26, 2015 at 13:55 UTC - 0 likes

    @adopted3: Go

    Thanks for the report, will fix it for the next release.

  • Avatar of adopted3 adopted3 Jan 24, 2015 at 19:00 UTC - 0 likes

    I'm getting this error with Spigot 1.8: http://pastebin.com/UapfXevw

    Thx

  • Avatar of ryvix ryvix Jan 22, 2015 at 02:59 UTC - 0 likes

    @Alancraft98: Go

    It shouldn't alter the item ids or data values or durability values in Spawner v1.9b, it only uses the item name shown on the item to determine the spawner type.

  • Avatar of Alancraft98 Alancraft98 Jan 22, 2015 at 01:26 UTC - 0 likes

    Would this plugin set a difference between the normal spawner ID (i think it's 52) and the spawner ID:93 (in this case 52:93)?

  • Avatar of ryvix ryvix Jan 21, 2015 at 02:30 UTC - 0 likes

    @N1ghtFire15: Go

    I've never used essentials so I'm not too sure but since the last release (Spawner v1.9b) the spawners just have to have the proper entity type for their name like Creeper Spawner for example and it should become a creeper spawner.

    Before the last release the spawners had to have the proper durability/data value of the entity id.

  • Avatar of N1ghtFire15 N1ghtFire15 Jan 21, 2015 at 00:56 UTC - 0 likes

    Is there a way to set up these spawners in a shop using essentials signs? If so, could someone give me direction on how to do this.

  • Avatar of ryvix ryvix Jan 17, 2015 at 02:32 UTC - 0 likes

    @adopted3: Go

    /give <player> spawner is not a command from this plugin.

    The error is also not from that command but the BlockPlaceEvent. Perhaps the spawner being placed wasn't created by this plugin. So I will try to fix that error for the next release.

  • Avatar of adopted3 adopted3 Jan 17, 2015 at 01:16 UTC - 0 likes

    @ryvix: Go

    Hi ryvix, I was going to try what you suggested, and I did a /give <player> spawner, which caused this error: http://pastebin.com/vdMsizeT

    :-( Sorry to tell you about that.

    Update: On a positive note, though, doing what you suggested fixed our error with the /spawner give command. Thx!

    Last edited Jan 17, 2015 by adopted3: Add update about regenerating language.yml
  • Avatar of ryvix ryvix Jan 16, 2015 at 10:53 UTC - 0 likes

    @adopted3: Go

    Try regenerating your language.yml and config and restarting the server.

    @LilLeo99: Go

    Probably.

  • Avatar of LilLeo99 LilLeo99 Jan 16, 2015 at 07:06 UTC - 0 likes

    Nothing seems to be spawning in. Am I doing something wrong?

What do you want added next?

  1. Choices:

  1. Results
  2. 5 comments

Facts

Date created
Dec 03, 2012
Categories
Last update
Jan 04, 2015
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Spawner
Downloads
56,251
Recent files

Authors