Skip to content

Instantly share code, notes, and snippets.

@cornernote
Created October 3, 2012 03:26
Show Gist options
  • Select an option

  • Save cornernote/3824806 to your computer and use it in GitHub Desktop.

Select an option

Save cornernote/3824806 to your computer and use it in GitHub Desktop.
minetest.register_on_generated(function(minp, maxp)
if minp.y < 0 and maxp.y > 0 then
for x = minp.x, maxp.x do
for z = minp.z, maxp.z do
minetest.env:add_node({x = x, y = -1, z = z}, {name="my_mod:bedrock"})
minetest.env:add_node({x = x, y = 0, z = z}, {name="default:dirt_with_grass"})
end
end
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment