Minecraft-like Roblox block game rblx.games/135624152691584
roblox roblox-game rojo
at main 15 lines 391 B view raw
1return function(context, cx, cy, cz) 2 local terrainGen = require( 3 game:GetService("ServerScriptService") 4 :WaitForChild("Actor") 5 :WaitForChild("ServerChunkManager") 6 :WaitForChild("TerrainGen") 7 ) 8 9 local chunk = terrainGen:GetChunk(cx, cy, cz) 10 local count = 0 11 for _ in pairs(chunk.data) do 12 count += 1 13 end 14 return ("Chunk %d,%d,%d has %d blocks"):format(cx, cy, cz, count) 15end