MobRepellent
MobRepellent v0.7.2
MobRepellent allows players to construct "repellers" that will prevent hostile mobs from spawning within a certain distance. This is useful for cities and other settlements where mass amounts of torches are not aesthetically pleasing and cannot guarantee that mobs won't spawn.
Get it!
Download v0.7.2 for CB-1.2.3-R0.2 - Source (github)
Download the sample config.yml file (place it in your plugins/MobRepellent directory)
How do I use MobRepellent?
Simply drag the MobRepellent plugin .jar file into your Bukkit /plugins directory. MobRepellent will automatically create all the necessary files.
Once the plugin is loaded, to create a repeller you'll need 7 iron, gold, or diamond blocks. First, using five blocks, construct a shape that looks like a plus sign (+) parallel with the ground. Next, place the remaining two blocks directly above the block in the center of the plus sign. See these:
How to Construct the Base
Completed Structure
After the repeller is constructed, no hostile mobs will spawn within a cuboid radius of the base of the repeller. For instance, if the radius is 50 blocks, it will repel in a 100x100x100 cube centered at the base of the repeller. Neutral mobs are not blocked by default, but this can be configured in the config.yml. MobRepellent does not affect mob spawners, hostile nor passive. To remove the repeller, simply remove one of the blocks that is part of the repeller.
Default repeller types and radii:
- Small - Iron block - 20 block radius
- Medium - Gold block - 30 block radius
- Large - Diamond block - 50 block radius
Console and Admin Commands
All console commands default to OP-only.
/mrlist - Lists all currently loaded repellers /mrreload - Reloads the configuration file /mrremove [repellerNumber] - Removes the selected number as found in the list given by /mrlist. Does not remove the repeller structure. /mrremoveall - Removes all currently loaded repellers. Does not remove the repeller structure.
Permissions
MobRepellent now contains support for Bukkit permissions. Using a plugin such as PermissionsBukkit will allow you to take full advantage of the new functionality.
mobrepellent.* - Access to all permissions mobrepellent.list Default: OP-only Allows use of /mrlist command mobrepellent.reload Default: OP-only Allows use of /mrreload command mobrepellent.remove Default: OP-only Allows use of /mrremove command mobrepellent.removeall Default: OP-only Allows use of /mrremoveall command mobrepellent.create Default: all players Allows player to create a repeller mobrepellent.destroy Default: all players Allows player to destroy a repeller
Configuring MobRepellent
You can configure MobRepellent to use almost any block type instead of the default blocks. You can also configure MobRepellent to use any radius to repel mobs, and select which mobs to repel and which to ignore.. On the first run of the plugin, MobRepellent will automatically create a config.yml file with the default values. See this sample config.yml file for more information.
Todo list
- Custom repeller shapes (admin defined structures)
- Possibly add visual cue that repeller is working. Possibly with the top block on fire (as suggested by @darklust ). This will be configurable and probably default to off.
- Possibly add configuration option to make repellers require fuel.
Known Issues
- TNT and creeper explosions can destroy repeller structures without destroying the actual repeller functionality
- Permissions allow players to "construct" an inactive repeller, but not destroy it
Changelog
Version 0.7.2
- Added configuration option to allow spawning below a repeller, regardless of its radius
Version 0.7.1
- Configuration files are now fully functional, although the format has changed (old format config files will automatically update to the new format). See the sample config.yml on GitHub for more info.
- Reloading config file while in-game is now fixed
- Damage values for blocks (e.g. orange wool) now works using '@' in the config file
- Many fixes to spawn-blocking (squid, villagers, golems, snowmen, spawner eggs, etc)
Version 0.7.0
- Basic functionality restored for CraftBukkit 1.2.3-R0.2 (#2060)
- Removed glowstone from restricted blocks, added mycelium, end stone
- Introduced small configuration file bugs (must stop server, edit file, restart server for changes to take effect)
- Introduced (re-introduced?) bug with squid being blocked from spawning, regardless of configuration options
For previous versions, see the README file.
Notify me of any bugs or suggestions you have. I'd like to make this as useful as possible.
Author has given permission to continue mod. Please check Spigot website.
Still, working for 1.8. For anyone curious why can't you place armor stands inside the protected area, all stands are recognized as hostile mobs, thus making them impossible to spawn. Easy fix is to add the mobs you want to repel on the list, e.g. repelling all hostile mobs we just list them, and you can still place stands inside the areas:
Mobs:
repel_neutral: false
list:
- Creeper
- Witch
- Zombie
- Skeleton
- Spider
- Enderman
- Slime
I hope someone find this useful, cause I lost like 2 hours looking for a solution.
update for cb1.7.2-r0.3?
Well, ok, download link seems to have been removed (even though the ones in the comments below are apparently allowed). Anyway, the 0.8 dev version posted in the comments previously still works even though there is now no working download link for it.
Staff edit: removed external DL link
This version is still working perfectly for me (old DL link seems to be dead I think).
@BayingWolf149
any eta for MobSpawnControl BayingWolf??
I cant get the dev 0.8 anymore
I dont think you will get any reaction from WillPall as he hasn't been online here since Apr 15, 2012
greetz dutchy
please update
@BayingWolf149
Config file is empty and when I paste the config example and reload it clears it once more.
Craftbukkit 1.4.7 beta
EDIT: I got it to load with /mrreload Next problem is - Ocelot is "unknown mob" Is this because repel_neutral is false? If so I think the list: should override it. But that's just a suggestion. Now that I have it working properly, great plugin. 5/5. Thanks for sharing.
Works great. Thanks for the contribution BayWolf.
@BayingWolf149
I tried both to reload and restart my server, both don't make it able to open the jarfile, or at least seem to recognize it, I even just installed the latest dev-build, still no go :(
any tips?
@BayingWolf149
does this one work, as opposed to the one Jaiph commented?
please PM me...
Is there going to be an update?
update?
https://github.com/Gauthic/MobRepellent/blob/master/MobRepellent-0.7.2a.jar
^
-- guys try this one, been working fine for me since Gauthic posted it in the comments. Unless the author comes back we should really keep a comment with this link near the top of the first page. As Gauthic pointed out, thank god for open source!Worked fine in previous versions of Minecraft but now the server wont read the jar, deleted and re installed and nothing. Update pleasee?
@Krglok
It still doesn't work for me. I'm using beta 1.4.5 R2. Here is error message I got.
[SEVERE] Could not load 'plugins\MobRepellent-0.7.1.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.VerifyError: class mobrepellent.MobRepellent overrides final method getLogger.()Ljava/util/logging/Logger; at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:205) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:51) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:111) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.VerifyError: class mobrepellent.MobRepellent overrides final method getLogger.()Ljava/util/logging/Logger; at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143) ... 9 more
I tested it on 1.4.5 and it works.
Sometimes some Repeller are lost on secondary worlds , but there is no errormessage, so i think its my own fault.
I'll check it out with beta 1.4.5 in the next few days (haven't updated my server in a couple of weeks).
Bukkit Beta build for 1.4.5 breaks this plugin. It works fine on beta 1.4.2.
Would love to see an update to this. I tried that link you provided, Gauthic. But the plugin failed to load. Is there a trick to get it to work?