-
Notifications
You must be signed in to change notification settings - Fork 14
JEI
Type names: jei:machineRecipe, jei:craftingRecipe
These two add support for a machine or crafting recipe list to JEI.
{
"recipeList": "cs4examplemod:machine",
"gui": "cs4examplemod:machine",
"tileEntity": "cs4examplemod:machine",
"bgX": 37,
"bgY": 16,
"bgWidth": 126,
"bgHeight": 54,
"icon": "cs4examplemod:machine",
"title": "Machine Recipes",
"recipeAreaX": 80,
"recipeAreaY": 35,
"recipeAreaWidth": 22,
"recipeAreaHeight": 15,
"transferButtonX": 119,
"transferButtonY": 57
}
-
recipeList: This is a ResourceLocation defining what list of recipes is being used.
-
gui: This is a ResourceLocation defining the gui of the machine or crafting table.
-
tileEntity: This is a ResourceLocation defining the tile entity of the machine or crafting table.
-
bgX, bgY, bgWidth, bgHeight: These define what part of the background texture from the gui is shown in the JEI gui. The area should at least contain all the important slots for the recipe.
-
icon: This is a ItemStack that defines what item is used as the icon.
-
title: The title that is being used in the JEI gui.
-
recipeAreaX, recipeAreaY, recipeAreaWidth, recipeAreaHeight: These define where in the gui you can click to open the JEI gui that shows the recipes.
-
transferButtonX, transferButtonY: If the default position of the transfer button doesn't fit, use these to position the button. The values are relative to the machine/crafting gui background.
Type name: jei:description
This will create a description page in the JEI gui.
{
"items": ["cs4examplemod:crafter"],
"desc": ["cs4examplemod.crafter.jei.desc"]
}
-
items: This is a list of ItemStack defining what items to add the description to.
-
desc: This is a list of description keys where each entry will be on a new line. You can use \n inside an entry to create a new line.