Download Custom Mealery — Minecraft Mods — MetaMods

Custom Mealery

Active

Downloads

0

Last update

11 years ago
Client
Fabric
Quilt
Forge
Neoforge
Food
Libraries
Utils
Addons

Custom Mealery

Create Your Own Food in Minecraft

This simple mod provides the ability to configure custom food items and meals through configuration files. Requires Forge to work.

Quick Start

After the first mod launch, a "template.json" file is automatically created in the "config/custommealery" folder, containing examples of all available food settings. Here's what a configuration example looks like:

{
    id: 590,
    nameid: "shinyBread",
    name: "Shiny Bread",
    texture: "minecraft:diamond",
    colorOverlay: {
        red: 150,
        green: 255,
        blue, 100,
    },
    eatTime: 12,
    healAmount: 2,
    saturationModifier: 0.3,

    isWolfsFavoriteMeat: false,
    rarity: "epic",
    hasEffect: true,

    isAlwaysEdible: true,
    maxStackSize: 1,
    damageValue: 8,

    potionEffects: 
    [
        {
            potionid: 1,
            probability: 1.0,
            duration: 3,
            amplifier: 2
        },

        {
            potionid: 2,
            probability: 1.0,
            duration: 5,
            amplifier: 2
        }
    ],

    craftingRecipe: {
        recipeResultAmount: 4,
        recipe:
        [
            "264,264,264",
            "264,3,264",
            "264,264,264"
        ]
    },

    furnaceRecipe: {
            recipeResultAmount: 4,
            inputid: 264,
            inputmeta: 1,
            experience: 4
    }
}

Flexible Configuration

Only the first three parameters (id, nameid, name) are mandatory, other options can be configured as desired. You can create your own food files in any folder structure inside "config/custommealery", as long as files have the ".json" extension.

To add icons, use PNG files with names matching the nameid, placed in the same folder as the JSON file. Textures from resource packs and animated icons via MCMETA files are also supported.

Example Folder Structure

For food with nameid 'shinyBread', the structure might look like this:

config/custommealery/breads/shinyBread.json
config/custommealery/breads/shinyBread.png
config/custommealery/breads/shinyBread.png.mcmeta

Files not ending with ".json" or starting with "" are ignored by the system.

Project members
kroeser

kroeser

Created: 16 Jun 2014

ID: 28566