Skip to content
tterrag edited this page Oct 7, 2016 · 7 revisions

When you first launch the game, your customItems.json file will look like this:

{"data":
    [
            
    ]
}

Custom Items can be used to create simple items for crafting recipes and other simple purposes. They only have a few fields, but even so they are quite versatile.

Note that these fields extend to all the other item types, like records, armor, and tools.

Here are the fields for custom items:

Field Name Type Description Default
container String Used to define an ItemStack (using standard notation for ItemStack) that will be left in the crafting table / other inventories when this item is "used up." It can be defined as "this" to simply leave itself. null (no container item)
oreDictNames String Array A list of ore dictionary names to give to the item. This is in addition to the default name, which is item[name]. null (no extra names)
maxStackSize Integer The max stack size this item can have. 64
burnTime Integer The amount of ticks this item will fuel a furnace for. 0 (not a fuel)
rarity String The "rarity" of the item, which controls the color of the name in the tooltip. Must be one of: common, uncommon, rare, epic. Mods can add their own rarity types, these can be used. "common"
enchanted Boolean If true, the item will have the enchanted glow, whether it's actually enchanted or not. false

Example:

{"data":
    [
            {
				"name": "customfuel",			
				"oreDictNames": ["coal"],
				"maxStackSize": "64",
				"burnTime": "320"
			}
    ]
}