Jump to content

[1.12.2] Item Texture is text


Virusemre

Recommended Posts

Hi.I'm new to modding so i followed a youtube video,on how to make a Item.But when i start minecraft,the texture of the item is just a text saying :

Quote

vm:ingot_prismatic#inventory

Here´s the code:

package com.Virusemre2007.Virusmod.init;

import java.util.ArrayList;
import java.util.List;

import com.Virusemre2007.Virusmod.objects.items.ItemBase;

import net.minecraft.item.Item;

public class ItemInit 
{
	public static final List<Item> ITEMS = new ArrayList<Item>();
	
	public static final Item PRISMATIC_INGOT = new ItemBase("ingot_prismatic");
}

and this

package com.Virusemre2007.Virusmod.objects.items;

import com.Virusemre2007.Virusmod.main;
import com.Virusemre2007.Virusmod.init.ItemInit;
import com.Virusemre2007.Virusmod.util.IHasModel;

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

public class ItemBase extends Item implements IHasModel
{
	public ItemBase(String name)
	{
		setUnlocalizedName(name);
		setRegistryName(name);
		setCreativeTab(CreativeTabs.MATERIALS);
		
		ItemInit.ITEMS.add(this);
	}
	
	@Override
	public void registerModels() 
	{
		main.proxy.registerItemRenderer(this, 0, "inventory");
	}
}

Please Help.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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