EditableEdibles is a simple modpack utility for adding custom effects to food items.
Vanilla food items are normally limited to a single effect when eaten without additional coding, and this is not generally modifiable without writing your own mod.
EditableEdibles allows you to define effects to be applied to the player when they eat the food, along with the duration, amplifier, and chance of that effect applying.
Instead of foods being limited to a single chance and effect, with EditableEdibles config system you can define multiple effect chance entries for a single food item, as well as apply the effects based on the item metadata for food items that are defined by metadata such as fish.
Additionally, you can define food items and if their default handling of effects, such as raw chicken, should be cancelled, for if you want to remove an effect or replace it with your custom effects, as well as the other options below.
Config options can be edited in-game through the Forge config menu, and will automatically update in-game.
Config Options (Formatting also defined in tooltip):
-
Food Effects and Chances: List of entries including the item, potion effect, and chance to be applied when eaten
Format: String itemId, Int metadata (-1 for any), String potionId, Int duration, Int amplifier, Boolean showParticles, Float chance
Example: minecraft:chicken, -1, minecraft:hunger, 120, 0, false, 0.25 -
Food Default Effect Override: List of entries including the item and if their default effect handling should be cancelled
Format: String itemId, Int metadata, Boolean shouldCancel
Example: minecraft:chicken, -1, true -
Food Cure Effects and Chances: List of entries including the item, potion effect, and chance to be cured when eaten
Format: String itemId, Int metadata (-1 for any), String potionId, Int maxDuration (-1 for any), Int maxAmplifier (-1 for any), Float chance
Example: minecraft:carrot, -1, minecraft:blindness, -1, -1, 1.0 -
Food Cure Types and Chances: List of entries including the item, types of potions, and chance to be cured when eaten
Format: String itemId, Int metadata (-1 for any), CureType cureType (ALL, POSITIVE, NEGATIVE), Float chance
Example: minecraft:poisonous_potato, -1, POSITIVE, 0.25 -
Always Edible Food Items: List of food items that should always be edible
Format: String itemId, Int metadata (-1 for any)
Example: minecraft:apple, -1 -
Override Always Edible: Allows for setting all food items to always be edible
Mod Compat:
-
MistyWorld Food Intoxication and Chances: List of entries including the item and chance to add defined value to Intoxication
Intoxication values are between 0 and 10000, added values can be negative
Format: String itemId, Int metadata (-1 for any), Int intoxicationAddValue, Float chance
Example: minecraft:poisonous_potato, -1, -2000, 0.75 -
MistyWorld Food Pollution and Chances: List of entries including the item and chance to add defined value to pollution
Pollution values are between 0 and 10000, added values can be negative
Format: String itemId, Int metadata (-1 for any), Int pollutionAddValue, Float chance
Example: minecraft:apple, -1, 1000, 0.5
Feel free to request additional food-related config options on the Github issue tracker linked at the top of the page.
Logo created by rainyafternoon
Need to get in contact with me, or want to support me? Click the badges below:
Need a server? Click the banner below and use code "fonny" for 25% off your first month with Bisect Hosting:
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+