Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

luckie12

Members
  • Joined

  • Last visited

Everything posted by luckie12

  1. Heheheheheheheh That was it! Thanks It works Ya'all are legends, Thanks for the input everyone on making my start better
  2. So, @EventHandler() public static void init(FMLInitializationEvent event){ proxy.registerRenders(); } This is being called in the main java, proxy refers to public static CommonProxy proxy; CommonProxy.java only has this: package Fatal1tyGC.BitofTuts.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class CommonProxy { public void registerRenders(){ } public void preInit(FMLPreInitializationEvent event){ } public void init(FMLInitializationEvent event) { } public void postInit(FMLPostInitializationEvent event) { } } Thats all
  3. Yep, fixed it, and no errors, BUT still no image ingame ...
  4. It changed 1 thing, the line break with the } Still doesnt work Error: Parse error on line 5: ..._ingot" }, } ---------------------^ Expecting 'STRING', got '}'
  5. ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(),"inventory")); Sameerrors, all about
  6. Its not it haha, i commented it because it didnt do anything, because CommonProxy is empty > package Fatal1tyGC.BitofTuts.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class CommonProxy { public void registerRenders(){ } public void preInit(FMLPreInitializationEvent event){ } public void init(FMLInitializationEvent event) { } public void postInit(FMLPostInitializationEvent event) { } }
  7. Im getting confused too, this is what i have: Reference.java package Fatal1tyGC.BitofTuts; public class Reference { public static final String MODID = "bot"; public static final String NAME = "BitofTuts"; public static final String VERSION = "1.0"; public static final String SERVER_PROXY_CLASS = "Fatal1tyGC.BitofTuts.proxy.CommonProxy"; public static final String CLIENT_PROXY_CLASS = "Fatal1tyGC.BitofTuts.proxy.ClientProxy"; } CommonProxy.java package Fatal1tyGC.BitofTuts.proxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class CommonProxy { public void preInit(FMLPreInitializationEvent event){ } public void init(FMLInitializationEvent event) { } public void postInit(FMLPostInitializationEvent event) { } } ModItems.java package Fatal1tyGC.BitofTuts.init; import Fatal1tyGC.BitofTuts.Reference; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item copper_ingot; public static void init(){ copper_ingot = new Item().setUnlocalizedName("copper_ingot").setCreativeTab(CreativeTabs.MISC).setMaxStackSize(64); } public static void register(){ registerItem(copper_ingot); } public static void registerRenders(){ registerRender(copper_ingot); } public static void registerItem(Item item){ GameRegistry.register(item.setRegistryName("copper_ingot")); System.out.println("Registered Item: " + item.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5)); } public static void registerRender(Item item){ //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(),"inventory")); //ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); //ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getRegistryName(),"inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } ClientProxy.java package Fatal1tyGC.BitofTuts.proxy; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import Fatal1tyGC.BitofTuts.init.ModItems; public class ClientProxy extends CommonProxy{ public void PreInit(FMLPreInitializationEvent event){ ModItems.registerRenders(); } public void registerRenders() { ModItems.registerRenders(); } } copper_ingot.json { "parent": "item/generated", "textures": { "layer0": "bot:items/copper_ingot" }, } And my main file BitofTuts.java package Fatal1tyGC.BitofTuts; import Fatal1tyGC.BitofTuts.init.ModItems; import Fatal1tyGC.BitofTuts.proxy.CommonProxy; 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; @Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION) public class BitofTuts { @SidedProxy(serverSide = Reference.SERVER_PROXY_CLASS, clientSide = Reference.CLIENT_PROXY_CLASS) public static CommonProxy proxy; @Mod.Instance("bot") public static BitofTuts instance; @EventHandler() public static void preInit(FMLPreInitializationEvent event){ ModItems.init(); ModItems.register(); } @EventHandler() public static void init(FMLInitializationEvent event){ //proxy.registerRenders(); } @EventHandler() public static void postIn(FMLPostInitializationEvent event){ System.out.println(); } }
  8. Eh,, the model is supposed to be an Iron ingot cover, like with a new texture... I dont have anything insidemy bot/models/item folder,only the copper_ingot.json, which is: { "parent": "item/generated", "textures": { "layer0": "bot:items/copper_ingot" }, }
  9. I honestly cant see what im doing wrong atm...
  10. Sadly, that was not the fix Still getting the same errors and black/pink texture
  11. My registerRender: Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); Same errors... how the structure is like This is my JSON: { "parent": "item/generated, "textures": { "layer0": "bot:items/copper_ingot" }, }
  12. package Fatal1tyGC.BitofTuts.init; import Fatal1tyGC.BitofTuts.Reference; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item copper_ingot; public static void init(){ copper_ingot = new Item().setUnlocalizedName("copper_ingot").setCreativeTab(CreativeTabs.MISC).setMaxStackSize(64); } public static void register(){ registerItem(copper_ingot); } public static void registerRenders(){ registerRender(copper_ingot); } public static void registerItem(Item item){ GameRegistry.register(item.setRegistryName("copper_ingot")); System.out.println("Registered Item: " + item.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5)); } public static void registerRender(Item item){ //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(),"inventory")); //ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); //ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getRegistryName(),"inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getRegistryName(), "inventory")); } } There you go :-)
  13. This is the log
  14. Well,it didnt fix my problem haha It still gives everything the same
  15. I've been doing searching on the webs, and people said for 1.9 its like that, i guess ill revert that back then
  16. I have this too -> i forgot to add it, sorry package Fatal1tyGC.BitofTuts.proxy; import Fatal1tyGC.BitofTuts.init.ModItems; public class ClientProxy extends CommonProxy{ @Override public void registerRenders() { ModItems.registerRenders(); } } ClientProxy.java
  17. Im calling it in the init -> package Fatal1tyGC.BitofTuts; import Fatal1tyGC.BitofTuts.init.ModItems; import Fatal1tyGC.BitofTuts.proxy.CommonProxy; 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; @Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION) public class BitofTuts { @SidedProxy(serverSide = Reference.SERVER_PROXY_CLASS, clientSide = Reference.CLIENT_PROXY_CLASS) public static CommonProxy proxy; @Mod.Instance("bot") public static BitofTuts instance; @EventHandler() public static void preInit(FMLPreInitializationEvent event){ ModItems.init(); ModItems.register(); } @EventHandler() public static void init(FMLInitializationEvent event){ proxy.registerRenders(); } @EventHandler() public static void postIn(FMLPostInitializationEvent event){ System.out.println(); } } This is the ClientProxy package Fatal1tyGC.BitofTuts.proxy; import Fatal1tyGC.BitofTuts.init.ModItems; public class ClientProxy extends CommonProxy{ @Override public void registerRenders() { ModItems.registerRenders(); } }
  18. Hi! I keep getting an error when loading my "ingot" The ingot is a black and purple texture on loading, the error above i get multiple times when loading This is my copper_ingot.json { "parent": "item/generated, "textures": { "layer0": "bot:items/copper_ingot" }, } and this is my registering package Fatal1tyGC.BitofTuts.init; import Fatal1tyGC.BitofTuts.Reference; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item copper_ingot; public static void init(){ copper_ingot = new Item().setUnlocalizedName("copper_ingot").setCreativeTab(CreativeTabs.MISC).setMaxStackSize(64); } public static void register(){ registerItem(copper_ingot); } public static void registerRenders(){ registerRender(copper_ingot); } public static void registerItem(Item item){ GameRegistry.register(item.setRegistryName("copper_ingot")); System.out.println("Registered Item: " + item.getUnlocalizedName().substring(5)); //GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5)); } public static void registerRender(Item item){ //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(),"inventory")); ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } } The mod id = "bot" I rechecked everything like 4 times but cant find what is the exact problem, i hope someone can help me with this!
  19. Oh right, im sorry
  20. Or what error log are you aiming for?
  21. I've added the FML error log too. And Cauldron does not accept any new registred members anymore.
  22. Hello guys, i've been struggling with this lately. I use a start.bat to run the server but after 2 seconds i get Press any key to continue... this is the error log; This is the FML-SERVER-LATEST error log;
  23. I see, i removed them but now i get this.. Idk if those things depend on the 2 mods Removed Fastcraft... getting more errors i think its not even compatible. Its forge 1.7.10 and the mods are 1.7.10 too
  24. Hello, I read the rules and i know this is not the right place, but i cant find the exact place to put this and cauldron doesnt accept any new registrations... I am playing the Madpack 2 on ATLauncher and i wanted to have plugins so i made a server with Cauldron and Forge. i copied the plugins from the Madpack 2 server BUT whenever i start my cauldron/forge server i get; Runs perfect without all the mods but i want to know what mod causes the trouble soo.... Sorry for posting on the wrong section!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.