#how do I open an actionform in a certain position

1 messages · Page 1 of 1 (latest)

rare knoll
#

Wait i will try to make u one

#

@near tree try it

#
system.runInterval(() => {
  for(const Player of world.getPlayers()){ const X = Player.location.x;
      const Y = Player.location.y;
      const Z = Player.location.z;
      const x = 383;
      const y = -60;
      const z = 99;
    if(X = x && Y = y && Z = z){
    //your form     
    };
  }
});```
#

🙂 The bad thing about this code is that if you want to close the interface, you need to move away from the area, but you will not be able to because it will show it to you repeatedly, so set a timer or use the tag system.

#

Maybe

rare knoll
#

@near tree

#

This is should work

#
system.runInterval(() => {
for (const player of world.getPlayers()) {
        const Xx = player.location.x;
        const Yy = player.location.y;
        const Zz = player.location.z;
    const X = Math.floor(Xx);
    const Y = Math.floor(Yy);
    const Z = Math.floor(Zz);
        const x = 383;
        const y = -60;
        const z = 99;
        if (X === x && Y === y && Z === z) {
            player.sendMessage("It's working");
        }
    }
});```
#

Now its working

fathom relic
#

player.hasTag("tag") returns true if the player has the tag tag and false if the player doesn't have the tag tag