Jump to content

Cannot get textures to work [1.7.2] forge version 10.12.1.1060


ClarmonkGaming

Recommended Posts

I cannot get textures to work.

 

file structure

 

C:\Developing\Freetime\MC\1.7.2\someCraft\src\main\resources\assets\someCraft\textures\items

 

my modid is someCraft

 

here is my code

main class

package clarmonk.mc.somecraft;

import clarmonk.mc.somecraft.item.somoniomItem;
import clarmonk.mc.somecraft.proxy.commonProxy;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;


@Mod(modid = info.MOD_ID, name = info.MOD_NAME, version = info.MOD_VERSION)
public class someCraft {

        public static Item reflectorItem;

        public static Item somoniomIngot;
        @Instance(value = info.MOD_ID)
        public static someCraft Instance;

        @SidedProxy(clientSide = "clarmonk.mc.somecraft.proxy.clientProxy", serverSide = "clarmonk.mc.somecraft.proxy.commonProxy")
        public static commonProxy proxy;

        @Mod.EventHandler
        public void preInit(FMLPreInitializationEvent event) {
            somoniomIngot = new somoniomItem().setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("somoniom_Ingot").setTextureName("someCraft:somoniom_Ingot");
            reflectorItem = new somoniomItem().setMaxStackSize(16).setCreativeTab(CreativeTabs.tabMisc).setUnlocalizedName("reflector_Item").setTextureName("someCraft:reflector");
            GameRegistry.registerItem(reflectorItem, reflectorItem.getUnlocalizedName());
            GameRegistry.registerItem(somoniomIngot, somoniomIngot.getUnlocalizedName());
        }
        @Mod.EventHandler
        public void Init(FMLInitializationEvent event) {

        }
        @Mod.EventHandler
        public void postInit(FMLPostInitializationEvent event) {

        }


}

info class

package clarmonk.mc.somecraft;

public class info {
    public static final String MOD_ID = "someCraft";
    public static final String MOD_NAME = "SomeCraft";
    public static final String MOD_VERSION = "1.0.A";
}

item class

package clarmonk.mc.somecraft.item;

import net.minecraft.item.Item;

public class somoniomIngot extends Item {
    }

and my main item class

package clarmonk.mc.somecraft.item;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class somoniomItem extends Item {
    public somoniomItem() {
        setMaxStackSize(64);
        setCreativeTab(CreativeTabs.tabMisc);
    }
}

 

I am using method chaining to declare stack size and texture name and such

 

thank you for helping me

--ClarmonkGaming

Link to comment
Share on other sites

Hi

 

What are the symptoms of the problem (Error messages, screenshots?)

 

Assuming it's "missing texture, unable to load" - if you search this forum for "using missing texture" you'll find a heap of people with this problem.

Generally boils down to

* texture name not set properly, or

* textures stored in the wrong folder, or

* the upper/lower case don't match exactly.

 

This link might also help:

http://www.minecraftforge.net/forum/index.php/topic,11963.0.html

 

-TGG

Link to comment
Share on other sites

Yeah, MODID must be lower case to find the resources. The folder name

...\somecraft\...
and the name in the source code have to be the same, too. You cannot change one without the other being the exact same spelling.
Link to comment
Share on other sites

so i changed teh modidd to somecraft and teh folder structure thing to somecraft and it is still not working

 

Without seeing your code now, I can only guess that setTextureName() still says "someCraft:???".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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