Started by
MCCercus
on
Topic category: Help with MCreator software
Hello,
I searched all the posts and videos that mention creating a block with the same behaviour as signs, but none of them describe the implementation of sign behaviour consistently or precisely. I tried to implement it myself, but I don't know how to display text on a block when the player types text in a GUI. What is the method for performing this operation ?
Here are some screns
The gui procedure :
The gui display :
The tag "Block entity" :
Thank for advance
Edited by MCCercus on Mon, 07/14/2025 - 12:28
Update :
I've managed to store the value of my text field in the block in an nbtTag, but now how do I display it on the block ?
I checked this option :
The final procedure who launched when the player click on button "Validate" :
Hello,
After a few tests, I've found a way to display text on a block. Here's how to do it (for anyone else wondering):
This procedure requires manual modifications of the files generated by MCreator (and a good knowledge of JAVA and minecraft modding):
3) Create a new class implementing BlockEntityRenderer<? extends BlockEntity> in a package named “renders”, for example. The render() method is used to configure the text display.
4) In the mod's main class (with the @Mod annotation), insert these lines:
5) Still in the main class, insert these lines:
6) Check that all imports into modified classes are correct
Hey, is it cool if u can share a template of the sign setup (like a workspace download)? I need it for my mod, and I can't figure it out for the life of me. Thanks