Adaptive raytrace distance

Started by Siryak on Tue, 04/13/2021 - 14:52

Topic category: Help with modding (Java Edition)

Last seen on 12:39, 30. Jun 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Adaptive raytrace distance
Sun, 06/27/2021 - 16:14 (edited)

Hello,

I want to make an item to locate other people,

And I want to let user tp where he wants and where he sees, but I have a problem with the ray trace distance, I don't know how to make it adaptive to go on a bloc

Thanks for help.😁

Image of my try

 

 

Edited by Siryak on Sun, 06/27/2021 - 16:14
Last seen on 22:37, 18. Sep 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The procedure blocks in the…
Tue, 04/13/2021 - 22:07

The procedure blocks in the picture below will teleport the player to the block the player is looking at (so long as the block is closer then the raytrace distance)

https://drive.google.com/file/d/1uR2sEo-cMQbsomPgTCGgKBEnn06Usqsm/view?…

Last seen on 13:16, 19. Sep 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The command, you wrote is…
Sun, 08/01/2021 - 08:14

The command, you wrote is made for 1.12.

For 1.13, 1.14, 1.15, 1.16 - /effect give @e[distance=..100] glowing 8 1 true