Pack Making JSON General - DonBruce64/MinecraftTransportSimulator GitHub Wiki
The general
section is core and common to all pack content and appears in every JSON. It contains the following parameters:
- hideOnCreativeTab - Set to true to hide this item on creative tabs.
- name – The name of this content. Will be displayed in item form. Note that if the contnet is a type that has a set of definitions, then this name is ignored and the appropriate definition name is used instead.
- description – An optional description. Will be rendered as an item tooltip. Unlike the name parameter, descriptions on definitions are appended to this description, and do not overwrite it. The idea behind this is that some variants need extra text to tell why they are different from one another, but shouldn't require re-writing the main description.
- stackSize – The optional stack size for this item. Items with this set will stack to the size specified, up to the standard stack size of 64. This of course won't work if the item has NBT on it, such as used engines.
- health – How much health the entity that this item spawns has. When the damage reaches the health amount, the entity will execute its 'death' logic. What exactly this entails depends on what the entity is. Some entities do not have any logic for death, and items that don't spawn entities don't use this parameter at all. Leaving this out will make the entity have infinite health.
- materialLists – A set of lists of material lists that are required to create this component. Normally, items have just one list, but can have multiple for multiple ways to craft the item. This allows for incorperation of modded items, as well as different Minecraft versions. The format for each material entry in each list is
<GiveString:Metadata:Qty>
on 1.12.2, and<GiveString:Qty>
on higher versions. WhereGiveString
is the name of the item that's found in the/give
command,Metadata
is the metadata of the item, andQty
is the quantity needed. Should a component have no materials (and no extraMaterialLists, if it uses definitions) it will not be available for crafting in any benches. If you wish to use OreDict, simply replace theGiveString
with the OreDict name, and omit theMetadata
parameter if on 1.12.2. - repairMaterialLists – Like materialLists, but these materials, in combination with an existing instance of this item, can be used to craft a fresh copy.
- returnedMaterialLists - Like materialLists, but these materials are dropped after crafting. Think returning a bucket after needing a bucket of water.
- oreDict – An optional oreDict name for this item. This will make the item be part of the specified oreDict. You may use custom oreDict names if you want multiple items to be the same ingredient. (NOTE: Only valid for 1.12.2. Higher versions of Minecraft removed the OreDict system in favor of a JSON-based datapack method. Registration for these types cannot be done in code, so use the datapack JSON files instead).
- radarRange – How far, in blocks, this object will be able to detect things for radar instruments. Defaults to 0.
- radarWidth – How wide the radius of the radar search cone is, in degrees.