Heres my error:
Heres my code:
Main Class:
Gui:
Container:
Block:
Tile Entity:
Gui Handler:
and don't say that I copied the furnace classes and that Im cheap because I know and I am new to creating this stuff and will eventually write my own when I am familiar with it.
for 1 you need to make a command class, here is a premade one from minecraft
Give Command
Then in your main class you must put
ModLoader.addCommand(CommandClassHere);
inside the container class you need to change
@Override
public boolean canInteractWith(EntityPlayer player) {
return tileEntity.isUseableByPlayer(player);
}
to
@Override
public boolean canInteractWith(EntityPlayer player) {
if(player.getCurrentEquippedItem()==new ItemStack(Mod.item))return true;
return tileEntity.isUseableByPlayer(player);
}