Everything posted by snipernyc1
-
My Item texture not loading help? (with code)
https://gyazo.com/a5dbe9c04f61a19c1938c1dd3c7ea36a this is a gyazo of the code part i think u wanted me to change and the directory ps im newb to coding manually it was easier back in 1.5 for me
-
My Item texture not loading help? (with code)
i have no idea why it is a GIANT purple and black checker box i have all this and my item comes up like this in game https://gyazo.com/5710482d07d54657ec58492bc99f0aca package snipernyc1.firsttime; 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 snipernyc1.firsttime.init.AquaItems; import snipernyc1.firsttime.proxy.CommonProxy; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION) public class snipermod { @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { AquaItems.init(); AquaItems.register(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRenders(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } - main class package snipernyc1.firsttime.init; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import snipernyc1.firsttime.Reference; public class AquaItems { public static Item aqua_ingot; public static void init(){ aqua_ingot = new Item().setUnlocalizedName("aqua_ingot"); } public static void register(){ GameRegistry.registerItem(aqua_ingot, aqua_ingot.getUnlocalizedName().substring(5)); } public static void registerRenders(){ registerRender(aqua_ingot); } public static void registerRender(Item item){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5),"Inventory")); } } - items class package snipernyc1.firsttime.init; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import snipernyc1.firsttime.Reference; public class AquaItems { public static Item aqua_ingot; public static void init(){ aqua_ingot = new Item().setUnlocalizedName("aqua_ingot"); } public static void register(){ GameRegistry.registerItem(aqua_ingot, aqua_ingot.getUnlocalizedName().substring(5)); } public static void registerRenders(){ registerRender(aqua_ingot); } public static void registerRender(Item item){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5),"Inventory")); } } - the basic rendering thing
-
no minecraft folder in eclipse
https://gyazo.com/2bb6fa1649bd2a59dd597ef6650c375d it shows me this whne i open eclipse after setting up my eclipse from this https://gyazo.com/2dedf41182221bf759935ad0dc702791 i set the directory to my folder which is C:\Users\user-pc\Desktop\Minecraft Mod\eclipse any help?
IPS spam blocked by CleanTalk.