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.

Featured Replies

Posted

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

Use a lowercase file path and it should work.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

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

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.

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:???".

  • Author

That was the problem thank you ;):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):);):)

thanks for helping me how do I change the title of this thread to solved

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...

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.