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

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.

  • Author

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?

  • Author

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.

  • Author

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

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.