Everything posted by luckie12
-
[1.10.2] Texture item error
Heheheheheheheh That was it! Thanks It works Ya'all are legends, Thanks for the input everyone on making my start better
-
[1.10.2] Texture item error
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
-
[1.10.2] Texture item error
Yep, fixed it, and no errors, BUT still no image ingame ...
-
[1.10.2] Texture item error
It changed 1 thing, the line break with the } Still doesnt work Error: Parse error on line 5: ..._ingot" }, } ---------------------^ Expecting 'STRING', got '}'
-
[1.10.2] Texture item error
ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(),"inventory")); Sameerrors, all about
-
[1.10.2] Texture item error
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) { } }
-
[1.10.2] Texture item error
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(); } }
-
[1.10.2] Texture item error
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" }, }
-
[1.10.2] Texture item error
I honestly cant see what im doing wrong atm...
-
[1.10.2] Texture item error
Sadly, that was not the fix Still getting the same errors and black/pink texture
-
[1.10.2] Texture item error
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" }, }
-
[1.10.2] Texture item error
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 :-)
-
[1.10.2] Texture item error
This is the log
-
[1.10.2] Texture item error
Well,it didnt fix my problem haha It still gives everything the same
-
[1.10.2] Texture item error
I've been doing searching on the webs, and people said for 1.9 its like that, i guess ill revert that back then
-
[1.10.2] Texture item error
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
-
[1.10.2] Texture item error
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(); } }
-
[1.10.2] Texture item error
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!
-
Error running server
Oh right, im sorry
-
Error running server
Or what error log are you aiming for?
-
Error running server
I've added the FML error log too. And Cauldron does not accept any new registred members anymore.
-
Error running server
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;
-
Some crash happening
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
-
Some crash happening
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!
IPS spam blocked by CleanTalk.