Restorative Eating.

Discussion in 'Archived: Plugin Requests' started by thecerealkill3r, Oct 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    thecerealkill3r

    Simple!
    Plugin name: RestorativeEating
    Commands: N/A
    Permissions: N/A
    Config:
    - Name of the food
    - How much the food heals (Out of 20, if I wanted it to heal me 2 hearts, I would write 4 in the config.)
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    One request. When you submit the plugin to me, can you give me the formatting of the config, thanks.
    I would like it by: Preferably Halloween or before. Something special going on, on my server that needs this plugin ;)
    Thanks :)
     
  2. Offline

    Tecno_Wizard

    Making it now, give me an hour or so. The code is easy, it's just that the config is a pain with that many food types.
     
  3. Offline

    thecerealkill3r

  4. Offline

    Tecno_Wizard

    Appearently I'm having some major config issues today, sry.
    Can you just post each of the foods you want an how much they heal? I'm going to hard-code it. For some reason it is not seeing the sections of the config.
     
  5. Offline

    timtower Administrator Administrator Moderator

    VG.Developments likes this.
  6. Offline

    Tecno_Wizard

    timtower, IDK, I've had issues with it since day one.
    I'm still finishing this though.
     
  7. Offline

    thecerealkill3r

    Tecno_Wizard
    How about this -
    Every food I put onto the config list heals 1 food point, or half a heart.
    That would be great, too.

    Just saw your message. If it's easier, go for what I just suggested. I don't mind that either.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  8. Offline

    Tecno_Wizard

    Nah, I'm going to give it every shot before that. Including asking on the plugin development, XD.

    EDIT: It just randomly started working. Okay then...
    Do you want any messages to display, or just the effect.

    thecerealkill3r, 2 things I learned today
    1- You can iterate through a full set of enumerations using Emun.values().
    2- Configs can get really annyoing.

    There's your plugin.
    https://onedrive.live.com/redir?res...62&authkey=!AId5yRfcfhLAJP4&ithint=folder,jar

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  9. Offline

    thecerealkill3r

    Tecno_Wizard
    One question - Am I able to add more foods into the config? I think you got almost all of them.

    P.S
    Plugin works :D
     
  10. Offline

    Tecno_Wizard

    thecerealkill3r, what foods are missing? I had the computer go through every material type inBukkit to see if it was edible, but if it missed something I can easily fix it. You might be able to just add it, but I doubt it. It would have shown up in the list if it could be eaten.
    *I'll likely not be able to respond until around 10:00 AM New York Time tomorrow.
     
  11. Offline

    thecerealkill3r

    Tecno_Wizard
    A few things like salmon and maybe another thing. Nothing major. I wouldn't fret about it.
     
  12. Offline

    Tecno_Wizard

    I'll have it working tonight if possible. Salmon must not be considered a Material...
     
  13. Offline

    TheOatBaron

    Salmon is a fish with a damage value of 1 (non-cooked)

    EDIT: As a side note, I'm planning on creating a highly configurable version by December
     
  14. Offline

    Tecno_Wizard

    Go ahead with that, I just did this quickly for his server event. The thing is less than 20 lines of code, it's just that the config was being a pain in the behind.

    thecerealkill3r, all edible things are accounted for. Some of them are generalized in Bukkit itself it seems.

    Please mark this thread as filled

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
Thread Status:
Not open for further replies.

Share This Page