Started by
p1n3
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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