Jump to content

[1.16.5] Guis not loading


Recommended Posts



i am currently updating my mod to 1.16.5 and i need a little help.

my GUIs aren't loading. please see below for links to Tile Entity, Container, Screen, and Block classes.

TileEnt: MarijuanaCraft1.16.5/ColumnTileEntity.java at main · drmdgg/MarijuanaCraft1.16.5 (github.com)

Container: MarijuanaCraft1.16.5/ColumnContainer.java at main · drmdgg/MarijuanaCraft1.16.5 (github.com)

Screen: MarijuanaCraft1.16.5/ColumnScreen.java at main · drmdgg/MarijuanaCraft1.16.5 (github.com)

Block: MarijuanaCraft1.16.5/ColumnBlock.java at main · drmdgg/MarijuanaCraft1.16.5 (github.com)


any help is greatly appreciated. thanks

Link to comment
Share on other sites

20 hours ago, diesieben07 said:
  • Use @Override when overriding methods.
  • Your repository is missing the build.gradle and gradle wrapper. The MDK comes with a properly configured .gitignore file, use it. However that means you need to use a proper git client instead of the web upload, which you should be doing anyways.
  • I can't see the issue from just the code, it looks fine from just looking at it. Please correct the point above so we can use the debugger on it.

Hope this helps. 
drmdgg/MarijuanaCraft1.16.5 (github.com)

which overrides are you referring to?

Link to comment
Share on other sites

16 minutes ago, diesieben07 said:

Your ColumnBlock class is entirely unused, you never register a block with that class. Your BlockInit class does register something called column, but it does not use ColumnBlock.


In ColumnBlock for example.

thank you, that got the gui to come up, 

however, it still spawns another "column" when the gui it opened

Link to comment
Share on other sites

6 minutes ago, diesieben07 said:

Yes... But then you also said you didn't use it this time. Which will make things terrible for you, because you now need to merge things when you commit next time.


You completely recreated the repository... Why...


I do not understand what you mean by this. I did not notice any kind of "spawning" when opening the GUI.

if it wasn't spawing an extra "column" then it must be my laptop being garbage. 


and i thank you. i knew it had to be something registered that was missing


are you able to help me with a button or should i make a new topic?


Link to comment
Share on other sites

Just now, diesieben07 said:

Make a new button.

...i have old code from 1.14.4 that does not work. 

 this.addButton(new Button(relX + 18, relY + 15, 5, 20, "PURGE", button -> PacketHandler.sendToServer(new C2SRequestStartOven(tileEntity.getPos()))));
      this.addButton(new Button(relX + 18, relY + 15, 5, 20, "PURGE", button -> PacketHandler.sendToServer(new C2SRequestStartOven(tileEntity.getPos()))));

gets "The constructor Button(int, int, int, int, String, Button.IPressable) is undefined"

Link to comment
Share on other sites

On 2/17/2021 at 4:24 PM, diesieben07 said:

Look at the constructors that are available. Then pick the one that fits your need.

I'm not asking you to write the code or anything for me, but could you be a little more specific.
is there a list of available constructors i can look at pertaining to this?

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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