Adventure Map Resources Plugin

Discussion in 'Archived: Plugin Requests' started by Fire_Feather, Nov 22, 2012.

?

Would you use this plugin on your Adventure Map server?

  1. Yes

    71.4%
  2. No

    28.6%
  1. Offline

    Fire_Feather

    Category: Role-Play

    Suggested Name: Replenish

    What I Want:
    I love adventure maps, however I would like to add a bit of a twist to them. This plugin would give an OP, or player with the permission node, the ability to create a block that is mineable by players who are in adventure mode. But wait, there's more! When the OP creates such a block, he can also set what block it turns into when mined, how much time it will take to turn back into the first block, and what the block will drop.

    Here is an example:
    I have set a Diamond Ore block to turn into a Stone block when mined, to take 15 seconds to "replenish", and made it to that it drops a piece of Coal. I see endless possibilities for server owners to have fun with their adventure maps with this plugin, giving their players a natural way of obtaining resources! Also, this would work with any block.

    Commands: First, the OP, or player with the right node, selects a block (or blocks) by right clicking it with a Stick, or configurable item. Then types /replenish add <Block ID when mined> <Drop Item ID> <Time in Seconds to restore>

    Permissions: replenish.create - gives player ability to create a Replenish Block

    Edit: Would it be possible to also add how long it takes to mine the block?

    Thanks to all the Devs who read this!
     
  2. Offline

    Fire_Feather

    No one is interested?
     
  3. Offline

    charlie_boi

    I used to use OtherDrops to do exactly this but not with adventure mode, I just denied building/breaking with WorldGuard instead.
     
  4. Offline

    Fire_Feather

    Does it work if the player is in adventure mode? I'll look more into it, thanks! :)
     
  5. Offline

    Fire_Feather

    Anyone interested in making this? I'm starting to see more Adventure servers (including mine), but not seeing many plugins that aim to modify adventure gameplay.
     
  6. Offline

    Fire_Feather

    Friendly Bump
     
  7. Offline

    YoshiGenius

    I'll give this a shot. Sounds like a good idea.
     
  8. Offline

    Fire_Feather

    YoshiGenius

    Thank you so much! Can't wait to see it!
     
  9. Offline

    Fire_Feather

  10. Offline

    SyntaxBlitz

    I think that the primary problem with this plugin is that the client does not know how to mine blocks if it is in Adventure Mode. The fix is to fake the block break to the client: show the block breaking animation as though someone else was breaking it, to make it seem to the client like hitting the block is having an effect. This would require essentially rewriting the serverside blockbreak code, though, which isn't really worth it.

    The only other way to do it would be to make blockbreaks be instant.
     
  11. Offline

    Fire_Feather

    SyntaxBlitz
    Would it be easier if the player is in Survival mode? Because that isn't an issue, in my case, if it would be such a huge task.
     
  12. Offline

    SyntaxBlitz

    The plugin would be trivial to write if the player was in Survival mode. It'd only be a problem in Adventure mode.
     
  13. Offline

    fredghostkyle1

    this looks like a spout plugin, but i think it might be posible todo without Spout. cool idea tho
     
    Fire_Feather likes this.
  14. Offline

    Fire_Feather

  15. Offline

    Fire_Feather

    YoshiGenius
    Are you still developing this?
    If not, is anyone else interested?
     
  16. Offline

    YoshiGenius

    Sorry, I ran into the brick wall of exams. I'll give it another shot now. Only just logged on in a matter of weeks.
     
    Fire_Feather likes this.
  17. Offline

    Fire_Feather

  18. Offline

    xXSilentYoshiXx

    This seems pretty hard, actually. Even if someone beats me to this, I'm going to learn as much as I can about OtherDrops.
     
  19. Offline

    SgtStud

    If he isn't making this plugin, I could have it done by the end of today. At least if the player was in survival mode.
     
  20. Offline

    Fire_Feather

    xXSilentYoshiXx
    I friend of mine has done it, however the plugin is very outdated and I dont have the source code. Sorry :/

    SgtStud
    If you do attempt this, could you make it both Survival and, possibly, Adventure?
    I know how hard it would be to do it in Adventure, but I would appreciate if someone could at least try?
    Thanks so much!
     
  21. Offline

    xXSilentYoshiXx

    Your friend has done it? What's the plugin URL or your friend's Bukkit Account Name? I think I can find out how to make the plugin if I see his plugin.
     
  22. Offline

    Fire_Feather

    xXSilentYoshiXx
    Unfortunately, he doesn't have a Bukkit account, and didn't release the plugin, and I haven't had contact with him. That's why I have come to the community for help.
    (He did it in Survival mode)
     
  23. Offline

    YoshiGenius

    I'm not sure if it's possible to do in adventure mode... :/

    The only thing do-able is to change the player's gamemode in the PlayerInteractEvent. BUT! You don't want the "Your gamemode has been updated" message, so change the EntityPlayer's gamemode variable. (use craftbukkit.jar)

    EDIT: Forgot to mention that I can't complete this as I have too many other projects at the moment. Sorry, Fire_Feather . If you need any plugins made at a later date, don't hesitate to PM me.

    - YoshiGenius
     
  24. Offline

    RingOfStorms

    Yea i think you'll have to use some kind of protection and just white list the block you want. I'm pretty sure adventure mode is handled client side, so the server can't tell the client which blocks can/can't be mined.

    So if this were to be made, it would need a client side mod to go along with it.
     
  25. Offline

    Fire_Feather

    YoshiGenius
    RingOfStorms
    Aw :/ Alright, thanks guys! I guess I can add this to my list of ideas for the Plugin API. Haha!
     
  26. Offline

    DSH105

    Fire_Feather
    I think I might have a way of doing this. Keyword might :p.
    I'll just have to try it. BUT, could you wait until February? I'll be away for 3 weeks from tomorrow so I won't be able to start it now :). Shoot me a PM if you're interested because I might forget when I return ;3.
     
  27. Offline

    Fire_Feather

    _DSH105_
    That would be awesome! And yah, I actually am busy working on my server anyway (Had to sadly go back to regular Bukkit, because Mo'Creatures still hasn't updated), so I can definitely wait until February!
     
  28. Offline

    Hoolean

    It's completely possible, as long as the player is in survival mode :)
     
  29. Offline

    YoshiGenius

    That ain't what he/she wants.
     
  30. Offline

    Fire_Feather

    I have decided I don't mind. I can simply protect my entire map with WorldGuard. If someone would like to take this up, I wouldn't mind if players are in Survival mode :)

    Edit: oh and I'm a He XD
     

Share This Page