Food Spoilage 2.1.1

Makes food go bad.

  1. DanTheTechMan
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.16
    • 1.17
    • 1.18
    Source Code:
    DanTheTechMan, Undead_Zeratul, Caibinus, Callum, alyphen
    I created this open source plugin for a roleplay server I created called Kingdom: Dark Ages. Please contact me if you want to assist with developing one of my plugins, find a bug or have an idea to make the plugin better.


    Q: How do I change how long it takes for food items to spoil?

    A: Edit the './plugins/Food-Spoilage/food-spoilage-times.txt' file and then type '/fs reload' on your server.

    Q: Is there a way to configure minutes and seconds?
    A: You can only configure spoilage times by hours currently. If it was minutes or seconds, players would end up with a lot more stacks that they couldn't combine.

    Q: How do I disable spoilage for an item?
    A: Change the food spoilage value in './plugins/Food-Spoilage/food-spoilage-times.txt' file to 0 for the item you want to disable spoilage for and then type '/fs reload' on your server.

    Q: How do I change the text shown on items and with commands?
    A: Change the text strings in './plugins/Food-Spoilage/food-spoilage-text.txt' file and then type '/fs reload' on your server.

    Q: Why are my timestamps only showing hours?
    A: I decided to timestamp items by hour so that items made in the same hour would be stackable and you would have less stacks in the long run.

    Food Spoilage v1.8 accomplishes the following:
    • assigns timestamps to food items
    • assigns timestamps to crops & ingredients
    • when timestamp is reached, the next time a player tries to eat the food item it will become spoiled food.
    • disables shift-click crafting for crafted food items due to an issue with the timestamp subsystem
    • saves/loads food spoilage values from plugins/Food-Spoilage/food-spoilage-times.txt
    • allows players to reload the plugin with /fs reload
    • alerts the server owner in the console if there is a version mismatch and what to do in this case
    • displays plugin information if you type /fs with no arguments
    • if the food spoilage value of a food item in food-spoilage-times.txt is changed to 0, it will not be timestamped and it will not spoil
    • allows you to set custom text

    • fs.admin
    • fs.reload

    Future Plans:
    • create a /timeleft command so players know how much time they have until a food item expires
    • save/load food spoilage values alphabetically
    • use a config.yml rather than .txt files for configuration
    • include sweet berries
    • include honey bottle
    666 and starnos like this.

Recent Reviews

  1. Itz_Batata
    Version: v2.0
    Hi, so, I'm from Brazil and for ya it's like that:

    You: M/D/Y
    Me: D/M/Y

    I don't know if I explained it right, because my English is a bit bad, but if you know a way to help me, pls contact me on discord: Ferrari#6754

    I'll be waiting for your response :)
    Also, this is a really good plugin, plsss keep updating
  2. rayafe4721q4
    Version: v1.9
    hello i need this plugin which problems i can get when im using 1.12.2? great idea
    1. DanTheTechMan
      Author's Response
  3. Rudolffink
    Version: v1.9
    Adds a element of realism, being used on the roleplaying server Vardenfall. Great!
    1. DanTheTechMan
      Author's Response
      I'm glad to hear the plugin fit your server! Thanks for the review, Rudolf.
  4. AngelPaiba
    Version: v1.9
    The idea is very good but I should take advice and make the dates count down, for users it is much easier to know when their food expires, I hope you do not abandon this add-on and get a lot of help from other developers and collaborators economically as well. should add color compatibility
    1. DanTheTechMan
      Author's Response
      Hey AngelPaiba, thanks for the review. In order to make the dates count down, each food object would have to be kept track of unless I made it update the time upon moving the item or something. I do plan to add a /timeleft command which should help matters. I've been very busy recently but I do have plans for the plugin, so stay tuned!
  5. Gustavo_Player
    Version: v1.9
    Good plugin. =)
    1. DanTheTechMan
      Author's Response
      Thanks for the review, Gustavo! I'm glad you like the plugin!
  6. Vulcord
    Version: v1.9
    Love the plugin. Could you add in a way to edit the format/color of the dates on food? Thanks.
    1. DanTheTechMan
      Author's Response
      Thanks for the review, Vulcord! More configuration options are planned, I'll make sure that the format and color of dates is included, thank you for the suggestion.
  7. iCaitlyn
    Version: v1.8.1
    A great, modern, and up-to-date alternative for those who had been seeking something akin to RottenFoods.
    1. DanTheTechMan
      Author's Response
      Thanks for the review, iCaitlyn! I actually created this because RottenFoods wasn't updated, haha.
  8. Resur
    Version: v1.7.4
    I definitely need to leave a review as I see incredible support, 3 updates and more in such a fast way to fix and add content, it's crazy.
    1. DanTheTechMan
      Author's Response
      Thanks for the review, Resur! Hope you enjoy the plugin!
  9. MelaniumAS
    Version: v1.5
    1. DanTheTechMan
      Author's Response
      .JAR files are capable of changing the files on your computer which can be catastrophic if the programmer is malicious. Fortunately, I'm not! Haha
  10. DaaromRochdi
    Version: v1.5
    please make the plugin 1.12 because that is the best update for my plugins. If you make the plugin 1.12 you get 5 star ratings
    1. DanTheTechMan
      Author's Response
      I can look into supporting 1.12. If you can PM me some screenshots of errors you get when trying to run the plugin on 1.12 that would be great.