Adventure mode except you can break certain blocks

Discussion in 'Archived: Plugin Requests' started by hiddendet3ction, Oct 14, 2012.

  1. Offline

    hiddendet3ction

    Is there a plugin out there or anyone willing to make one where all players other than ops are only allowed to break blocks of your choosing. I'm wanting a plugin that allows you to break monster spawners, chests, fences, glass and glass panes but if It could be set to any blocks that's fine too. Thanks for reading.

    (Also no permissions needed)
     
  2. Offline

    turtleguy1

    Id be happy to give this a go!
     
  3. Offline

    afistofirony

    hiddendet3ction
    This would not be possible in adventure mode. You'd have to use a 'modified survival' in which it will only work if you break specific (configured) blocks. Which sounds like something WorldGuard could do.
     
  4. Offline

    AndyMcB1

    To whoever is making this, don't give persmission to OP's :)
     
  5. Offline

    hjeyez

    Well, you could probably do this, but the blocks that are allowed to be destroyed would either have to be in one hit, or the rest would have to be broken then respawn with a message saying something like "You cannot break flower."
     
  6. Offline

    afistofirony

    As I stated earlier:

    To do this, you'd go to WorldGuard's configuration for the desired world and add this:

    blacklist.use-as-whitelist: true

    Then, add this to that world's blacklist.txt:

    [mob spawner, chest, fence, glass, glass pane]
    on-break=deny, tell
     
    AndyMcB1 likes this.
  7. Offline

    spazymcgee

    If anyone else is looking for a unique plugin that does this, for a variety of reasons I one to do this for my own server a little bit ago and then updated it to 1.3.2.

    You put the block ids in the config that is generated upon the loading of the plugin, (separated by ,'s) and you can break only those blocks.
    I also had a permission built into it that I gave to the op's in my server. (but I simply disabled that for the moment, use a permissions manager to re-assign the "adv.break" permission if you want to)

    the source is included along with the plugin

    Here is a link to the plugin on my dropbox
    https://www.dropbox.com/s/ays0tj39pjoreg0/ImprovedAdventure.jar
     
  8. Offline

    Cybermaxke

    Is it one hit break?
    If it is, then I also know a other way to do this. Just using survival and setting the hardness of the blocks to unbreakable. :)
     
  9. Offline

    AndyMcB1

    or data value of -1? :p
     
  10. Offline

    spazymcgee

    currently it is not one hit break, it simply uses event canceling with no return message
     
  11. Offline

    hiddendet3ction

    Thanks to everyone who's given me support with this. I'm trying out spazymcgee 's plugin so we shall see how it goes.
     

Share This Page