Done with crafting table recipes. New items don't have them yet.

This commit is contained in:
drcrazy 2019-07-23 17:04:55 +03:00
parent 4ec41d0bdc
commit eb6a8b9ceb
44 changed files with 588 additions and 57 deletions

View file

@ -68,7 +68,6 @@ public class ModRecipes {
/*
CraftingTableRecipes.init();
SmeltingRecipes.init();
ExtractorRecipes.init();
RollingMachineRecipes.init();

View file

@ -1,56 +0,0 @@
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2018 TechReborn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package techreborn.init.recipes;
import techreborn.TechReborn;
/**
* Created by Prospector
*/
public class CraftingTableRecipes extends RecipeMethods {
// TODO 1.13 :D
public static void init() {
registerCompressionRecipes();
TechReborn.LOGGER.info("Crafting Table Recipes Added");
}
static void registerCompressionRecipes() {
// TODO: fix recipe
// for (String nuggets : ItemNuggets.types) {
// if (nuggets.equalsIgnoreCase("diamond"))
// continue;
// registerShapeless(getMaterial(nuggets, 9, Type.NUGGET), CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "ingot_" + nuggets));
// registerShaped(getMaterial(nuggets, Type.INGOT), "NNN", "NNN", "NNN", 'N', CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "nugget_" + nuggets));
// }
//
// registerShapeless(getMaterial("diamond", 9, Type.NUGGET), "gemDiamond");
// registerShaped(getStack(Items.DIAMOND), "NNN", "NNN", "NNN", 'N', "nuggetDiamond");
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:diamond_nugget"
}
},
"result": {
"item": "minecraft:diamond"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:aluminum_nugget"
}
},
"result": {
"item": "techreborn:aluminum_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:brass_nugget"
}
},
"result": {
"item": "techreborn:brass_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:bronze_nugget"
}
},
"result": {
"item": "techreborn:bronze_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:chrome_nugget"
}
},
"result": {
"item": "techreborn:chrome_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:copper_nugget"
}
},
"result": {
"item": "techreborn:copper_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:electrum_nugget"
}
},
"result": {
"item": "techreborn:electrum_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:hot_tungstensteel_nugget"
}
},
"result": {
"item": "techreborn:hot_tungstensteel_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:invar_nugget"
}
},
"result": {
"item": "techreborn:invar_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:iridium_nugget"
}
},
"result": {
"item": "techreborn:iridium_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:lead_nugget"
}
},
"result": {
"item": "techreborn:lead_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:nickel_nugget"
}
},
"result": {
"item": "techreborn:nickel_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:platinum_nugget"
}
},
"result": {
"item": "techreborn:platinum_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:refined_iron_nugget"
}
},
"result": {
"item": "techreborn:refined_iron_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:silver_nugget"
}
},
"result": {
"item": "techreborn:silver_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:steel_nugget"
}
},
"result": {
"item": "techreborn:steel_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:tin_nugget"
}
},
"result": {
"item": "techreborn:tin_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:titanium_nugget"
}
},
"result": {
"item": "techreborn:titanium_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:tungsten_nugget"
}
},
"result": {
"item": "techreborn:tungsten_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:tungstensteel_nugget"
}
},
"result": {
"item": "techreborn:tungstensteel_ingot"
}
}

View file

@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NNN",
"NNN",
"NNN"
],
"key": {
"N": {
"item": "techreborn:zinc_nugget"
}
},
"result": {
"item": "techreborn:zinc_ingot"
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:aluminum_ingot"
}
],
"result": {
"item": "techreborn:aluminum_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:brass_ingot"
}
],
"result": {
"item": "techreborn:brass_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:bronze_ingot"
}
],
"result": {
"item": "techreborn:bronze_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:chrome_ingot"
}
],
"result": {
"item": "techreborn:chrome_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:copper_ingot"
}
],
"result": {
"item": "techreborn:copper_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:diamond"
}
],
"result": {
"item": "techreborn:diamond_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:electrum_ingot"
}
],
"result": {
"item": "techreborn:electrum_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:hot_tungstensteel_ingot"
}
],
"result": {
"item": "techreborn:hot_tungstensteel_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:invar_ingot"
}
],
"result": {
"item": "techreborn:invar_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:iridium_ingot"
}
],
"result": {
"item": "techreborn:iridium_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:lead_ingot"
}
],
"result": {
"item": "techreborn:lead_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:nickel_ingot"
}
],
"result": {
"item": "techreborn:nickel_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:platinum_ingot"
}
],
"result": {
"item": "techreborn:platinum_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:refined_iron_ingot"
}
],
"result": {
"item": "techreborn:refined_iron_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:silver_ingot"
}
],
"result": {
"item": "techreborn:silver_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:steel_ingot"
}
],
"result": {
"item": "techreborn:steel_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:tin_ingot"
}
],
"result": {
"item": "techreborn:tin_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:titanium_ingot"
}
],
"result": {
"item": "techreborn:titanium_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:tungsten_ingot"
}
],
"result": {
"item": "techreborn:tungsten_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:tungstensteel_ingot"
}
],
"result": {
"item": "techreborn:tungstensteel_nugget",
"count": 9
}
}

View file

@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "techreborn:zinc_ingot"
}
],
"result": {
"item": "techreborn:zinc_nugget",
"count": 9
}
}