Add the rest of the game.
This commit is contained in:
parent
dd73665a23
commit
9096c33a48
49 changed files with 855 additions and 57 deletions
|
|
@ -1,5 +1,6 @@
|
|||
local vm_data = {}
|
||||
|
||||
local c_air = minetest.get_content_id("air")
|
||||
local c_stone = minetest.get_content_id("artifact:stone")
|
||||
|
||||
-- Singlenode, but the single node is stone.
|
||||
|
|
@ -11,9 +12,12 @@ minetest.register_on_generated(function(vm, minp, maxp)
|
|||
|
||||
vm:get_data(vm_data)
|
||||
|
||||
for i in va:iterp(minp, maxp) do
|
||||
vm_data[i] = c_stone
|
||||
end
|
||||
-- If we load a giant schematic initially, the parts outside view range get eaten by mapgen.
|
||||
-- for i in va:iterp(minp, maxp) do
|
||||
-- if vm_data[i] == c_air then
|
||||
-- vm_data[i] = c_stone
|
||||
-- end
|
||||
-- end
|
||||
|
||||
vm:set_data(vm_data)
|
||||
vm:calc_lighting()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue