Jump to content

[UNSOLVED]Typical "My textures are not showing up" thread. (1.7.10)


Recommended Posts

Posted

Yep. This is exactly what you would expect.

My textures are not showing up.

 

Mod file thing:

 

package com.zeugs.mod;

 

import com.zeugs.mod.items.NCItems;

 

import net.minecraft.item.Item;

import net.minecraft.item.ItemFood;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

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 cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

@Mod(modid = Zeugs.MODID, version = Zeugs.VERSION)

public class Zeugs {

 

public static final String MODID = "Zeugs";

public static final String VERSION = "Deux";

 

//Items

public static Item itemObsidianBrick;

 

    //Foodz

public static Item foodFlonkGem;

public static Item foodDonut;

public static Item foodGoodDonut;

public static Item foodChocDonut;

public static Item foodRawBacon;

public static Item foodBacon;

 

 

@EventHandler

public void PreInit(FMLPreInitializationEvent preEvent)

{

 

//Items

itemObsidianBrick = new NCItems().setUnlocalizedName("ObsidianBrick");

GameRegistry.registerItem(itemObsidianBrick, "ObsidianBrick");

 

//Foodz

foodDonut = new ItemFood(10, 1.2F, false).setUnlocalizedName("Donut");

GameRegistry.registerItem(foodDonut, "Donut");

foodGoodDonut = new ItemFood(15, 1.8F, true).setUnlocalizedName("GoodDonut");

GameRegistry.registerItem(foodGoodDonut, "GoodDonut");

foodChocDonut = new ItemFood(12, 0.8F, false).setUnlocalizedName("ChocDonut");

GameRegistry.registerItem(foodChocDonut, "ChocDonut");

foodRawBacon = new ItemFood(2, 0.2F, true).setUnlocalizedName("RawBacon");

GameRegistry.registerItem(foodRawBacon, "RawBacon");

foodBacon = new ItemFood(6, 1.0F, true).setUnlocalizedName("Bacon");

GameRegistry.registerItem(foodBacon, "Bacon");

}

 

@EventHandler

public void init(FMLInitializationEvent event)

{

 

}

 

@EventHandler

public void PostInit(FMLPostInitializationEvent postEvent)

{

 

}

}

 

 

 

NCItems:

 

package com.zeugs.mod.items;

 

import com.zeugs.mod.Zeugs;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IIconRegister;

import net.minecraft.item.Item;

 

public class NCItems extends Item{

 

public NCItems() {

this.setCreativeTab(getCreativeTab().tabMaterials);

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IIconRegister iconRegister) {

this.itemIcon = iconRegister.registerIcon(Zeugs.MODID + ":" + this.getUnlocalizedName().substring(5));

}

}

 

 

 

path:

 

I am too stupid to fix this problem myself. Thanks for the help.

Posted

What's your IDE?

Also show the contents of the Items folder, inside your IDE, not in the explorer (finder, or whatever it's called on mac).

 

This is what is in the items folder:

 

It's called finder on mac.

 

What does IDE stand for?

Posted

Cough cough. Textures are inside assets/modid/textures/items, assets/modid/textures/blocks, assets/modid/textures/entity...

And not assets/modid/items ...

 

That did not fix it. Still thanks.

Posted

IDE = Integrated Development Environment, eclipse is a popular one, or Intellij IDEA.

 

I'm using eclipse.

 

Why do you use IIConRegister if you can use setTextureName in constructor?

 

I don't know.

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.