How to find block in spiral

Started by StazixLS on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to find block in spiral

Hello, I am gère because I want find a specific block in area of 10x10x10 but I want return the coords of the block the least far of the payer and I find solution but It's doesn't work, it research in Spiral Form it is one loop for to have radius and 3 other loop for inest for the coords and these 3 loop for coords Varies from -r to r (r is the variable to the loop radius) but It's doesn't work and sometime say the coords not least far and sometime when I am next to the block It's say there are don't diamond lol. Please someone can help me ?