Posted May 25, 201213 yr As guis for servers have changed so many times I'm getting very confused to how I can get my stove to work again on smp and wondering if anyone is kind enough to give a brother a hand On the server Im guessing i need to return the cooker container but Im tiny bit lost to how i would do this Client Mod_Cooker public class mod_Cooker extends NetworkMod implements IGuiHandler { public void load() { MinecraftForge.setGuiHandler(this, this); } public Object getGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { System.out.println("Test Gui1"); if (ID == 1)//Cooker 1 { ModLoader.getMinecraftInstance().displayGuiScreen(new GuiCooker(player.inventory, (TileEntityCooker)player.worldObj.getBlockTileEntity(x, y, z))); } return null; } } Server BlockCooker public static mod_Cooker instance; public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer) { if(world.isRemote) { return true; } else { entityplayer.openGui(instance, 1, world,i, j, k ); return true; } }
May 26, 201213 yr ModLoader.getMinecraftInstance().displayGuiScreen get rid of that shit. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
May 26, 201213 yr Author Im an idiot, didn't notice i added that in copied the returns from modloaderMp I didn't want to make another topic but I'm not sure why Im randomly getting a checksum has no scope error at the moment. Both version of my mods are bringing this error up when the config is loaded but was working fine few days ago when I write the config using forge I can post the code if it helps but the codes matches the tutorial code part from the extra hundreds of blocks and items
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.