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.
-
View User Profile
-
Send Message
Posted Nov 16, 2012@Gauthic
Bigtime thanks Gauthic, got a rude shock working on a skyscraper when a zombie walked up next to me :P been using this plugin since it first came out, would hate to be without it
-
View User Profile
-
Send Message
Posted Nov 15, 2012And THIS, my friends, is why Open Source is AWESOME!
Thanks be to WillPall for easy to read code :)
-
View User Profile
-
Send Message
Posted Nov 15, 2012@GamersSynergy
Absolutely - try this one
https://github.com/Gauthic/MobRepellent/blob/master/MobRepellent-0.7.2a.jar
-
View User Profile
-
Send Message
Posted Nov 15, 2012Ok I've got a patch/fork of the code that seems to work on my server:
https://github.com/Gauthic/MobRepellent (my version is 1.7.2.a)
Feel free to merge it into your code -- let me know if you do so I can remove the project :)
-
View User Profile
-
Send Message
Posted Nov 15, 2012@Gauthic
Could you possibly post it once its fixed?
-
View User Profile
-
Send Message
Posted Nov 15, 2012@Gauthic
Ok in https://github.com/WillPall/MobRepellent/blob/master/src/mobrepellent/MobRepellent.java Comment out 199-202 and recompile there's no errors
Here's my javac line: javac -cp [path to craftbukkit.jar] *java
Perfect compile... now I have to figure out how to make the jar file (I'm a C/C++/Python/PHP guy, rarely rarely work with Java). Once I do that and test it on my local server I'll make note of it here and on GitHub.
I've also created an issue for you on GitHub as well ;)
-
View User Profile
-
Send Message
Posted Nov 15, 2012@Gauthic
Just an update. Plugin doesn't seem to be loading in build 2465 either.
an /mrlist produces a no such command error.
I do get the following erorrs in the server.log.... hoping this helps you immensely:
-
View User Profile
-
Send Message
Posted Nov 15, 2012I'm also noticing Mobs spawning in the no-spawn zone which they've stayed away until the latest 1.4.4 update (using bukkit build #2462)
-
View User Profile
-
Send Message
Posted Nov 15, 2012OOps, breaks with 1.4.4
Please make an Update :)
-
View User Profile
-
Send Message
Posted Nov 4, 2012Works for me with 1.4.
-
View User Profile
-
Send Message
Posted Nov 1, 2012How is it with 1.4?
-
View User Profile
-
Send Message
Posted Sep 8, 2012how do i change the default to not all players? or make it so that they dont have permission?
-
View User Profile
-
Send Message
Posted Aug 7, 2012FYI, working fine for me with 1.3.1 R1.0
-
View User Profile
-
Send Message
Posted Jul 1, 2012@AlucardEverlasting
It works on Bukkit 1.2.5 R4.0 for me...
-
View User Profile
-
Send Message
Posted May 15, 2012Please update it
-
View User Profile
-
Send Message
Posted Apr 16, 2012Thanks for maintaining the plugin. I've been running this for a little while and I'm really liking having no zombies in the hen house.
-
View User Profile
-
Send Message
Posted Mar 20, 2012New Stable Release
Fixes all configuration issues, as well as supports new features added since 1.0 (villagers, snowmen, spawn eggs, etc). See the changelog for more details.
Get it here!
-
View User Profile
-
Send Message
Posted Mar 17, 2012@Apple_columb @DonDav1 @Spybuster @KilluminatiStyle @minechomp @robxu9
Sorry for being away. A new development version of the plugin has been released. You can get it above in the description (or in the downloads section as soon as it's approved).
This release is very much a development version. While it shouldn't break anything and is mostly stable, there are some bugs (notably in the configuration file) that I need to address.
Thanks for hanging in there everyone,
Will Pall
-
View User Profile
-
Send Message
Posted Mar 13, 2012http://forums.bukkit.org/threads/update-plugin-mobrepellent-update-for-1-2-3.65065/
-
View User Profile
-
Send Message
Posted Mar 4, 2012Are you still working on it and is there an ETA for the new version?