#(1.20.4) Wanting to create a "Terminal" block, need help

2 messages · Page 1 of 1 (latest)

rain karma
#

This is the most complicated thing i've attempted so far.
I want to make a terminal block that, when right-clicked, opens a ui with light green text that can be edited. I have no idea how to achieve that.

so far I have this base setup from following a tutorial, but that's about it. Not sure where to go from here.

ideally text would not be centered, instead left-to-right, and would save and appear again if a player were to exit the gui and re-enter it

sorry if this is a big ask, but i'm really trying to make this happen.

multiplayer concerns are not really important to me as this is for a personal project of mine and will not be used in multiplayer scenarios

random shale
#

I think we can't provide you with everything you need rn for that to happen, you need to gather more information throught documentation and also reading other people's code on github. The next step is implementing a ScreenHandler yourself, but I think you should read this before:

https://fabricmc.net/wiki/tutorial:screenhandler

https://github.com/natanfudge/fabric-docs/blob/a980eec391ecb6064628abae6b0d6c055133c340/docs/Modding-Tutorials/screenhandler.md (Try to read the whole file please)

What you can also do is read other people's code (not steal it, just read it until you understand, test a lot), what you can do is copy a part of the code you know will be in other's people's code and search no github, in that case you could search "ScreenHandler createMenu(", after that read other's people's code, more than one, don't blindily go to one repository and try to learn everything from it.

Unfortunely I can't guide you more than that, but you can go really far just by reading the documentation and learning from github repositories.

GitHub

Contribute to natanfudge/fabric-docs development by creating an account on GitHub.