Filled Food Expiry - For Roleplay/Realistic Servers

Discussion in 'Plugin Requests' started by Pikel, Nov 1, 2015.

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

    Pikel

    Food Expiry

    A plugin that gives all food products in Minecraft an expiry time, which when ended would leave the food spoiled and inedible. This is to combat the stockpiles of food users inevitably have stored in their homes and encourage the hospitality economy in towns and player interactions.

    Requirements

    - Ability to set expiry time of items in config

    - Expiry time continues to work in chest storage

    - When two of the same foods with different expiry times are stacked the new timer is the average?

    - Rotten food applies nausea and/or poison?

    -Food is not usable in recipe once it has expired
     
    Last edited: Nov 2, 2015
  2. Offline

    Scimiguy

    When would you start the expiry time?
    From when they're removed from Crafting benches/furnaces?

    What if they leave the food in the furnace for ages first?
    How would you visibly differentiate rotten food, given that most players won't see lore if it's in their hotbar?
     
  3. Offline

    Pikel

    I'd say yes when the food is spawned in by the crafting bench and the furnace. I don't know how the coding works but in my head doesn't the food appearing work the same as how it sits in a chest and so could spawn in the furnace with the expiry time. Though if it can't I guess it's not so much of a problem as then you'd have to keep an entire furnace to keep food from expiring and in a towny like gamemode like roleplay servers where space is usually limited it's a trade off between space and food.
    Preferably though once it spawns in the furnace it would have its expiry.

    With differentiating between food I would say just have it in the item description as that's where the expiry time would be, just change it to red wording that says rotten and growing fungus. It's not too hard to just check your inven when you log on. With the expiry times I'm thinking a couple of days until expiration.
     
  4. @Pikel I'm interested in making this for you. Iv'e gotten started on it and will be working on it. Just remember to check in, because I won't necessarily x)
     
  5. Offline

    Pikel

  6. Offline

    Pikel

    Last developer has gone dark for near a month, anyone else able to help?
     
  7. Offline

    Scimiguy

    Well maybe he only works in October lol
     
  8. Offline

    Pikel

    In that case I'd definitely like to find another person otherwise I'd be waiting 'til next year ^_^
     
  9. Offline

    Scimiguy

    If I wasn't so busy I'd do it myself, it's actually a good idea.

    Keep waiting man, someone should pick it up
     
  10. Offline

    20zinnm

    I'll pick it up. I found some really great methods to use.
     
  11. Offline

    Pikel

    Thanks it's actually very similar to a now inactive bukkit request from 2012, I tried getting in contact with the coder who attempted it but no luck. I also thought it wouldnt be too technical to pull off and have even started learning java in the hope of one day doing my own plugin designs. Im still a very long way off even attempting bukkit related stuff though only just gettibg my head around methods and hello world scripts.

    thats brilliant thank you :) I'd be interested in how you go about it
     
  12. Offline

    20zinnm

    I finished it. Will post it later. @Pikel
     
  13. Offline

    Pikel

    @20zinnm What a legend! I look forward to giving it a whirl
     
  14. I had "gone dark" because your request was confusing and complicated coding wise and needed a lot of work, and I couldn't exactly say how much longer I was going to stay patient with it. The plugin you requested turned out to need a lot of things for it to function properly. Unless I didn't make detection for everything, people could bypass it by, for example, cooking mobs and then putting the items into a chest via a hopper and never touching the chest until needed. All of this adds up to be about five times the size, time, and effort of plugins I normally make. I was fascinated with this idea, but struggled figuring out all of these little nitpicky loopholes that would ruin the plugin if it wasn't detected. Since I'm not being paid by this (I never expect payment, I'm just saying its not my job IRL) and it wasn't even for my server, I found that I didn't have the motivation to spend a month's work on it, especially with me being stuck in a hole with some parts of it.

    Now that exams are over and I have had my Thanksgiving break, I will try and look it over once again with a fresh set of eyes, seeing that 20zinnm hasn't uploaded his plugin. If I find some simple solutions logic-wise, then I can get this done shortly. I'm going to write this plugin out on paper logically, then code it.


    Edit: Made some progress logic-wise. Figured out time recording, data storage options (the way I'm doing it will have no stored data at all), date combination, and food creation methods along with a universal way to block all loopholes.
     
    Last edited: Dec 10, 2015
  15. Offline

    20zinnm

Thread Status:
Not open for further replies.

Share This Page