« on: March 01, 2018, 04:37:04 PM »
I'm not sure how practical it would be with scripts.Gotcha.
An entire map is 1024x1024x512 blocks = 536 million blocks.
Testing each block in a loop, including script latency is going to take probably 2 millisecs per block = 1 billion ms = 1 million secs = 280 hours.
There are some optimizations you could do such as testing several blocks per loop, and only testing a smaller vertical band on the map (say sea level +-50 blocks) but it's still going to take hours.
You could do it manually in regions of 500,000 and use replace npcblock with say, cherry metal to help you locate where they are/were then replace them with npc blocks and write down the co-ordinates so you know in future. You'd still need to do this 1,072 times.Thank you! I'll try this. Hopefully it works even though my npc blocks are underground (I'll have to replace npc spawns with air or invisible blocks)
That's if they could be at all levels though.
If all your npc blocks are at surface level or -/+ 3 blocks then this would be reduced to 4 or 28 times respectively.