diff --git a/1.11/src/main/java/nmd/primal/forgecraft/ModInfo.java b/1.11/src/main/java/nmd/primal/forgecraft/ModInfo.java index c482161d..ebbe2c97 100644 --- a/1.11/src/main/java/nmd/primal/forgecraft/ModInfo.java +++ b/1.11/src/main/java/nmd/primal/forgecraft/ModInfo.java @@ -5,6 +5,7 @@ import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import nmd.primal.forgecraft.init.ModBlocks; +import nmd.primal.forgecraft.init.ModItems; //import nmd.primal.forgecraft.Item.ModItems; /** @@ -79,7 +80,7 @@ public class ModInfo { @Override @SideOnly(Side.CLIENT) public ItemStack getTabIconItem() { - return new ItemStack(ModBlocks.firebox); + return new ItemStack(ModItems.forgehammer); } }; diff --git a/1.11/src/main/java/nmd/primal/forgecraft/init/ModCrafting.java b/1.11/src/main/java/nmd/primal/forgecraft/init/ModCrafting.java index 3c1f8f2e..533bb6ad 100644 --- a/1.11/src/main/java/nmd/primal/forgecraft/init/ModCrafting.java +++ b/1.11/src/main/java/nmd/primal/forgecraft/init/ModCrafting.java @@ -154,7 +154,16 @@ public class ModCrafting { // ANVILING // ***************************************************************************** // - + //Makes a ForgeHammer + AnvilCrafting.addRecipe( + new Integer[] { + 1,1,1,1,0, + 0,0,1,0,0, + 0,0,1,0,0, + 0,0,1,0,0, + 0,0,1,0,0 }, + new ItemStack(ModItems.forgehammer, 1) + ); //Makes a Pickaxe Head AnvilCrafting.addRecipe( diff --git a/1.11/src/main/java/nmd/primal/forgecraft/init/ModItems.java b/1.11/src/main/java/nmd/primal/forgecraft/init/ModItems.java index 8b99b728..f26bd493 100644 --- a/1.11/src/main/java/nmd/primal/forgecraft/init/ModItems.java +++ b/1.11/src/main/java/nmd/primal/forgecraft/init/ModItems.java @@ -31,7 +31,7 @@ import nmd.primal.forgecraft.items.blocks.ItemBlockIngotBall; public class ModItems { public static Item pistonbellows; - public static Item heavytoolhandle; + public static Item forgehammer = new ForgeHammer("forgehammer"); public static Item softcrucible; public static Item stonetongs; //public static Item ironingotballcool; @@ -84,7 +84,7 @@ public class ModItems { GameRegistry.register(pistonbellows); GameRegistry.register(softcrucible); GameRegistry.register(stonetongs); - //GameRegistry.register(ironingotballcool); + GameRegistry.register(forgehammer); GameRegistry.register(ironingotballhot); GameRegistry.register(ironchunkhot); //GameRegistry.register(forgingmanual); @@ -94,7 +94,7 @@ public class ModItems { public static void registerRenders() { registerRender(pistonbellows); registerRender(softcrucible); - //registerRender(ironingotballcool); + registerRender(forgehammer); registerRender(ironingotballhot); registerRender(ironchunkhot); //registerRender(forgingmanual); diff --git a/1.11/src/main/java/nmd/primal/forgecraft/items/ForgeHammer.java b/1.11/src/main/java/nmd/primal/forgecraft/items/ForgeHammer.java new file mode 100644 index 00000000..fe2c31e1 --- /dev/null +++ b/1.11/src/main/java/nmd/primal/forgecraft/items/ForgeHammer.java @@ -0,0 +1,20 @@ +package nmd.primal.forgecraft.items; + +import net.minecraft.item.Item; +import nmd.primal.forgecraft.ModInfo; + +/** + * Created by mminaie on 3/7/17. + */ +public class ForgeHammer extends Item { + + public ForgeHammer(String unlocalizedName) { + setUnlocalizedName(unlocalizedName); + this.setRegistryName(unlocalizedName); + //this.setMaxDamage(1000); + //this.setHasSubtypes(true); //This just says the item has metadata + this.setMaxStackSize(1); + this.setCreativeTab(ModInfo.TAB_FORGECRAFT); + } + +} diff --git a/1.11/src/main/resources/assets/forgecraft/models/item/forgehammer.json b/1.11/src/main/resources/assets/forgecraft/models/item/forgehammer.json new file mode 100644 index 00000000..7c8b1930 --- /dev/null +++ b/1.11/src/main/resources/assets/forgecraft/models/item/forgehammer.json @@ -0,0 +1,105 @@ +{ + "__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio", + "textures": { + "particle": "forgecraft:blocks/iron_ingot", + "texture": "forgecraft:blocks/anvil_base" + }, + "elements": [ + { + "__comment": "Cube1", + "from": [ 7, 0, 7 ], + "to": [ 9, 15.5, 9 ], + "faces": { + "down": { "uv": [ 7, 7, 9, 9 ], "texture": "#texture" }, + "up": { "uv": [ 7, 7, 9, 9 ], "texture": "#texture" }, + "north": { "uv": [ 7, 0.5, 9, 16 ], "texture": "#texture" }, + "south": { "uv": [ 7, 0.5, 9, 16 ], "texture": "#texture" }, + "west": { "uv": [ 7, 0.5, 9, 16 ], "texture": "#texture" }, + "east": { "uv": [ 7, 0.5, 9, 16 ], "texture": "#texture" } + } + }, + { + "__comment": "Cube2", + "from": [ 7, 13.5, 9 ], + "to": [ 9, 15.5, 10.5 ], + "faces": { + "down": { "uv": [ 7, 5.5, 9, 7 ], "texture": "#texture" }, + "up": { "uv": [ 7, 9, 9, 10.5 ], "texture": "#texture" }, + "north": { "uv": [ 7, 0.5, 9, 2.5 ], "texture": "#texture" }, + "south": { "uv": [ 7, 0.5, 9, 2.5 ], "texture": "#texture" }, + "west": { "uv": [ 9, 0.5, 10.5, 2.5 ], "texture": "#texture" }, + "east": { "uv": [ 5.5, 0.5, 7, 2.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Cube3", + "from": [ 7, 13.5, 4.5 ], + "to": [ 9, 15.5, 7 ], + "faces": { + "down": { "uv": [ 7, 9, 9, 11.5 ], "texture": "#texture" }, + "up": { "uv": [ 7, 4.5, 9, 7 ], "texture": "#texture" }, + "north": { "uv": [ 7, 0.5, 9, 2.5 ], "texture": "#texture" }, + "south": { "uv": [ 7, 0.5, 9, 2.5 ], "texture": "#texture" }, + "west": { "uv": [ 4.5, 0.5, 7, 2.5 ], "texture": "#texture" }, + "east": { "uv": [ 9, 0.5, 11.5, 2.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Cube5", + "from": [ 6.5, 13.5, 6.5 ], + "to": [ 7, 15.5, 9.5 ], + "faces": { + "down": { "uv": [ 6.5, 6.5, 7, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 6.5, 7, 9.5 ], "texture": "#texture" }, + "north": { "uv": [ 9, 0.5, 9.5, 2.5 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 0.5, 7, 2.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 0.5, 9.5, 2.5 ], "texture": "#texture" }, + "east": { "uv": [ 6.5, 0.5, 9.5, 2.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Cube5", + "from": [ 9, 13.5, 6.5 ], + "to": [ 9.5, 15.5, 9.5 ], + "faces": { + "down": { "uv": [ 6.5, 6.5, 7, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 6.5, 7, 9.5 ], "texture": "#texture" }, + "north": { "uv": [ 9, 0, 9.5, 2 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 0, 7, 2 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 0, 9.5, 2 ], "texture": "#texture" }, + "east": { "uv": [ 6.5, 0, 9.5, 2 ], "texture": "#texture" } + } + }, + { + "__comment": "Cube7", + "from": [ 7, 15.5, 6.5 ], + "to": [ 9, 16, 9.5 ], + "faces": { + "down": { "uv": [ 7, 6.5, 9, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 7, 6.5, 9, 9.5 ], "texture": "#texture" }, + "north": { "uv": [ 7, 0, 9, 0.5 ], "texture": "#texture" }, + "south": { "uv": [ 7, 0, 9, 0.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 0, 9.5, 0.5 ], "texture": "#texture" }, + "east": { "uv": [ 6.5, 0, 9.5, 0.5 ], "texture": "#texture" } + } + } + ], + "display": { + "thirdperson_righthand": { + "translation": [ 0, 4.1, 0 ] + }, + "firstperson_righthand": { + "translation": [ 0, 4.1, 0 ] + }, + "gui": { + "rotation": [ 0, 90, 0 ], + "scale": [ 0.9, 0.9, 0.9 ] + }, + "ground": { + "rotation": [ 90, 90, 0 ] + }, + "fixed": { + "rotation": [ 0, -90, 0 ] + } + } +} \ No newline at end of file