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

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;
        }
    }
            

 

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

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

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.