Started by
JamesJ
on
Topic category: Help with Minecraft modding (Java Edition)
How to make a block computer / monitor on which you can press RMB to open the interface, password - 5 0 7 7 if the password was incorrect, it returned an error , if the password was correct, any action was output from this block?
Edited by JamesJ on Sun, 07/07/2024 - 18:28
there exists text input block which u can use to save variable of password (which doesn't works on servers unfortunetly)
U also can create 1 button for each number and by pressing on it change variable of password
Also in MCreator exists customizable conditions under which different interface elements appear - u can use it to show text "invalid password" or vise versa
Something I can't figure out anyway
I honestly have no idea how I could do this, my knowledge here is clearly not enough... ;(
The gui wiki is at https://mcreator.net/wiki/gui-editor. Videos are at https://www.youtube.com/watch?v=3gmFruTGCU4&t=1s and https://www.youtube.com/watch?v=uRflJmjgvak. With what the person above said, in more technical terms:
If: get text input from textfield password = password
Then: Close GUI for event/target entity if it is player
open _ GUI for player
else: Return incorrect password to player.
-PixelKid