Created
June 29, 2013 20:18
-
-
Save PilzAdam/5892511 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
minetest.register_on_generated(function(minp, maxp, seed) | |
if maxp.y > NETHER_DEPTH then | |
return | |
end | |
local vm, data = minetest.get_mapgen_object("voxelmanip") | |
--[[for i,d in ipairs(data) do | |
if d == ids.air or d == ids.stone_with_coal or d == ids.stone_with_iron then | |
-- data[i] = ids.air | |
elseif d == ids.stone_with_mese or d == ids.stone_with_diamond then | |
-- data[i] = ids.lava_source | |
elseif d == ids.stone_with_gold then | |
-- data[i] = ids.glowstone | |
elseif d == ids.stone_with_copper or d == ids.gravel or d == ids.dirt or d == ids.sand then | |
-- data[i] = ids.nethersand | |
elseif d == ids.cobble or d == ids.mossycobble or d == ids.stair_cobble then | |
-- data[i] = ids.netherbrick | |
else | |
-- data[i] = ids.netherrack | |
end | |
end]] | |
vm:set_data(data) | |
vm:write_to_map() | |
--vm:update_liquids() | |
--vm:calc_lighting(minp, maxp) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment