Gaider10 / CrossroadFinder

Finds different crossroad formations on a set seed
64 stars 19 forks source link

[Suggestion] add distance info #10

Open RandomlyCoded opened 1 year ago

RandomlyCoded commented 1 year ago

i tried something like this

printf("Found a good shape at /tp %i %i %i (%i Blocks away)\n", mainBox->minX, mainBox->minY, mainBox->minZ,
    (int)sqrt((mainBox->minX - regionX) * (mainBox->minX - regionX) + (mainBox->minZ - regionZ) * (mainBox->minZ - regionZ)));

in main.c line 289, seems to kinda work