MonsterBox
Updated for 1.8.1! Now with guardians, endermites and bunnies!
MonsterBox will change the type of any monster spawner that you are looking at with the command /mbox set <creaturetype>. Some valid creature types are wolf, pigzombie, creeper. Capitalization does not matter. To change the options, just open settings.ini located in the plugins/MonsterBox folder. For economy support please download and install Vault
Now supports setting mob spawners through eggs and having mob spawners drop eggs upon breaking (both support permissions for specific mobs)
Please Note: For all of you having problems getting monsters to spawn: This only "sets" the type of monster spawner and lets minecraft do the spawning. It will not spawn certain types of monsters (like Giants or Steves) because the spawn rate and spawn conditions for a monster spawner of that type is not defined in the minecraft code.
To use:
To set a monster spawner:
Command Method
- Look at monster spawner. (Through glass is just fine)
- Type in /mbox set <creaturetype>
Command-less Method (Using Spout)
- Hit monster spawner with a gold sword
- Select the new mob that you want it to spawn
Command-less Method (Using Eggs)
- Right click the mob spawner with the type of egg you want it to be
To get which monster a spawner spawns:
Command Method
- Look at monster spawner. (Through glass is just fine)
- Type in /mbox get
Command-less Method (Using Spout)
- Hit monster spawner with a gold sword
- The type of spawner is at the top of the selection window
Features:
- NEW! Placed mob spawners do not spawn anything until set
- NEW! Set prices for setting a spawner via egg
- NEW! Optional feature to have mob spawners only drop if you use a tool with silktouch on it.
- NEW! Integrated egg spawning restriction built in! Deny them the right to spawn mobs while still having the right to set the spawner types!
- Change the type of mob spawner using eggs! (Permissions support for each mob type) Also, please note that changing mob spawners through eggs doesn't have a cost associated with it.
- Mob spawners can drop their corresponding spawn egg (permissions support for each mob type) so that you can set them upon placement again.
- Spout enabled GUI. Just hit the monster spawner with a gold sword! (configurable)
- Completely command-less mode of operation with the new Spout gui or with eggs!
- Spout is 100% optional on both server and client.
- Option to assign a price to every monster, not just a group price for setting the type of monster a mob spawner will spawn.
- Compatible with your existing monster spawner drops from all versions of CreatureBox (Don't run both at once! They will conflict) for an easy transition.
- Can change the type of monster spawner to any creature that minecraft natively supports.
- Admins can restrict what mobs a player can set a monster spawner to spawn using permissions.
- Monster spawners can drop monster spawners (With or without silk touch tools, depending on config) (Permissions support. If permissions is not installed it defaults to OPs only)
- Find out which type of monster spawner you are looking at.
- Restrict users from placing mob spawners using permissions. (if permissions is not installed it defaults to OPs only)
- Permissions (Both bukkit superperms and the older permissions system) support (if permissions is not installed it defaults to OPs only)
- ALL ECONOMY systems supported via the Vault plugin
Permission Nodes:
- monsterbox.set - the ability to set the type of monster spawner
- monsterbox.eggset - the ability to set the type of monster spawner using eggs
- monsterbox.eggthrowmessage - Should this group see a message whenever they try to spawn a mob use a banned egg?
- monsterbox.eggthrow.[monstertype] - the ability to spawn that mob using an egg
- monsterbox.view - be able to use the /mbox get command
- monsterbox.free - if iConomy is enabled this node lets this group/user use the command for free
- monsterbox.freeegg - if iConomy is enabled this node lets this group/user set spawners using eggs for free
- monsterbox.drops - the ability for the player to recieve a drop from breaking spawners
- monsterbox.place - the ability to place any spawner
- monsterbox.spawn.* - The ability for the player to change a monster spawner to any monster type. (The player will also need the node monsterbox.set in order to access the option)
- monsterbox.spawn.[monstertype] - The ability for the player to change a monster spawner to [monstertype]. (The player will also need the node monsterbox.set in order to access the option)
- monsterbox.eggspawn.* - The ability for the player to change a monster spawner to any monster type using eggs. (The player will also need the node monsterbox.eggset in order to access the option)
- monsterbox.eggspawn.[monstertype] - The ability for the player to change a monster spawner to [monstertype] using eggs. (The player will also need the node monsterbox.eggset in order to access the option)
- monsterbox.dropegg.* - The ability for the player to receive an egg drop of any spawner's mob type when breaking the spawner.
- monsterbox.dropegg.[monstertype] - The ability for the player to receive an egg drop of [monstertype] when breaking those spawners.
List of Mobs that are verified to spawn (others might, I just haven't tested):
- Ghast
- PigZombie
- Wolf
- Pig
- Skeleton
- Creeper
- Zombie
- Sheep (at least in 1.7, not sure about 1.6.6)
- Cow (1.7+)
- Chicken (1.7+)
- Cave Spider (1.8+)
- Enderman (1.8+)
- Silverfish (1.8+)
- Giant (1.8+)
- Ender Dragon (1.0.1)
- Mushroom Cow (1.0.1)
- Villager (1.0.1)
- Blaze (1.0.1)
- IronGolem (1.2.3)
A Cool Video I Found of a Map Created With the Aid of My Plugin
Plugin Not working correctly?
For me to diagnose the issue properly please provide me with the following information:
Description of issue and how to reproduce: Version of Craftbukkit: Version of java: OS: Other plugins installed: Output of console (If there are any error messages): MonsterBox configuration file:
Changelog:
Version 0.3
- Added new mob types (cave spiders, enderman, silverfish)
- Added Bukkit SuperPerms support
- Now supports all economy plugins via the Register plugin!
- Added a little fix for bug in craftbukkit build 1240
- Doing the /mbox command by itself now lists out all the possible mob types you can choose from. (Auto generated from your version of bukkit)
Version 0.2
- Added permission nodes for each animal spawn type
- Monster Spawners can now drop spawners (permissions support)
- You can now view a monster spawner's current mob either in inventory by selecting it, or on the ground via command.
- Dropped Monster Spawners retain their mob type.
- Restrict Monster Spawner placing via permissions.
Version 0.1
- First release
If I install the plugin, change a spawner to a zombie spawner (from pig), then uninstall it, will it still spawn zombies? I just wanted the plugin for one spawner that I need to spawn zombies instead of the default, which is pigs.
Great plugin btw. The egg system is really nice!
@G4meM0ment
DOES ANYONE READ HOW TO SUBMIT A PROPER BUG REPORT! Read the copy/paste from the topic below...
Plugin Not working correctly?
For me to diagnose the issue properly please provide me with the following information:
Description of issue and how to reproduce:
Version of Craftbukkit:
Version of java:
OS:
Other plugins installed:
Output of console (If there are any error messages):
MonsterBox configuration file:
===================================================
Now that you read all that (hopefully) I'll inform you as to why it spits out that error... It has nothing to do with your build of bukkit. Rather it deals with Spout changing class names on me... (The output of the console would have helped immensely). Without that output I had to downgrade my version of bukkit to 1.1-R6 and re-download spout to finally see the error... (it worked fine otherwise...). Please note that I am just telling you this so you can be more informative in the future for the plugin devs that you inform. Here's how a proper bug report for the plugin should have looked like:
Version of Craftbukkit: 1.1-R6
Version of Java: Unknown?
OS: Linux
Other Plugins Installed: Spout, LWC, Essentials
Output of console:
15:27:19 [SEVERE] Error occurred while enabling MonsterBox v0.6 (Is it up to date?)
java.lang.NoClassDefFoundError org/getspout/spout/Spout
at tux2.MonsterBox.MonsterBox.setupSpout(MonsterBox.java:208)
at tux2.MonsterBox.MonsterBox.onEnable(MonsterBox.java:150)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Caused by: java.lang.ClassNotFoundException org.getspout.spout.Spout
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 12 more
Monsterbox configuration file:
#This is the main MonsterBox config file
#\\
# useiConomy: Charge to change monster spawner type using your economy system\\
useEconomy = false
# price: The price to change monster spawner type
price = 0.0
# separateprices: If you want separate prices for all the different types of mobs
# set this to true.
separateprices = false
# changetool is the tool that opens up the spout gui for changing the monster spawner.
changetool = 283
# buttonwidth changes the width of the buttons in the spoutcraft gui, just in case the
# text doesn't fit for you.
buttonwidth = 100
#Do not change anything below this line unless you know what you are doing!
version = 0.4
Tux there was a LONG error with your plugin on enable it asked if its up to date... I was trying against the R6 build.
Whatever state your updated version is would be good XD As long as it works.
@Tux2 please vault yea ;) Register is outdated :3 When is your release ready? :)
@wvenderbush
That's coming in the next version as well and also why it's taking so long as I have to go through all my code and convert it to use vault instead of register.
@Tux2
Thanks, but can you update it to use something like Vault instead of Register (register doesn't work any more...)
thanks!
Love the eggs btw, thats perfect!
@wvenderbush
It is updated to the new event system....
@magratgarlick
@UnitedFactions
I'm working on this plugin as I speak and I should have a release out in a few hours.
@magratgarlick Me too! cant wait
I'm looking forward to the update so I can add an ocelot to my zoo!!! Thank you for a great plugin!
Update to new event system? (1.1 R-6 at least)
Thanks!
@Tux2
Ok thanks :) Appreciate the work you put into this plugin.
@Technius
I think you should look at the code before suggesting things. The breakage has nothing to do with the use of YAML (Actually, I don't use YAML in this plugin, I use the in-built java properties file format for it).
@godgodgodgo
An update is coming, it's just that Craftbukkit depreciated the enumerator I was using to grab all the mobs out of in the new builds for 1.2 (that's what broke it), and I am currently fiddling with some other methods for auto updating functionality.
Hey, an update for this awesome plugin to work with 1.2 builds of craftbukkit would be great :)
1.2.2 Just breaks everything, I got 40+ plugins disabled. Including this, I think you should use the new YAML class.
@G4meM0ment
Hey Tux2, You know that you can change spawner types in other territories? (factions etc.) also in worldguard regions?! Thanks please help me out on this one!
People can change spawners which are public for example.
@G4meM0ment
I'm thinking worldguard might be blocking the placement of spawners. I would check that first. Also, it seems that when giving yourself a mob spawner in creative it will always disappear, so you have to /give it to yourself. Try placing spawners without MonsterBox installed and see if the same bugs happen if all else fails. Also, this plugin IS R5 ready. :D
@Tux2
May I have to send it as an awnser...:
I use mcMMO, WorldGuard, WorldEdit, AdminCMD, Automessage, BiomeAbince, BookWorm, ChestShop, HealthBar, Citizens, CombatTag, DeadManschest (will be removed soonly we will sue then Death and Rebirth), EconomyPunga, GenOre, HeroBounty (soonly replaced with Head Bounty or something like that), iChat, iConomy, Jail, LimitedCreative, LogBlock, LWC, MagicSpells, MoneyDrop, OpenInv, Permissions, PermissionsEx, Phatloots, PluginList, RideThaDragon, SimpleItemPermissions, SimpleRegionMarket, Spout, SpoutBackpack, SpoutWallet, Vault
Puh that was hard :P I hope you can fix the bug and update for R5.
I use mcMMO, WorldGuard, WorldEdit, AdminCMD, Automessage, BiomeAbince, BookWorm, ChestShop, HealthBar, Citizens, CombatTag, DeadManschest (will be removed soonly we will sue then Death and Rebirth), EconomyPunga, GenOre, HeroBounty (soonly replaced with Head Bounty or something like that), iChat, iConomy, Jail, LimitedCreative, LogBlock, LWC, MagicSpells, MoneyDrop, OpenInv, Permissions, PermissionsEx, Phatloots, PluginList, RideThaDragon, SimpleItemPermissions, SimpleRegionMarket, Spout, SpoutBackpack, SpoutWallet, Vault
Puh that was hard :P I hope you can fix the bug and update for R5.
@G4meM0ment
Please give me a list of your plugins. It works perfectly for me in R4.
@UnitedFactions
I'll look into it for the protection.
Also, permissions should be per world. I've never had a problem with it. If you could pastebin your permissions file I'll take a look at it.