Pack Making JSON Crafting Definition - DonBruce64/MinecraftTransportSimulator GitHub Wiki
Crafting definitions are common JSONs used on anything that can craft items. This can be a part on a vehicle, or block in the world. In either case, they use the same code and have the same parameters:
- itemTypes – A list of item types this component can craft. This is the first layer of filtering, and restricts the items displayed to only crafting items that have the same type. Valid types correspond to JSON definition types, those being the types that you make sub-folders for in your pack.
- partTypes – An optional list of part types this component can craft. Only used to filter “part” itemTypes. For example, adding “engine” would allow the component to craft all engines, but adding “engine_car” and “engine_boat” would prevent it from crafting aircraft engines.
- items – A list of items this component may craft. This overrides all other filters, and may be used to specify exactly what this component may craft. The format for this is [packID:systemName], where systemName is the name of the item with the subName appended.