Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created June 29, 2013 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/5892511 to your computer and use it in GitHub Desktop.
Save PilzAdam/5892511 to your computer and use it in GitHub Desktop.
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