Editing Hunger Plugin. Making Hunger less frequent

Discussion in 'Archived: Plugin Requests' started by niamheyface, Nov 10, 2012.

  1. Offline

    niamheyface

    Note: Okay, so I'm not too sure if its a plugin or a mod, but it seems like its more modifying the game rather than creating something new, so I would assume it would be a plugin. I could try and make it, but I'm not very good at java.

    Plugin category: Misc

    Suggested name: Not so hungry (or something like that, I dunno)

    What I want: I would like to make it so that players didn't get so hungry so often. Me and my friends have an idea for a server, one that no one has ever done, as far as we're concerned, and this plugin would ideally make it easier to stick to the 'timetable'. All we basically want is to make a players hunger not go down so easily, or ideally, make it so a player can only get hungry at certain times, e.g. Morning, mid-day and evening.

    Ideas for commands: I wouldn't assume we'd need commands, if possible. I suppose you could make them up, something along the lines of (in-game):

    /slowhunger on
    /slow hunger off

    Ideas for permissions: Make it up, I don't mind as long as someone is able to make it! Besides I'm not the best with scripting.

    When I'd like it by: Any time, hopefully within about 6 months.

    I would also like to note, I could possibly give some money towards whoever does make the plugin, or whoever makes the best one, and whoever does gets credit on the server for it.

    When the server is made, the IP will be here.
     
  2. Offline

    wristdirect

    Pretty sure this is doable. I have to sleep here in a few minutes, and I have a busy day tomorrow, but in the next few days I think I can get something like this to work. The API seems to have all the tools necessary to make it happen :)

    Ninja Edit: Not sure how well I'll be able to amplify the food need during certain hours, but I think it should be okay. Just a heads up though.
     
  3. Offline

    wristdirect

    niamheyface
    Just an update to give you an idea of what I'm doing with the plugin:

    You can set as many meal times as you want. They can overlap however you want, as long as a meal time is currently active, the hunger effects will take place. The beginnings and ends of all the meal times can be set in the config.yml file.

    Also in the config.yml file are the following options:

    mealtimeFoodDecrease: Amount of food levels to decrease at beginning of each mealtime.
    default: 2
    foodDecreaseFactor: Any normal food level decreasing effects will decrease food level by the normal amount times this factor (rounded up to nearest food level).
    default: 2

    Sound good to you? I was trying to make as general as possible :)
     
  4. Offline

    niamheyface

    LOVE IT!!! Thank you so so much!!

    I will be setting up a paypal in a few weeks, so I could always make a donation to you for all your hard work :)
     
  5. Offline

    wristdirect

    No problem :) And no worries on the donation, it's just good to know when people are enjoying a plugin you made :)

    niamheyface So a quick update here. Apparently the world time stuff got a little messed up in 1.4.2. From what I've gathered, it should be fixed in 1.4.4, though all of my development is for 1.4.2, as I generally stick with beta builds. I guess I can try it in 1.4.4, it's just a little bit of effort to try. Other than the specific times at which everything takes place (which again should be fixed in the newest Bukkit), everything seems to be working just fine :)

    I'll keep you updated

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

    niamheyface

     
  7. Offline

    MinopolisMc

    I would love this plugin too :)
     

Share This Page