Jump to content

toothpick007

Members
  • Posts

    16
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

toothpick007's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Sorry I meant I have displayed on the forum all files that are being used for the Item.... I don't think that the uppercase is the issue here
  2. Hi All its me again you all told me to start running all my stuff through my main.class so im doing that now however im having a few issues with the texturing I get the item to show however the texture is not showing I have attached all the files that I currently have. Main.java package COLCTut; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import COLCTut.items.testitem; @Mod(modid = Main.MODID, version = Main.VERSION) public class Main { public static final String MODID = "COLCMod"; public static final String VERSION = "1.0"; public static Item testitem = new testitem(); @EventHandler public void init(FMLInitializationEvent event) { CraftingRecipies(); GameRegistry.registerItem(testitem, "testitem"); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(testitem, 0, new ModelResourceLocation(MODID + ":" + testitem.getUnlocalizedName().substring(5),"inventory")); } @EventHandler public void Postinit(FMLPostInitializationEvent event) { } @EventHandler public void Preinit(FMLPreInitializationEvent event) { } // ########### This Your Recipes CRAFTING And SMELTING ########### public void CraftingRecipies() { // ########### Recipe 1 - Shaped ########### GameRegistry.addRecipe(new ItemStack(Items.diamond,64),new Object[]{ "ddd", "dsd", "ddd", Character.valueOf('d'),Blocks.dirt, Character.valueOf('s'),Items.apple }); // ########### End Of Recipes - Shaped ########### // ########### Recipe 2 - UnShaped ########### GameRegistry.addShapelessRecipe(new ItemStack(Items.diamond,64 ),new ItemStack(Blocks.dirt)); // ########### End Of Recipes - UnShaped ########### // ########### Smelting Section ########### GameRegistry.addSmelting(Blocks.dirt, new ItemStack(Items.iron_ingot), 200); // ########### End of Smelting ########### } } testitem.json { "parent": "builtin/generated", "textures": { "layer0": "COLCMod:items/testitem" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } testitem.java package COLCTut.items; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class testitem extends Item { public testitem() { this.setUnlocalizedName("testitem"); this.setCreativeTab(CreativeTabs.tabMaterials); } } Package Explorer
  3. Thank you this is all I needed thank you very much
  4. Thank you for your reply and to answer you questions 1. Why the hell did you smash main-mod-file things into your sword class? A : I have no idea what you are referring to... 2: What the fuck is this line? test_sword = new Item().setUnlocalizedName("test_sword").setCreativeTab(CreativeTabs.tabCombat); A: Well that because I initialize all my objects in their own class unless there is a better way to do it that I havnt found. 3:Where's your @Mod annotation? That's in my main Class Hope this helps and thank you for helping.
  5. Your problem is modding concepts in general. I don't think too much from this thread is really 1.8 specific. If you are following a tutorial, follow are steps really carefully. There are no tutorials on this that's why I am struggling and if you could point out the errors of my way that would be great
  6. your screenshot didn't work could you put it on imgur or something
  7. okay so I treid all of that now this is my class for the sword package com.colc.tutorial.init; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemSword; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.common.registry.LanguageRegistry; import com.colc.tutorial.reference; public class tutorialsword extends ItemSword { public static Item test_sword; public static ToolMaterial test = EnumHelper.addToolMaterial("The Killer", 0, 1, 12.0F, 4.0F, 22); public tutorialsword(){ super(test); } public static void init(){ test_sword = new Item().setUnlocalizedName("test_sword").setCreativeTab(CreativeTabs.tabCombat); } public static void register(){ GameRegistry.registerItem(test_sword, test_sword.getUnlocalizedName().substring(5));//tile.test_item LanguageRegistry.addName(test_sword, "COLC Sword"); } public static void registerrenders() { registerrender(test_sword); } public static void registerrender(Item item){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5),"inventory"));; } } However it is still not working :-( I hate this change to 1.8 :-(
  8. where would I place it thou would I need to make a whole new class ?
  9. Sorry here is my main file package com.colc.tutorial; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import com.colc.tutorial.init.tutorialblocks; import com.colc.tutorial.init.tutorialitems; import com.colc.tutorial.init.tutorialsword; import com.colc.tutorial.proxy.CommonProxy; @Mod(modid = reference.MOD_ID, name = reference.MOD_Name,version = reference.VERSION ) public class tutorialmod { @SidedProxy(clientSide = reference.CLIENT_PROXY_CLASS,serverSide = reference.SERVER_PROXY_CLASS) public static CommonProxy proxy ; @EventHandler public void init(FMLInitializationEvent event) { //******* Recipes Section Call Function************** CraftingRecipies(); //////*******END Recipes Section****************///// //******* Smelting Section Call Function************* Smelting(); //////*******END Smelting Section****************///// proxy.registerrenders(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } @EventHandler public void preInit(FMLPreInitializationEvent event) { tutorialitems.init(); tutorialitems.register(); tutorialblocks.init(); tutorialblocks.register(); tutorialsword.init(); tutorialsword.register(); } /////// this is where all your recipes will go//////// public void CraftingRecipies(){ GameRegistry.addRecipe(new ItemStack(Blocks.obsidian,64),new Object[]{ "ddd", "sss", "ddd", Character.valueOf('d'),Blocks.dirt, Character.valueOf('s'),Items.apple}); GameRegistry.addShapelessRecipe(new ItemStack(Items.diamond,64 ),new ItemStack(Blocks.dirt)); } /////// this is where all your Smelting recipes will go//////// public void Smelting(){ GameRegistry.addSmelting(Blocks.cobblestone, new ItemStack(Items.iron_ingot), 200); GameRegistry.addSmelting(tutorialblocks.test_block,new ItemStack(tutorialitems.test_item), 200); } }
  10. Hi everyone just wondering if anyone could point me in the right direction im tring to create a sword now ive done the texturing the naming and everything else however i want to apply custom attributes and im unsure where to put it in. Ive create public static ToolMaterial test = EnumHelper.addToolMaterial("The Killer", 0, 1, 12.0F, 4.0F, 22); However im unsure where to put it in all this ... package com.colc.tutorial.init; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.common.registry.LanguageRegistry; import com.colc.tutorial.reference; public class tutorialsword { public static Item test_sword; public static ToolMaterial test = EnumHelper.addToolMaterial("The Killer", 0, 1, 12.0F, 4.0F, 22); public static void init(){ test_sword = new Item().setUnlocalizedName("test_sword").setCreativeTab(CreativeTabs.tabCombat); } public static void register(){ GameRegistry.registerItem(test_sword, test_sword.getUnlocalizedName().substring(5));//tile.test_item LanguageRegistry.addName(test_sword, "Jedi Sword"); } public static void registerrenders() { registerrender(test_sword); } public static void registerrender(Item item){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5),"inventory"));; } }
  11. Hi all im having this problem could anyone tell me what this means and what i need to fix ?? [11:37:17] [main/INFO] [GradleStart]: assetsDir: C:\COLCMinecraft\.gradle\caches\minecraft\assets [11:37:17] [main/INFO] [GradleStart]: Extra: [] [11:37:18] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:\COLCMinecraft\.gradle\caches\minecraft\assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker] [11:37:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [11:37:18] [main/INFO] [FML]: Forge Mod Loader version 8.0.37.1334 for Minecraft 1.8 loading [11:37:18] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_40, running on Windows 7:amd64:6.1, installed at C:\COLCMinecraft\Java [11:37:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [11:37:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [11:37:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [11:37:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [11:37:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [11:37:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [11:37:18] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [11:37:19] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [11:37:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [11:37:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [11:37:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [11:37:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [11:37:19] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [11:37:19] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_40] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_40] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) ~[?:1.8.0_40] at java.lang.Runtime.loadLibrary0(Unknown Source) ~[?:1.8.0_40] at java.lang.System.loadLibrary(Unknown Source) ~[?:1.8.0_40] at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.1.jar:?] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_40] at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.1.jar:?] at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.1.jar:?] at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.1.jar:?] at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2856) ~[Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:44) ~[Main.class:?] ... 8 more Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
  12. thank you for your response im unsure on what to change the RunDir to as it just says "eclipse" Thank you very much for your response I did change the Run Location as you said however i still get this error
  13. Okay so I think I found the problem However it wont let me change the code !!! RRRRR why so many problems !!!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.