HomeJavaModsSpoiler Alert
Spoiler Alert
Version 1.0.0:


Version 1.1.2:


Spoiler Alert allows you to set custom shelf-life values for the various food items available in Minecraft. If any food item is eaten past the date is supposed to expire, then it becomes a less and less nutritious and potentially harmful (even fatal).

The configuration file comes with 3 recipes (Candy Apple, Salt and Salted Beef). You can create an infinite amount of your own recipes by adding entries to the configuration following the same format.

The rest of the configuration setting are mostly self-explanatory, but I have created a video to show off some of the features.

Here is the github page.

P.S. This requires Java 8. If you do not have it, please get it. If you cant, PM me and I may be willing to make a special release for you.

Code (Text):
debug: false
log.recipes.enable: false

spoileralert-set-expiration-on-inventory-click: true

spoileralert-base-debuf-duration-in-seconds: 30

spoileralert-blinding-enabled: true
spoileralert-confusion-enabled: true

spoileralert-harm-enabled: true
spoileralert-age-before-harm-as-proportion-of-shelf-life: 3

spoileralert-decrease-food-level-enabled: true
spoileralert-decrease-saturation-enabled: true

spoileralert-recipe-shelf-life:
  - candy-apple=21
  - salted-beef=21
  - salted-pork=21
  - salted-fish=21
  - salted-chicken=21
  - salted-mutton=21

spoileralert-shelf-life:
  - APPLE=7
  - BAKED_POTATO=5
  - BEETROOT=7
  - BEETROOT_SOUP=7
  - BREAD=14
  - BROWN_MUSHROOM=10
  - CAKE=14
  - CARROT=7
  - CARROT_ITEM=7
  - CHORUS_FRUIT=5
  - COOKED_BEEF=7
  - COOKED_CHICKEN=7
  - COOKED_FISH=7
  - COOKED_MUTTON=7
  - COOKED_RABBIT=7
  - COOKIE=14
  - CROPS=21
  - EGG=10
  - MILK_BUCKET=14
  - MELON=7
  - MELON_BLOCK=7
  - MUSHROOM_SOUP=5
  - MUTTON=2
  - PORK=2
  - POTATO=21
  - POTATO_ITEM=21
  - PUMPKIN=7
  - PUMPKIN_PIE=7
  - RABBIT_STEW=7
  - RAW_BEEF=2
  - RAW_CHICKEN=2
  - RAW_FISH=2
  - RED_MUSHROOM=10
  - SPECKLED_MELON=7
  - WHEAT=21




############## RECIPES ############
recipes:
  - candy-apple
  - coarse-salt
  - salted-beef


###############################################
#################### RECIPES ##################
###############################################


################## BEGIN Candy Apple ############
recipe.candy-apple.name: Candy Apple
recipe.candy-apple.rows:
  - RSR
  - SAS
  - RTR
recipe.candy-apple.mats:
  - S=SUGAR
  - A=APPLE
  - T=STICK
  - R-AIR
recipe.candy-apple.output: APPLE


################## BEGIN Coarse Salt #################
recipe.coarse-salt.name: Coarse Salt
recipe.coarse-salt.rows:
  - AWA
  - ACA
  - ASA
recipe.coarse-salt.mats:
  - W=WATER_BUCKET
  - C=COAL
  - S=SAND
recipe.coarse-salt.output: SUGAR
recipe.coarse-salt.amount: 4


################## BEGIN Salted Beef #################
recipe.salted-beef.name: Salted Beef
recipe.salted-beef.rows:
  - ASA
  - SBS
  - ASA
recipe.salted-beef.mats:
  - A=AIR
  - B=COOKED_BEEF
  - S=SUGAR
recipe.salted-beef.output: COOKED_BEEF
recipe.salted-beef.item.starts.with:
  - 1=Coarse Salt
  - 3=Coarse Salt
  - 5=Coarse Salt
  - 7=Coarse Salt

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Spoiler Alert is a free Minecraft Java mod. Compatible with Minecraft 1.10, 1.11, 1.12. Downloaded 3,719 times (via Spigot). Download it and open it directly in the game.

Explore more