Block-computer / monitor, where you need to enter the correct password

Started by JamesJ on

Topic category: Help with modding (Java Edition)

Last seen on 13:24, 11. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block-computer / monitor, where you need to enter the correct password
Sun, 07/07/2024 - 18:28 (edited)

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
Last seen on 11:38, 3. Oct 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
there exists text input…
Sun, 07/07/2024 - 12:33

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

Last seen on 13:24, 11. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Something I can't figure out…
Sun, 07/07/2024 - 13:11

Something I can't figure out anyway

Last seen on 13:24, 11. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I honestly have no idea how…
Sun, 07/07/2024 - 13:23

I honestly have no idea how I could do this, my knowledge here is clearly not enough... ;(

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The gui wiki is at https:/…
Sun, 07/07/2024 - 23:56

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:

  1. Create a GUI
  2. Add a text input named password and a button named whatever
  3. Create a procedure that says GUIpasswordcheck.
  4. in the procedure do this:

                     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