Posted February 14, 201411 yr So I wanted to add a GUI to a block and I copied from another one of my mods but however, I crash with this every time I go and right click on the block: http://pastebin.com/x5SvFfHy Code (Open source Yay! ): Problem Line http://i.imgur.com/gWwyMMO.jpg[/img]
February 14, 201411 yr @Override public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){ TileEntity te = world.getTileEntity(x, y, z); if(te instanceof TileEntityBlockCrafter){ return new ContainerBlockCrafter(player.inventory, (TileEntityBlockCrafter) te); } return null; } You are returning your Container on the client, return your Gui class not the Container
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.