Created
September 16, 2012 10:08
-
-
Save Jordach/3731863 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local grass_gen = function( minp, maxp ) | |
if maxp.y < 40 then | |
for lx = minp.x, maxp.x do | |
for ly = minp.y, maxp.y do | |
for lz = minp.z, maxp.z do | |
local p = { x = lx, y = ly, z = lz } | |
local n = minetest.env:get_node( p ) | |
minetest.env:add_node( p, { name = "default:dirt_with_grass" } ) | |
end | |
end | |
end | |
end | |
end | |
end | |
minetest.register_on_generated( grass_gen ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment