Food Spoilage v1.9

An open source plugin that makes food go bad. Spoilage times & text are both customizable.

  1. DanTheTechMan
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    DanTheTechMan, Undead_Zeratul
    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.

    Changes in Food Spoilage v1.9
    • This plugin now uses a config.yml instead of .txt files for configuration.
    • Config.yml now gets created if there isn't one.
    • If save files from pre v1.9 are discovered, they will be loaded in and then saved in the new format. This means values you've changed before should transfer over.
    • If there is a version mismatch, the config.yml will be saved as config.yml.old and a new config.yml with default values will be created.

    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
    starnos likes this.

Recent Updates

  1. Config.yml
  2. Null Error Fix + Burnt Animal Drops
  3. Campfires

Recent Reviews

  1. Gustavo_Player
    Version: v1.9
    Good plugin. =)
    1. DanTheTechMan
      Author's Response
      Thanks for the review, Gustavo! I'm glad you like the plugin!
  2. 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.
  3. 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.
  4. 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!
  5. 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
  6. 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'll make a note to look into supporting 1.12. This isn't really the best way to ask me, though.
  7. Bossbirdyman51
    Version: v1.3
    It's was a very good idea but it's dosn't work in 1.16.1 for me ^^ Can you update ?
    1. DanTheTechMan
      Author's Response
      Hey Bossbirdyman,

      Sorry about that! I updated this plugin late last night before I went to bed and completely missed the fact that I had forgotten to load the Beetroot_Soup value from the food-spoilage-times.txt file.

      It should be working now, but please let me know if it doesn't for whatever reason.

      - Daniel
  8. Re4er
    Version: v1.2
    I've been looking for a plugin of this type for a long time. Thanks for the plugin. keep updating this!
    1. DanTheTechMan
      Author's Response
      Glad to hear! Will do, thanks for the review!
  9. starnos
    Version: v0.9
    A very brilliant idea, I am happy to be able to integrate it on my server. So the collecting of boxes of food finally stops because it becomes pointless for players. So only farm what you really use. I look forward to further updates. Keep it up
    1. DanTheTechMan
      Author's Response
      I'm glad you like it! Yeah I'm hoping this will help the food economy on my server. Thanks for the review!