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 may be able to replace other plugins that store mob spawner types as the item durability. It will also 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.
  • 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.

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

Spawner


Entities

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.*
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.* 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.* 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.* to allow all spawner entity types.
Default: op

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

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

spawner.give.others.<entity>
Gives access to use /spawner give <entity> <player>
Use spawner.give.others.* 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


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 config option to change spawn frequency of all spawners.
  • Add amount parameter.
  • Add ability to limit the number of spawners a player can give/change.
  • Add baby spawners.
  • Armor possible?
  • Compatibility with Vault so that you can make it cost money to get/change a spawner.


Spawner


Entity Types

Creating a Spawner From Another Plugin

Spawner config.yml

Source

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

  • Avatar of ryvix ryvix Jan 03, 2013 at 15:27 UTC - 0 likes

    @TBH_IDK: Go

    "Unsupported major.minor version 51.0 at" That means the plugin was compiled with java 7 instead of java 6. I must have accidentally exported with java 7 somehow, even though I have it set to use java 6. Sorry, I will make sure the next version is java 6.

  • Avatar of TBH_IDK TBH_IDK Jan 01, 2013 at 15:28 UTC - 0 likes
    Quote:

    2013-01-01 08:26:37 [SEVERE] Could not load 'plugins/Spawner.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/ryvix/spawner/Main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_6.CraftServer.reload(CraftServer.java:591) at org.bukkit.Bukkit.reload(Bukkit.java:184) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer.java:514) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchServerCommand(CraftServer.java:506) at net.minecraft.server.v1_4_6.DedicatedServer.al(DedicatedServer.java:260) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.UnsupportedClassVersionError: me/ryvix/spawner/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 14 more

    Last edited Jan 01, 2013 by TBH_IDK
  • Avatar of ryvix ryvix Dec 28, 2012 at 21:00 UTC - 0 likes

    @RagginMAMA: Go

    You might have some conflicting plugins on your server.

  • Avatar of RagginMAMA RagginMAMA Dec 28, 2012 at 19:23 UTC - 0 likes

    We have installed it and it seems to work great for changing the type of spawner! However no one can silk touch gather them. Not even the OP can do it.

  • Avatar of ryvix ryvix Dec 23, 2012 at 16:19 UTC - 0 likes

    @ManBeastPigDev: Go

    If you don't give permission to set spawners to people you don't trust you should be ok.

  • Avatar of ManBeastPigDev ManBeastPigDev Dec 23, 2012 at 14:24 UTC - 0 likes

    can we block certain mobs? I dont want a server full of enderdragons...

    Crafty Creeper Party Server

  • Avatar of xH3LLRAIZ3Rx xH3LLRAIZ3Rx Dec 22, 2012 at 16:07 UTC - 0 likes

    @ryvix: Go

    Yes!!! Thanks Dude

    http://wgtowny.no-ip.org:8080/status.png

  • Avatar of ryvix ryvix Dec 22, 2012 at 15:28 UTC - 0 likes

    @xH3LLRAIZ3Rx: Go

    The Bukkit staff have to approve it. However it is available here: http://dev.bukkit.org/server-mods/spawner/files/3-spawner-v1-2/

  • Avatar of xH3LLRAIZ3Rx xH3LLRAIZ3Rx Dec 22, 2012 at 14:17 UTC - 0 likes

    @ryvix: Go

    When will the file be available?

  • Avatar of ryvix ryvix Dec 22, 2012 at 02:09 UTC - 0 likes

    Seems to be ok from my testing. I just uploaded Spawner v1.2 which should work in the latest 1.4.5 RB and 1.4.6 dev builds.

    Next I will add a command to give the spawners out.

What do you want added next?

  1. Choices:

  1. Results
  2. 3 comments

Facts

Date created
Dec 03, 2012
Categories
Last update
May 16, 2013
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Spawner
Downloads
40,153
Recent files

Authors