How to teleport an entity to a specific block if it’s in an area near the entity

Started by natemilligan45 on

Topic category: Help with modding (Java Edition)

Last seen on 01:42, 28. Feb 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to teleport an entity to a specific block if it’s in an area near the entity

I used the 6x6x6 

the target block is a cosum block 

then in do I put set location to x+ Get local sx, y, z + get local sz 

 

but it does seem to be doing anything 

I’m trying to teleport them to the  block but they don’t seem to be doing anything