Jump to content

Custom sign type 1.15.2


theDutchFlamingo

Recommended Posts

Hi! I'm working on a 1.15.2 mod that will add many new types of wood, and of course that also means I need signs for every type of wood. However, I got stuck while trying to implement the rendering and the GUI of the sign. I noticed that minecraft has an "openSignEditor" method in "ClientPlayerEntity", but this leads to a call to "SignTileEntityRenderer.getMaterial(blockstate.getBlock())", which cannot be overriden (as it's static) and doesn't have any way of adding my own materials (that I can find). What I tried (instead of calling "openSignEditor") is to directly call "Minecraft.getInstance().displayGuiScreen", but this only ever crashed; maybe something to do with threading, but I also tried ".enqueue" with no luck.

So basically my question is just, "what's the easiest way to add signs?" 

 

Link to comment
Share on other sites

  • 3 weeks later...

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

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

Announcements



×
×
  • Create New...

Important Information

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