Crafting Recipes
Less than 1 minute
Crafting Recipes
This document only explains how to add new gun recipes in the gun crafting table.
View item tags provided by Forge: FORGE TAGS View item tags provided by Minecraft: MINECRAFT TAGS
Creating Crafting Recipes
- Creating Gun Crafting Recipes
In the namespace of your gun pack, create the folder: /recipes/gun
Create a JSON file with the same name as the gun ID, such as ak47.json. Add the following content:
{
// Materials
"materials": [
{
"item": {
// Material type
"tag": "forge:gems/diamond"
},
"count": 10
},
{
"item": {
// Material type
"tag": "minecraft:logs"
},
"count": 8
},
{
"item": {
// Specific item
"item": "minecraft:obsidian"
},
"count": 12
}
],
// Result
"result": {
// Type, the type for guns is fixed as gun
"type": "gun",
// The ID of the output gun
"id": "tacz:ak47"
}
}
- Creating Attachment Crafting Recipes
In the namespace of your gun pack, create the folder: /recipes/attachment
Create a JSON file with the same name as the attachment ID, such as sight_sro_dot.json. Add the following content:
{
// Materials
"materials": [
// ...
],
// Result
"result": {
// Type, the type for attachments is fixed as attachment
"type": "attachment",
// The ID of the output attachment
"id": "tacz:sight_sro_dot"
}
}
- Creating Ammo Crafting Recipes
In the namespace of your gun pack, create the folder: /recipes/ammo
Create a JSON file with the same name as the ammo ID, such as 9mm.json. Add the following content:
{
"materials": [
// ...
],
"result": {
// Type, the type for ammo is fixed as ammo
"type": "ammo",
// The ID of the output ammo
"id": "tacz:9mm"
}
}