Перейти к содержимому
Mineforgian

EditableEdibles

A simple modpack utility for adding custom effects to food items.

Загрузки
3K
Подписчики
1
Обновлён
24 июля 2025 г.
Лицензия
All-Rights-Reserved

Опубликован 28 июня 2024 г.

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:

Discord Patreon Ko-Fi

Need a server? Click the banner below and use code "fonny" for 25% off your first month with Bisect Hosting: Bisect Banner

Ченджлог

1.3.3Релиз1.12.2 · 24 июля 2025 г.

1.3.3:
Added weighted option for effect application

1.3.0Релиз1.12.2 · 6 июля 2024 г.

1.3.0:
Added optional compatibility for FoodExpansion
Added fix for FoodExpansion Nether Wart Stew crashing on servers (Moved from RLMixins)
Added fix for FoodExpansion soups deleting stack with increased stack size (Moved from RLMixins)

1.2.0Релиз1.12.2 · 2 июля 2024 г.

1.2.0:
Fix possible crash
Fix handling of instant potion effects
Add compatibility for Misty World intoxication and pollution

1.1.0Релиз1.12.2 · 30 июня 2024 г.

Add acceptableRemoteVersion
Add ability to list food items and potion effects they should cure
Add ability to list food items and potion types (all/positive/negative) they should cure
Add ability to list food items that should always be edible
Add ability to override all food items to make them always edible
Add examples to config tooltips
Bump version

1.0.0Релиз1.12.2 · 28 июня 2024 г.

Initial upload, features as described in description.

Комментарии

Загружаем…