How to Check if the Player is Less than 64 blocks Away from a Block?

Started by sansdw on

Topic category: Help with modding (Java Edition)

Last seen on 17:06, 19. Aug 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Check if the Player is Less than 64 blocks Away from a Block?
Thu, 08/11/2022 - 16:53 (edited)

So, i have these two procedures but even tho im more than 64 blocks away from a block i can still teleport ( which is not meant )

this is the procedure to set the position : https://imgur.com/a/ZEc9Stp

and this is the procedure to teleport : https://imgur.com/a/vpie4f0

What i want is: if the player is less than 64 blocks away then, teleport

Edited by sansdw on Thu, 08/11/2022 - 16:53