Yes OreCF.X - Origin.X is a minus so i can get the right amount of blocks from the first one if that would not be the case on like a cordinate X 6000 i would have 1000 blocks which would not be the case if the origin X is at 5000
Then, your block place will be 47 blocks wide (23 solid blocks by positive and negative axis + zero block = 47 blocks on line. (and X==8 or Z==8 will nullify first 2 checks). I think now that you just expect diffirent block bounds.
I just want to make it so after 8 blocks on any side it will turn into air.
local X = math.abs(OreCF.X-Origin.X)/6
local Z = math.abs(OreCF.Z-Origin.Z)/6
if X >= 8 or Z >= 8 then return end
This should prevent blocks from spawning after 8th block (including 8th)
Can you show me dot where Origin (0, 0) is?
I mined 8 blocks from the origin
and met air. IS that what you want or not???
Yes i want a formula that can do that.
what wrong with this then??? Code checks if coordinate bigger than 8.
So, it’s have 8 blocks on one side, and not 8 on another?
what wrong on this image then? I can’t understand what’s incorrect, your images looks good.
This is the normal one
And this one is yours