Crafttweaker support - mcenderdragon/Futurepack-API GitHub Wiki

Futurepack natively supports CraftTweaker in Futurepack 24.2.218 and above. Click to expand the documentation for each device. Readded in 1.17 31.1.x


Assembly Table

mods.futurepack.assembly.add("id", <output>, [<input>]) @param id (String) – a unique name for this recipe. since 26.3.131
@param output (ItemStack) – Main item returned.
@param input (ItemStack array) – List of items used in recipe.
mods.futurepack.assembly.remove(<input>) @param output (ItemStack) – Primary input of recipe being removed. Will remove all recipes with this input.

Crusher

mods.futurepack.crushing.add(<output>, <input>) @param output (ItemStack) – Main item returned.
@param input (ItemStack) – List of items used in recipe.
mods.futurepack.crushing.remove(<input>) @param output (ItemStack) – Primary input of recipe being removed. Will remove all recipes with this input.

Industrial Furnace

mods.futurepack.industrial.add("id", <output>, [<input>]) @param id (String) – a unique name for this recipe. since 26.3.131
@param output (ItemStack) – Main item returned.
@param input (ItemStack array) – List of items used in recipe.
mods.futurepack.industrial.remove([<input>]) @param output (ItemStack array) – Primary input of recipe being removed. Will remove all recipes with this input.

Industrial Neon Furnace

mods.futurepack.neonindustrial.add("id", <output>, [<input>], <support>) @param id (String) – a unique name for this recipe. since 26.3.131
@param output (ItemStack) – Main item returned.
@param input (ItemStack array) – List of items used in recipe.
@param support (Integer) – Amount of supportused in recipe.
mods.futurepack.neonindustrial.remove([<input>]) @param output (ItemStack array) – Primary input of recipe being removed. Will remove all recipes with this input.

Centrifuge

mods.futurepack.zentrifuge.add([<output>], <input>, <support>) @param output (ItemStack array) – Main item returned.
@param input (ItemStack) – List of items used in recipe.
@param support (Integer) – Amount of support used in recipe.
mods.futurepack.zentrifuge.remove(<input>) @param output (ItemStack) – Primary input of recipe being removed. Will remove all recipes with this input.

Researches (24.2.145 and above)
for Researches (31.1.x and above) see CT/Research

mods.futurepack.research.addResearchFile(<file>) @param file (String) – A path to a json file containig an array from JsonObjects.

Example Json (if not required then optional):

{
	"id":"util",								#required- the internal name
	"x":-1,									#required- x position in gui
	"y":0,									#required- y position in gui
	"parents":["techtabel",...],						#the parent of this research, can start wich "achievement." to add achievement as condition
	"icon":{"name":"fp:spaceship", "meta":"<spaceship.IronStick>"},		#required- an itemstack displayed as icon
	"page": "base",								#the research page this research is on (base,story, chips, deco, logistic, energy, production, space, tools)
	"enables":[{"name":"fp:spaceship", "meta":"<spaceship.IronStick>"},...],# item stacks that will craftable/useable after this is obtained by a player
	"need":[],								# the itemstacks needed inside the researcher
	"level": 3,								# a number representing the tier lvl of this, only used for the color of the research-blueprint-item
	"time": 8000,		
	"neon": 80000,
	"support": 256,
	"expLvl": 150,
	"visibilityLevel": 0							# 0=always visible, 1=visible if researchable, 2=visible if researched
}
Adding description text to a research Futurepack searches for .json files under ./mods/futurepack/lang/[language]/[research].json. A example can be located at ./mods/futurepack/lang/en_US/basics.json. For formating help take a look in Futurepack’s Language Repository for more infromation.

⚠️ **GitHub.com Fallback** ⚠️