mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 23:40:18 +01:00
Make indentation consistent
This commit is contained in:
parent
be2bc3f0fe
commit
ee8c87470e
12
init.lua
12
init.lua
@ -96,7 +96,9 @@ local function make(pos)
|
||||
minetest.set_node({x=pos.x+ix,y=pos.y+iy,z=pos.z+iz}, {name="default:sandstonebrick"})
|
||||
for yy=1,10-iy,1 do
|
||||
local n = minetest.get_node({x=pos.x+ix,y=pos.y+iy+yy,z=pos.z+iz})
|
||||
if n and n.name and n.name == "default:desert_stone" then minetest.set_node({x=pos.x+ix,y=pos.y+iy+yy,z=pos.z+iz},{name="default:desert_sand"}) end
|
||||
if n and n.name and n.name == "default:desert_stone" then
|
||||
minetest.set_node({x=pos.x+ix,y=pos.y+iy+yy,z=pos.z+iz},{name="default:desert_sand"})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -169,9 +171,13 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
end
|
||||
p2.y = p2.y - 3
|
||||
if p2.y < 0 then p2.y = 0 end
|
||||
if minetest.find_node_near(p2, 25, {"default:water_source"}) ~= nil or minetest.find_node_near(p2, 22, {"default:dirt_with_grass"}) ~= nil or minetest.find_node_near(p2, 52, {"default:sandstonebrick"}) ~= nil then return end
|
||||
if minetest.find_node_near(p2, 25, {"default:water_source"}) ~= nil or minetest.find_node_near(p2, 22, {"default:dirt_with_grass"}) ~= nil or minetest.find_node_near(p2, 52, {"default:sandstonebrick"}) ~= nil then
|
||||
return
|
||||
end
|
||||
|
||||
if math.random(0,10) > 7 then return end
|
||||
if math.random(0,10) > 7 then
|
||||
return
|
||||
end
|
||||
minetest.after(0.8,make,p2)
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user