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.
I would dearly love to see this mod updated for 1.x ... it would change the entire character of the game for me to something much, much better. How is it coming? Anything I can do to help it along? Send you cookies? Money? -Sasha
So, now this plugin is dead, right?
How's this coming? This sounds like EXACTLY the sort of thing my friends and I have suggested on numerous MC boards, but never seems to get made. It would make this game SO much less frustrating and more rewarding to play! Heck, I'd send you money for a working version ;)
@KilluminatiStyle
Thanks for the help. This plugin isn't dead, but I haven't had a lot of time to update for 1.0. I'll look into it and hopefully have something working by tomorrow or the next day.
I can't get it to work right with MC 1.0 and the latest bukkit. What I see is in the config.yml the item ID's get randomly changed to something other than what I had entered. For instance, if I use
small_id: 35:0
after restarting or reloading and checking the config.yml it has been changed to
small_id: 2100
Im going to be testing this against 1.0.0 Ill report back soon!
EDIT: It initalizes correctly. You should probably update it just in case though :l
@robxu9
I've tested with the build before 1337 (can't remember the number). Since I haven't changed anything with the plugin itself, I haven't updated the Bukkit compatibility number. I don't see any reason why it won't work, but if it doesn't work for you let me know and I'll check it out.
This is great! :) This does work for 1337, right? >_>
@maldouck
As far as "did I build this well", the plugin sends a chat message when a repeller is successfully created. As for the plugin install, if it's not installed correctly, none of the functions will work no matter how hard you try.
I don't want to discount your issues. I would like to know what problems you foresee because of the lack of an indicator for repellers. Other than "did I build this well", why would you need an indicator?
@WillPall
why an indicator ?
well I don't think everybody want to think about 'did I build this well ?' then if there is an indicator all those people will see fast enought if their repeller is working
and also, for tester ... if the plugin is not well installed (I know, I don't think anybody can't put a file in a folder but anyway ...), they will see they have done something wrong.
@JollyGG
Great! I'm glad it's working well for you.
Take that, WorldGuard!
@SirMonsterSlayer
This has been suggested before, and I'm trying to figure out the best way to go about fueling them. Thanks, I'll keep it in mind.
@maldouck
There have been many suggestions about how to show if a repeller is working, but yours is the first that mentions redstone. The problem is, I've yet to see a good reason to even have an indicator. Almost all the bugs related to repellers not working correctly have been ironed out. If the repeller is built correctly, it works. If not, it doesn't. Any reason why you want an indicator?
So far this plugin has been a dream! I've placed a few diamond pillars around an area in the nether for a hotel, and it has done what World Guard failed to do! bye bye ghasts!!!
to show a repeller is working, maybe you can set all the bloc under power and then when, for instance, you put a redtorche on it, the redtorche is off hten we can knos if the repeller is working (maybe you could also do the opposit : when offline, the repeller provide power (but this is not very logic, I think))
Could you make it so that they arent working forever ? So a fuel-type one ? which depletes 1 block of itself after 100/200/300 mobs have been blocked ?
@HSThompsn
@melikoth
Sorry about that. Yes, the plugin is currently hosted in the forums (MobRepellent 0.6). I have been busy and haven't yet updated this BukkitDev entry. For now, you can find info there. Thanks for your interest.
This would be a nice light weight method for protecting areas of a map, without having to have something like WorldGuard or Residence.
If I could make one request- that the radius of the effect either be configurable in a config. file or able to be set individually per "repeller" made
If this could keep mobs of rail too, that would be awesome!