Topic category: Help with MCreator software
I am working on a teleporter block that Utilizes Names, Channels, and Passwords. You set a portals name, channel, and password, through text fields in a gui. When you press a save button, it will save the text in each field as nbt data to the block. Now my idea is you can tp from any teleporter to another, IF the entered Name Channel and Password in the gui matches the saved data of the destinations teleporter. HOWEVER I have encountered the inevitable issue, how do I save the coordinates of a portal when you press a gui button lets say, and allow a different portal to access those coords only if the entered N,C,P matches the data of the destination. What I have come up with so far, is to save the N,C,P to a global variable instead, separated by a delimiter only at the end NOT in between each three, in order for multiplayer support. Then when you enter the desired N,C,P into a gui and press a button, it will search the global variable string for that data within it, if it is found that means all 3 criteria are correctly entered together. Now, im stuck on how I attach the desired coords to that data. I figured at first, save the coords into that blocks section in the global variable, and separate it by a different delimiter. Then when a N,C,P match is found in the variable, it will then search between the next section contained within the special delimiter. But I simply dont know how to do this.. Any help would be greatly appreciated. Im very lost with this right now, I get why most people use remotes for teleporters, but this would be awesome to get working!!