Creating a hardcore mode revival system. Need help with GUI stuff!

Started by p1n3 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Creating a hardcore mode revival system. Need help with GUI stuff!

I have created an item that when right-clicked, opens a GUI asking to enter the name of a player. What I want to do, is have a function that reads the name entered into the text field on the GUI, and teleports that player to the location of the player using the item, and change their game mode to survival. I also want the function to do nothing if there is no player with the name entered. I am new and not sure how I would write this function! Can anyone help?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe include a void world…
Sat, 03/27/2021 - 02:04

maybe include a void world that can only be accssed with a portal made of fire or lava then have the player have a counter and they can insert totems of undying to increase their life count and don't forget to disable the custom death screen and replace it with your gui by cancling the event on death unless there are totems in main or off hand hope i could help