[MECH] Hungry v0.3.1 - Yet another hunger plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by tr4656, Jun 14, 2011.

  1. Offline

    tr4656

    [​IMG]

    Hungry
    Authors: jonathanyc and tr4656
    Version: v0.3.1

    Hungry adds immersion to Minecraft! There is a reason to actually eat food in order to survive making it more realistic - so gather your food and actually eat so you won’t go hungry.

    Highlights:
    • There is actually a need to eat food (like real life)
    • Custom Language support
    Resources:
    Download Plugin
    Contribute at Bitbucket!
    Github Mirror

    Instructions, Permissions and FAQ:
    Our wiki is hosted at Bitbucket, and is available here.
    Quick Links
    To-do list and Known Bugs:
    See our Bitbucket issues page.

    Changelog:
    v0.3.1
    • Fixed eating events not registering when right-clicking on air.
    Credits:
    • Thanks to Fullwall, for his Gastronomic plugin (off which many parts of this plugin were based!)
    • Thanks to chernobyl360, for maintaining Gastronomic after Fullwall stopped (until he got hacked)
     
  2. Offline

    T4L_Goose

    This is excellent. Great idea.
     
  3. Offline

    Phantomslinky

    The plugin looks fantastic, exactly what I was looking for actually. I've been unable to try it out yet as it seems to be disabled out of the box. I've double checked that the config file has 'isEnabled' set to true.

    I don't run a permissions plugin at all. I removed all of the other plugins aside from this with the same result.

    18:40:52 [INFO] Starting minecraft server version Beta 1.6.6
    18:40:52 [INFO] Loading properties
    18:40:52 [INFO] Starting Minecraft server on *:25565
    18:40:52 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-
    gb9d0b04-b860jnks (MC: 1.6.6)
    18:40:52 [INFO] Preparing level "world"
    18:40:52 [INFO] Preparing start region for level 0
    18:40:53 [INFO] Preparing start region for level 1
    18:40:53 [INFO] Preparing spawn area: 73%
    18:40:53 [INFO] [Hungry] Loading configuration...
    18:40:53 [INFO] [Hungry] Loading configuration file...
    18:40:53 [INFO] [Hungry] Succesfully loaded configuration file!
    18:40:53 [SEVERE] [Hungry] Failed to load Permissions plugin - aborting!
    18:40:53 [INFO] [Hungry] Attempting to write configuration file to disk...
    18:40:53 [INFO] [Hungry] Succesfully saved configuration to disk.
    18:40:53 [INFO] [Hungry] Hungry disabled!
    18:40:54 [INFO] Done (0.128s)! For help, type "help" or "?"

    Any help would be appreciated.
     
  4. Offline

    spunkiie

    Sure.

    Permissions 2.7.3
    Mine (nick: admin) is stalled.
    Config:
    Code:
    {
      "isEnabled": true,
      "checkInterval": 60,
      "incrementAmount": 1,
      "defaultHunger": 0,
      "maxHunger": 100,
      "minHunger": 0,
      "canStockUpInfinitely": false,
      "starvationDamage": 2,
      "starvationDoesActualDamage": false,
      "resetHungerAtRespawn": true,
      "playerHungers": {
        "Tiago1102": 0,
        "raultkr123456": 2,
        "Trusso7": 0,
        "yuri": 11,
        "PhoenixSI": 11,
        "Neturni": 0,
        "ElSpagnol": 0,
        "Mokudo": 0,
        "Thg-Bk": 0,
        "thomas-toniolli": 0,
        "TDHMCBR": 1,
        "Betinhogamer": 0,
        "Bebuu": 0,
        "hitualit": 0,
        "Xicao": 0,
        "Trollok": 0,
        "br_lucas": 0,
        "lopor": 4,
        "Gaspar": 0,
        "Joinas": 6,
        "Galond": 0,
        "Midnyx": 0,
        "Ukakaru": 0,
        "xDKrock123": 0,
        "Pouter7665": 0,
        "leinad9999": 0,
        "Penharol147": 0,
        "sFx_Gamer": 0,
        "Danieeee": 0,
        "CreepyNick": 0,
        "soufooda": 0,
        "Candanguinho": 5,
        "EduardoXD": 0,
        "Furi8D": 6,
        "AlphaW01f": 0,
        "gabriel46": 0,
        "vinho89": 0,
        "shamanking": 0,
        "tucanopox": 0,
        "Duckzinn": 0,
        "migueltcosta": 0,
        "kratoSnip3r": 0,
        "eraldourculino": 0,
        "jizzinmypants": 17,
        "GAAABRIEEL": 0,
        "Deryhck": 0,
        "michel": 0,
        "MrMustaine": 0,
        "lipe_vasco": 0,
        "Mayer": 0,
        "TWSMITH": 0,
        "DaftPunk": 0,
        "45LPS": 0,
        "Cadu147": 0,
        "Brunoalex": 0,
        "Ganancia": 0,
        "Suigett": 15,
        "Milanor": 0,
        "SuperHeroi": 0,
        "yurylink": 0,
        "Revenant": 0,
        "jfil": 0,
        "finaldanx": 0,
        "Mau55card": 0,
        "Thenotk": 13,
        "FelipeLunardelli": 0,
        "Lucaasx": 0,
        "mestreBR": 0,
        "vegeta": 0,
        "teus300594": 0,
        "-vitor-": 0,
        "SRDiamante": 14,
        "Gabriielzito": 0,
        "Elisson": 0,
        "jakefolk": 0,
        "fazendeirodokrl": 100,
        "neverson": 0,
        "jt2000": 0,
        "MatheusP": 0,
        "rafaelnp_": 0,
        "FreddXL": 10,
        "Jisuis": 0,
        "andres": 0,
        "bruno12": 0,
        "marcosbalestreri": 0,
        "elfarelo": 0,
        "sagah": 0,
        "DarkWolf": 0,
        "roneifrota": 0,
        "Antimutacao": 0,
        "darksorcerer": 0,
        "mrsurvivor": 0,
        "MasterChieff": 0,
        "padias": 0,
        "Gordao": 8,
        "Galaxis": 53,
        "MrGrave": 6,
        "paulinho": 0,
        "TheMLOutbreak": 0,
        "LordFire": 0,
        "SrBigodes": 0,
        "LeLazer": 0,
        "DarkTheus": 0,
        "viniciusdeto": 0,
        "Yoroko": 0,
        "Anturiam": 0,
        "oriba234": 0,
        "Collosos": 0,
        "VaioMarco": 0,
        "Chuckdam-Bank": 100,
        "Akuw": 0,
        "Intruzo": 3,
        "ramon1504": 62,
        "lucasfera": 0,
        "GuG4b00": 0,
        "nhiel": 0,
        "Digdin": 0,
        "Yaggo": 29,
        "chuckdam": 0,
        "LeooziiiTo": 0,
        "Gabryel123": 0,
        "andrewpires": 24,
        "Kamaki": 0,
        "PcNinho": 0,
        "Fellippecelular": 0,
        "Phyro": 14,
        "juliofirmeza": 0,
        "Barbarab98": 0,
        "HardCode": 0,
        "Lukeeety": 0,
        "3ds": 0,
        "PikachuXXX": 0,
        "LolOLOLLOLOLO": 0,
        "Afronicius": 0,
        "Fernando77": 16,
        "paulosalum": 0,
        "SerialKiller": 0,
        "GioWork": 41,
        "gigioex": 0,
        "rafaelzinho555": 0,
        "DarkVelocity": 0,
        "manopomba": 0,
        "Lukin": 5,
        "leandro_xp": 0,
        "thirocha225": 0,
        "Windows": 0,
        "janela25": 0,
        "leusinho": 0,
        "Arkss": 0,
        "GuiCoelho": 0,
        "guilhermexwx": 0,
        "Durock04": 33,
        "lucasdantasf": 0,
        "Latios": 0,
        "Ronaldo18": 0,
        "Lukinhasol": 0,
        "fabianovaz2000": 0,
        "Sincretic": 0,
        "brunomac258": 0,
        "dante55": 0,
        "DarKeyrus": 5,
        "Luan": 3,
        "MorreDiabo": 2,
        "GoldGiomon": 0,
        "Solusxx": 0,
        "MuuZika": 0,
        "PvPXD": 0,
        "Marcos_Vale": 0,
        "TheLastGuardiaO": 13,
        "Saski": 5,
        "gbattaglin": 0,
        "rafaelsurvivor": 0,
        "Jofer": 8,
        "alison1268": 0,
        "Skyrior": 0,
        "Hmagnum": 0,
        "Nathan_Lm": 0,
        "virissimo": 0,
        "jack": 0,
        "PanBRA": 0,
        "TijOlOnAnUcA": 0,
        "GutBigBlunt": 0,
        "onciblu": 3,
        "MuriloMB": 0,
        "Maldra": 0,
        "RaFiX53": 7,
        "Gustavobertuci": 0,
        "_Mechanix": 0,
        "gian": 0,
        "Cruch": 0,
        "BloodyEyes": 0,
        "Killervolt": 2,
        "mprosso1": 0,
        "Billbala": 9,
        "Sandk1ng": 0,
        "MGHK2396": 9,
        "MaKaKaFa": 0,
        "ric": 0,
        "Furious": 0,
        "timaoeoooooo": 0,
        "MineBulacha": 0,
        "RodrigoM": 0,
        "wendel3l": 0,
        "FabioDoose": 0,
        "Paucos": 0,
        "HardCo0oreGamer": 0,
        "dpers": 3,
        "pooiiiiii": 0,
        "Hashta": 1,
        "danicampos": 0,
        "WolfWhite": 0,
        "Buzzcut": 0,
        "Andredes": 0,
        "fhaisgsai": 0,
        "iagosfalsim": 0,
        "Ah_Desisto": 1,
        "Adrianulima": 0,
        "CK_13": 0,
        "Hertz": 0,
        "HardToy": 9,
        "BoaRoO": 0,
        "chuqnoia": 0,
        "Mastern_TK": 0,
        "Mattelinow": 0,
        "FelipeFeitos": 4,
        "Wullius": 0,
        "Moreno": 1,
        "Notch": 1,
        "scooby97": 0,
        "JACK_SPARROW": 0,
        "Mario1": 0,
        "Focalenny": 0,
        "samy20112011": 0,
        "abdulah": 0,
        "LucasdeJesus": 0,
        "gOgOtoHeL22": 2,
        "blackbull": 0,
        "BalaDeMacaVerde": 0,
        "SugiroQueCorra": 0,
        "Boga": 0,
        "Testa": 0,
        "alison_negao": 0,
        "gabrivgomes": 0,
        "Edghardx": 0,
        "leo22voltou": 0,
        "Danger": 0,
        "PotatiL": 0,
        "chidoriy": 0,
        "baianox": 0,
        "Hantaro": 0,
        "Rayo": 23,
        "yurihenriq": 0,
        "Breakfloor": 0,
        "manodoido123": 0,
        "Dragonlord": 6,
        "stryk_00": 3,
        "admin": 38,
        "Dasmik": 2,
        "vismar": 0,
        "LeoBrustolin": 1,
        "PedroLight": 0,
        "Avast": 0,
        "Cadeirudo": 0,
        "jhon_jhonny": 12,
        "PauloO951": 0,
        "ramon15042": 21,
        "roadmpub": 0,
        "Yancolucas": 0,
        "cassior": 0,
        "Odax": 0,
        "Sigfried": 7,
        "Allok12": 0,
        "xXFUR10U5Xx": 0,
        "willian05": 0,
        "SkyDust": 11,
        "Guizerme": 0,
        "lucasveloz3": 0,
        "Salor": 0,
        "15678": 0,
        "felippe360": 0,
        "RuLeZ": 0,
        "Guh": 0,
        "fabiogabriel": 0,
        "nowitski": 0,
        "iHentai": 18,
        "Brayan": 0,
        "fezorzo": 0,
        "jack9315": 0,
        "Lord": 0,
        "Vilar20": 11,
        "zeldaaa": 0,
        "magnunn": 0,
        "Guimacedo": 0,
        "lulucas": 0,
        "phenon": 0,
        "_Martone": 6,
        "Guila23": 0,
        "skyter989": 0,
        "scailinedragon": 13,
        "brahmabr": 19,
        "gladson": 0,
        "devastionline": 0,
        "MaX_PrImE": 0,
        "gugabr45": 0,
        "Lucasdrpg": 0,
        "MarcoSalsicha": 0,
        "Satierf": 0,
        "Marmota": 19,
        "mixpawter": 0,
        "nobru": 0,
        "Tiagopinheiro": 0,
        "darkwolfmaktoum": 0,
        "blaburnamenabur": 0,
        "igorgames1": 0,
        "lipehennig": 0,
        "Shinji_Br": 0,
        "yoriii": 0,
        "otaviops": 2,
        "SkDroid": 0,
        "darklink": 0,
        "Kreuus": 0,
        "mistermago5": 0,
        "Thascar": 0,
        "Smooph": 0,
        "fefe": 0,
        "Simon": 0,
        "Revoltz": 1,
        "Ban2x": 0,
        "GodOfDead": 33,
        "Raphaelm9": 0,
        "igor10": 0,
        "leo268": 0,
        "JvBispo": 0,
        "theripelemon": 0,
        "ander": 0,
        "LecoDiehl": 12,
        "Dinhu": 0,
        "tunopox": 0,
        "Gralha": 0,
        "cardosu007": 17,
        "davias": 0,
        "iHadouken": 5,
        "Hidemara": 19,
        "lukaspop": 0,
        "Tauron": 0,
        "MatheusdeSouza": 0,
        "firewall4": 0,
        "Marcelox2x": 0,
        "xxMSDSxx": 0,
        "Acronus": 50,
        "Jeison": 0,
        "LeenaHawk": 0,
        "leoloco": 0,
        "Hugopz": 0,
        "Endi": 14,
        "pakulos": 0,
        "Hakesh": 0,
        "Jaspion": 0,
        "MisterSatan2": 0,
        "raven": 0,
        "ricardossp": 0,
        "bruninho43": 0,
        "igorcoa": 0,
        "AgressiveMode": 0,
        "Night": 10,
        "Mbispo": 0,
        "zenjutsu": 23,
        "breno": 0,
        "Bia12345": 0,
        "joseima": 0,
        "FC_Napa": 0,
        "Hisky": 0,
        "leo333file333": 0,
        "ianpassos": 0,
        "gambete": 0,
        "saK": 7,
        "CyberBread": 0,
        "Brunorbt": 6,
        "EleCtrOniC": 2,
        "netto6661": 15,
        "LucasFurtado": 0,
        "andrekas97": 0,
        "TxrWall": 0,
        "BrahmaBR": 92,
        "raffab1": 0,
        "Fazendeiro": 28,
        "BRULOX": 13,
        "GhostHawk": 0,
        "joaojacober": 0,
        "gumenniti": 0,
        "gu90": 0,
        "keenblock": 0,
        "Gutozin": 31,
        "GodGui": 0,
        "sasuke10466": 0,
        "freitum": 0,
        "Fofao": 0,
        "NanoH": 0,
        "Castron": 0,
        "Felipepecco": 0,
        "Mi5_R7": 0,
        "AmsterdaM": 1,
        "MaTusK": 0,
        "LeonardoTS": 0,
        "nickrune": 0,
        "Xandao": 0,
        "Brancol": 1,
        "maifel": 0,
        "blast": 0,
        "Megstar": 0,
        "Noturno": 0,
        "mxp1_": 0,
        "mateuss": 0,
        "MaiconPosser": 0,
        "Thalwin2": 0,
        "johnsinho0515": 0,
        "VitinXDzin": 0,
        "ninoks": 0,
        "Jheff": 0,
        "RafaelSOPA": 0,
        "RediBoo": 0,
        "xTomnyShotter": 0,
        "BACCANLOCO": 0,
        "peterg20": 0,
        "alboXblood": 0,
        "PsyTrailons": 0,
        "Dreeyer": 0,
        "gustavo_10": 11,
        "viniarnaldo": 0
      },
      "foods": {
        "APPLE": 100,
        "PORK": 20,
        "GOLDEN_APPLE": 100,
        "MUSHROOM_SOUP": 25,
        "GRILLED_PORK": 35,
        "COOKIE": 35,
        "BREAD": 25,
        "COOKED_FISH": 35,
        "RAW_FISH": 25
      },
      "foodBlocks": {
        "CAKE_BLOCK": 15
      },
      "ignoreClickBlocks": [
        "DISPENSER",
        "NOTE_BLOCK",
        "BED_BLOCK",
        "CHEST",
        "WORKBENCH",
        "FURNACE",
        "BURNING_FURNACE",
        "WOODEN_DOOR",
        "LEVER",
        "IRON_DOOR_BLOCK",
        "STONE_BUTTON",
        "JUKEBOX",
        "LOCKED_CHEST",
        "TRAP_DOOR"
      ],
      "messagePrefix": "§e[Fome] ",
      "messages": {
        "MSG_TOGGLED_ENABLED": "§aHungry is now enabled!",
        "MSG_RELOAD_SUCCESS": "§aHungry succesfully reloaded!",
        "ERR_ONLY_USABLE_INGAME": "§cThis command can only be used by in-game players.",
        "VAR_FOOD_INFO": "§f%s §a restores §f %s §a hunger.",
        "ERR_SAVECONFIG_FAILURE": "§cConfiguration failed to save!",
        "VAR_FOOD_LIST_ITEM": "§a%s§e : §a%s",
        "ERR_INVALID_HUNGER_FORMAT": "§cInvalid format for player hunger!",
        "VAR_SETHUNGER": "§aSuccesfully set§f %s\u0027s §ahunger to§f %s.",
        "MSG_SAVECONFIG_SUCCESS": "§aConfiguration succesfully saved!",
        "MSG_FOOD_LIST_END": "§a\u003d\u003d\u003d END EDIBLE FOODS \u003d\u003d\u003d",
        "ERR_RELOAD_FAILURE": "§cHungry failed to reloaded!",
        "MSG_TOGGLED_DISABLED": "§cHungry is now disabled!",
        "ERR_NO_SUCH_FOOD": "§cNo food with that name/id was found.",
        "MSG_FOOD_LIST_START": "§a\u003d\u003d\u003d EDIBLE FOODS \u003d\u003d\u003d",
        "VAR_CURRENT_HUNGER_IS": "§aSeu nivel de fome esta em §f%s"
      },
      "hungerLevelNotifications": {
        "100": "§cVoce esta morrendo de fome!",
        "80": "Voce esta tonto de fome.",
        "20": "Voce esta sentindo um pouco de fome.",
        "40": "Voce esta ficando faminto.",
        "60": "Seu estomago esta roncando de fome."
      },
      "hungerLevelNotificationsOnlyOnExact": false
    }
     
  5. Offline

    tr4656

    Hmm. I don't really know what be causing that. Can you try deleting hungry.jar and try redownloading it?
     
  6. Offline

    T4L_Goose

    Does it need permissions? if it needs permissions, and he doesn't have it, then that's probably why, right?
     
  7. Offline

    Dangirdas

    So when are you gonna add thirst and poisoning again?
     
  8. Offline

    jonathanyc

    I think that it is a lack of Permissions.
    If Hungry needs to support no-permissions, we can probably make it work like this:
    Everyone gets hungry, ops can use administrative commands.
    Would this work for you?

    They'll be encompassed by the Effects system in v0.3 - work is already in progress, it'll probably be released soon after we squash these bugs.

    Checking your config as I type, spunkiie. :)
     
  9. Offline

    Phantomslinky

    Sorry for my misunderstanding, I didn't realize a permissions plugin was required. Which permissions plugin would work the best with Hungry?
     
  10. Offline

    Nitnelave

    I know this started as a fork of gastronomics (unless I'm wrong^^) did you re-implement all of the functionalities?
     
  11. Offline

    flozza83

    Just posting it to give you so many thanks,
    this plugin is so attractive! And very well coded. Many options.
    Thanks you developpers!
     
  12. Offline

    jonathanyc

    In our test server we're using PermissionsEx, though in theory, any plugin compatible with the Permissions 2+ API would work - so you could you Permissions 3, or Permissions 2.7, or whatever number they're on now.

    It's not exactly a fork in that it's a complete rewrite. ;) Not all functionality is re-implemented yet.

    Thanks! :)
     
  13. Offline

    compgurusteve

    Anyway to make raw meat do damage instead of heal? And possibly mushrooms edible by themselves? Brown: heal. Red: damage. ;) Great plugin btw, was a fan of Gastronomics, too.
     
  14. Offline

    jonathanyc

    Apparently, my last post in reply got deleted.
    Anyways, I'll send you a potential fix later.

    That'll be possible in v0.3 with effects, too. (it seems to get bigger every day :) Thanks!
     
  15. Offline

    flozza83

    There is request for Todo list:
    - Put an new notification, when the player decrease his hunger level by eating a thing. Look like "This cooked_pork restaure your hunger from 25" Or anything else ^^
     
  16. Offline

    compgurusteve

    <3 x infinite
     
  17. Offline

    dvdbrander

    If you don't eat food, will you then lose hp? If so, could you make an option that doesn't decrease the hp but makes you slower?
     
    compgurusteve likes this.
  18. Offline

    MisanthropX

    please add a variable for starvation interval as I do not want to use the same as hunger interval

    And also: I want to set that I lose first 1 half heart, then a whole, then 2 and 3 and 4 etc..
    so if you starve, you lose more and more hearts at same time the more you starve :)

    starvedamages: '1,2,3,4,5,6'
    etc
    would be awesoem :)
     
  19. Offline

    quickclay

    Rather than just penalties for hunger, how about a small bonus for being 'well fed'? :) Like you can work faster, or take more damage? (Just about to download, so if this is already a feature, sorry!)

    Also, please make the commands all start with /hunger [command] as it gets difficult to keep track of all the different commands if they all have a different format. (or maybe /hunger help to list them)
     
  20. Offline

    Shay Williams

    Hey, could you recompile a version were the event priority is on "High"? Would really help me, cheers.
     
  21. Offline

    jonathanyc

    At your first point, this is a good idea - I will see if I can implement it. :)
    At the second idea, the reason the commands are currently how they are is because it is the most-supported method by Bukkit. (or so it appears to be) I'll add a help command, though.

    I'll try to make this configurable.

    Work on v0.3 is progressing, but slowly. Need to figure out how to fit all these features in. :p
     
  22. Offline

    Shay Williams

    Wanna be a super awesome person and change it to High, compile, and send me .jar? :D??
     
  23. Offline

    BioRage

    @tr4656
    @jonathanyc

    Is this replacing Gastronomic?

    If it is, is everything still in-tact *Poison effect/ etc?*

    Just want to know, since I'm sure after this RB the older one I use will break.

    Thanks.
     
  24. Offline

    tr4656

    We want this to replace gastronomic.
    Poison effect isn't implemented yet atm.
     
  25. Offline

    dvdbrander

    missed?
     
  26. Offline

    jonathanyc

    Of course not. :p Working on this in v0.3
     
  27. Offline

    dvdbrander

  28. Offline

    MisanthropX

    please... let annotate these hungry messages just once! D: not every hungerlevel

    oh, there is a function like this, thanks!

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

    fenixkane

    Can this mod work without needing to set up permissions?
    If not, Why?
     
  30. Offline

    jonathanyc

    No, not at it's current version. Permissions allows us (the developers) to easily allow the user (you) to choose who to give specific commands and effects. It's possible to make this work without Permissions, and we will probably code in a non-Permissions fallback in v0.3.2+, but it'd be more clunky (moving more permissions to configuration files, etc.)
     
  31. Offline

    T4L_Goose

    The command that sets a players hunger doesn't work.
     

Share This Page