Procedure doesnt work at a distance

Started by ScareForceOne on

Topic category: Troubleshooting, bugs, and solutions

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure doesnt work at a distance
Sat, 05/17/2025 - 17:34 (edited)

Hello

Im not sure if this is the right section to post this, and if it isnt i'll gladly take it down, but i've been hitting my head against the wall for hours and tried everything i could come up with so im pretty sure this isnt an error on my part. So to quickly describe the issue, im making a mod that includes fast travel. The way it works is by placing a certain block, that blocks x,y,z are stored in a player persistent string variable. Right clicking that block opens a gui that has has buttons. Each button sets the target entity's (player)  location to the specified target. By trial and error i came up with a pretty robust procedure that seemed to work pretty well. While finishing working on it i decided to move much further away than were i was originally testing it to place one of the "teleporter blocks". While i could travel to that block from my gui and open the same gui from right clicking that block, the buttons of the gui that were opened from that block didnt seem to work. I went back to the "teleporter blocks" i had placed previously and they worked like normal. I tried placing debug markers in the procedure and again - the buttons worked perfectly in the blocks i placed closer to spawn but they didnt work at all in those further away. I even tried a very simple procedure (https://imgur.com/a/Gp1RLhi) for the buttons to see if the problems were in the procedure but they still didnt activate. At this point im kinda stumped because i have no idea what i have done wrong or what could be causing this. I would appreciate any insight i could get on this.

 

Nevermind - found the error.

 

Edited by ScareForceOne on Sat, 05/17/2025 - 17:34