[MECH] BedRestore v0.3 - Restores your health after sleeping [1000]

Discussion in 'Inactive/Unsupported Plugins' started by KillerSmurf, Jul 14, 2011.

  1. Offline

    KillerSmurf

    BedRestore - Restores health after sleeping.
    Version: v0.3

    BedRestore is very simple to use and install, all you have to do is drag BedRestore.jar into your plugins directory.
    into your plugin directory. Then reload your server, go in-game and find a bed, wait till it is night, and finally sleep and awake(leave bed)and your health will be restored! With a nice little message saying it has been.

    Features:
    • BedRestore restores your health after sleeping in a bed at night.
    • Sends you a message when exiting a bed saying you feel much better.
    • Configurable amount of health
    Download:

    BedRestore
    Source Code

    Changelog:
    Version 0.3
    • Added configurable amount of health restore

    Version 0.2
    • Updated so it sends player a message when he/she gets in the bed.
    • Plus I added github download and source in posting.
    Version 0.1
    • Initial release
     
  2. Suggestions:
    1. Configurable level of healing for sleep.
    2. Healing bonuses:
    2a. If bed is directly next to another bed, and that bed has someone in it, small boost to healing. (I'm in a relationship RL, whaddya want? XD) This will only work for a configurable number of adjacent beds. (Theoretically up to nine beds?)​
    2b. If there is running water nearby (not a source block, mobile water), bonus to healing.​
    2c. If it's raining outside, small healing boost.​
    3. Healing penalties:
    3a. If there is a running furnace nearby, healing is reduced.​
    3b. If it's thundering outside, small reduction in healing.​
    3c. If you can hear a monster when you go to sleep (so if Skeletons, Zombies, or Spiders are nearby), small health reduction.​
    4. Potential Tie-Ins to other mods:
    4a. Hungry Mod, if your hunger is below a certain point, you get a healing bonus, if it's in the middle, no healing bonus/penalty, if it's too high, you take a penalty for going to bed without supper.​
     
  3. Offline

    KillerSmurf

    That is being worked on, I will probably tie it in to Hungy mod.
     
  4. Offline

    Plague

    the title was wrong, changed it
     
  5. Only one you liked hmm? XD
     
  6. Offline

    KillerSmurf

    No, i didn't want to quote the whole thing so i quoted your first line, some of the stuff is to complicated for me. But i'll try some of it.

    Thanks, I was trying to change it but it wouldn't let me.

    If someone would like to help me they are more then welcome to.

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

    Plague

    Oh it does let you just fine, "Thread tools -> edit thread"
     
  8. Offline

    KillerSmurf

    Wait what title? the thread Topic? Because it says v0.1 but its actually v0.2
     
  9. Offline

    Plague

    yes the thread topic
     
    KillerSmurf likes this.
  10. Offline

    KillerSmurf

    Alright thanks.

    Added configurable time, need to add health bonuses.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  11. Configurable time?
    Suggestion:
    1. I can't believe I didn't think of this earlier, health recovered should be modified by WHEN you go to bed. If it's closer to morning, you get less health back.
     
  12. Offline

    KillerSmurf

    Yea i thought of that.

    I have the configuration done, just need to figure out what this error is from.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  13. BTW ~ What did you mean by 'configurable time'?
     
  14. Offline

    KillerSmurf

    I am adding how long they have to be in bed. The node is Time. They can change that and health atm. I have to fix one error then I'll be done and can commit it.
     
  15. Offline

    TheJRosso

    Ability to set chat/text notice in file would be great, or just turn it off.
    I see this plug-in as helpful :) great work.
     
  16. Offline

    KillerSmurf

    thanks
     
  17. Offline

    KillerSmurf

    Updated to RB 1000
     
  18. Offline

    nggmc

    Doesnt work for me.
    I dont get a .jar I get all these other things
     
  19. Offline

    omnija

    isn't this a rip off of bedheal>?
    does the exact same thing...
     
  20. Offline

    KillerSmurf

    Yes, kind of BedHeal is where i got the idea of this. I didn't use their source, plus when i made this bedheal was out of date. Is it still?

    What? it gives me a .jar

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

    omnija

    i still use bedheal on rev 1000, still working perfectly. that's why i mentioned it.
     
  22. Offline

    KillerSmurf

    Hmm...mmk, my source is a lot smaller and neater then his. He has a lot of unneeded coding. So what ever you like better use it. I think mine has more features.(but not a timer)
     
  23. Offline

    omnija

    a ok, could you possibly allow to sleep in the bed when it's not night?
     
  24. Offline

    KillerSmurf

    I would make it optional though. Through a config file, would you like that.
     
  25. Offline

    omnija

    yes i would thanks
     
  26. Offline

    Nikademus

    I got in bed, and then got out of bed before night passed, and was healed anyway. Is this intentional?
     
  27. Offline

    KillerSmurf

    Yes there is no timer.
     
  28. Offline

    Strange_ice0

    Okay so one of the people in my server went to sleep and suddenly the text box spammed with the awaking message and a LOT of mobs spawned right next to everyone! Is this some kind of sick joke of yours or is Herobrine haunting my server?
     
  29. Offline

    elysianhero

    Any way you could make an optional (via Config) timer? It makes it so that players who don't "hole up" before they sleep don't get to face random nighttime encounters with full health. If not, though, that's fine. Great plugin :)

    Also, is there any way you could make the message configurable? More config always equals more awesome :)

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

    Alkarym

    could you make it so that you "regenerate" instead of instant heal? so that it looks like when you heal in easy mode?
     

Share This Page