Inactive [MECH] MobRepellent v0.7.2 - Build a structure that stops mobs from spawning in an area [1.2.3-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by WillPall, Aug 27, 2011.

  1. Offline

    WillPall

    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
    [​IMG]
    Completed Structure
    [​IMG]
    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.
     
    columb, mps1969 and FuturaEX like this.
  2. Offline

    Spl1tz

    Awesome! Will try this :)
     
  3. Offline

    WillPall

    New Version: MobRepellent v0.2 !!!

    Changelog:
    1. Adds multi-world support (WOOHOO!)
    Let me know of any bugs, performance problems, or suggestions. This update should automatically detect where your mob repellers are in each world and adjust the repellers.list file appropriately. If not, notify me of the bug and I'll get it fixed. If there is a problem, simply breaking a block in the repeller and replacing it will fix any issues.


    Next on the list is to add the configuration file support as well as the support for multiple types of repellers. I'm thinking a default set:
    • Iron block repeller - repels in a 20 block radius
    • Gold block repeller - repels in a 30 block radius
    • Diamond block repeller - repels in a 50 block radius
    These would all be configurable, both the block types and the radius.
     
  4. Offline

    WillPall

    New Version: MobRepellent v0.3

    Changelog:
    • Added configuration file with support for selecting repel radius and repeller block type
    • Lowered default radius from 100 blocks to 50 blocks
    You can now configure MobRepellent to use almost any block type instead of diamond blocks. You can also configure MobRepellent to use any size radius to repel mobs. On the first run of the plugin (or the new version), MobRepellent will automatically create a config.yml file with the default values. See this sample config.yml file for more information.

    NOTE: The default repeller radius is now 50 (instead of 100)! That means it has went from a 200-block cube to a 100-block cube. Make sure you've protected areas that may no longer be inside your repeller radius!

    Again, let me know of any bugs or suggestions.

    Sorry, but there was a problem with the download link which ended up pointing to version 0.1 instead of the newest 0.3. If you just downloaded the plugin, re-download and all will be well.

    And now, I'm going to stop spamming posts in my own thread. :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  5. Offline

    darklust

    Suggestion: Once the repeller is completed, the top could ignite for effect.
    Like the plugin though :]
     
  6. Offline

    WillPall

    Good suggestion. I was thinking of adding a chat notification so that the player would know if it was successful, but this would work as well. Should it ignite for a moment and then go out, or should it ignite until the repeller is destroyed?
     
  7. Offline

    darklust

    I was thinking until the repeller was destroyed, because it's like it turns off.
     
  8. Offline

    WillPall

    That could work. The only problem I can see is if you create the repeller (which is three blocks tall) in a space that has a roof at three blocks, where should it ignite?

    Another example, our repeller on our server is inside our water fountain. A water fountain on fire would be a little strange.
     
  9. Offline

    Trixitie

    You could make it an option, or simply ignite it only if there's air on it, and whatever the case send a message when it's complete.

    The plugin look great ^^, I'll try it once the multiple strength is implemented!
     
  10. Offline

    dragonhippie

    that would be a great idea, i was thinking of a suggestion of maybe you could choose what you want flowing/blazing on top of the repellent. for example, if your in a cave; a lava fountain. (used in Caution)
    if your on a mountain so high up; a fire on top.
    If your in a town; Water flowing on top. (fountain highly recommended)
    If your in the woods; a sapling or pumpkin. (tree might grow and look petty cool :D Repellent tree activate! lol)

    Anything is good ^_^ (commands for the repellent to turn off and on?)

    Dragonhippie
     
  11. Offline

    Takel

    Very interesting idea. I'll be waiting for multiple types of repellents as well as being able to prevent neutral mobs from spawning before I can bring this into my server.

    Any chance we could customise the shape of the repellent as well? I'd like to bury the repellents but the 2 block high spike at the top makes it a little awkward without hiding it in a wall or other structure. I would also be perfectly fine if there was an alternative structure which was 'flat' (1 block high) which makes it easier to embed into the ground.
     
  12. Offline

    WillPall

    Thanks for the suggestions. The next thing on my list is the multiple repellers and neutral mob repelling. I'll look into doing alternate structures. I've been trying to think of a way to allow server admins to define the shape of the repeller, but it's a bit of a challenge.

    I've got some non-plugin work to do, but look for the next update sometime tomorrow.
     
  13. Offline

    Jaiph

    This is exactly what I've been looking for, nice work! All the stuff on your todo list sound great too.
     
  14. Offline

    Fr0zenfr0g

    I voud love that difrent blocks have a difrent radius of spawn protect.
     
  15. Offline

    Raycrash

    How bout fuel ? or charges ? basicall I don't want people to set this up once and stop caring ;)
     
  16. Offline

    STiChad

    Just make it glow a little? Could make it configurable on brightness and if it glows or is ignited.
     
  17. Offline

    WillPall

    I don't think that is possible with the Bukkit API. Lighting is something that is done client-side. I'm looking into some options.
     
  18. Offline

    mps1969

    Has anyone had this work with the new 1.8 bukkit update ? Mine doesn't seem too work now .
     
  19. Offline

    STiChad

    Ah, good point.
    But can you change the highest block from diamond block to obsidian and from obsidian back to diamond?
    Kinda like its flashing.
    Got the idea from the plugin called "Strobe".
     
  20. Offline

    WillPall

    I haven't installed the experimental update, and probably won't until we get closer to a recommended build. 1.8 will be my top priority when that happens. We love these things on my server :p

    That's actually a great way to get around the lighting issues. Thanks for the suggestion.
     
    STiChad likes this.
  21. Offline

    spudy121

    having problems every time i reload the server my config file reverts back to 50 radius i don't care what kind of block it is and it works fine up to 50 block radius but i like to change it to 300 to 400 blocks if you could help I would be grateful if you need anymore info let me know
     
  22. Offline

    WillPall

    What version of Bukkit are you using? Can you post your config.yml file? Sorry, but I can't reproduce your error. Also, when you say "reload" the server. Do you mean issuing a "stop" command and then starting the server again?
     
  23. Offline

    spudy121

    never mind i figured it out you cant edit the config file and reload the server you have to shutdown the server thin restart it for the config file to change but thank you anyway

    this is a cool plugin

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  24. Offline

    WillPall

    Glad you got it worked out. Thanks!
    I am planning on adding a config file reload option so that you don't have to shut down the server to reload. I guess I should add that to the TODO.

    I've been busier than expected, and I'm kind of waiting to see how Bukkit is handling the 1.8 recommended build, so the next update is going to be late. Look for 1.8 support and neutral mob support, possibly with the multiple repellers in the next few days.
     
  25. Offline

    Demon Boy

    not working for me (mc 1.7.3)
    restarted the server creeps still spawn
     
  26. Offline

    WillPall

    Are you running any other plugins? Are you using the default config, or are you using different settings? Do you get a server console message that a repeller has been created?
     
  27. Offline

    Demon Boy

    Yes i'm running other plugins, any particular ones you had in mind? izone did have problems protecting my map against mobs from spawning too though so.. yeah I dunno :S

    I changed the config but all I did was change the range slightly

    console or chat? I haven't noticed either.
     
  28. Offline

    WillPall

    If you haven't noticed it in the console, then it's not getting created properly. It should give a message when someone creates a repeller. Something to the effect of "A new repeller was constructed by <playername>". This isn't in the chat logs (that functionality isn't in yet). It would show up only in the server log or in the server console. You didn't change the block id in the config, and you're creating the repeller like in the screenshots above, right?

    If everything else is being done correctly, I think it must be a conflict. I override block placement and block breaking, so if you have other plugins that deal with that stuff it's possible that they are taking priority over my mod. Can you list any plugins you think might deal with block placement/breaking?

    If the repellers are getting created correctly, then like izone, my plugin is probably getting overridden by some other plugin that deals with entity spawning.
     
  29. Offline

    Demon Boy

    izone is the only plugin that im using that has anything to do with protection/ mob spawning
     
  30. Offline

    WillPall

    I looked at iZone. It has set its priorities to be higher than mine, which unless I'm mistaken, means it will not be compatible with my plugin. Sorry.

    I'll going to look into compatibilities with various plugins, but that will come after I finish adding most of the functionality. As far as iZone, I don't see a way to make this compatible.
     

Share This Page