1
0
Fork 0

make geodes slightly larger, fix positioning

This commit is contained in:
cora 2022-06-24 18:24:41 +02:00
parent 607511518f
commit 7f8a366a7b
1 changed files with 3 additions and 6 deletions

View File

@ -13,8 +13,8 @@ local function set_node_no_bedrock(pos,node)
return minetest.set_node(pos,node) return minetest.set_node(pos,node)
end end
local function makegeode(pos,pr) local function makegeode(pos,def,pr)
local size = pr:next(4,7) local size = pr:next(5,7)
local p1 = vector.offset(pos,-size,-size,-size) local p1 = vector.offset(pos,-size,-size,-size)
local p2 = vector.offset(pos,size,size,size) local p2 = vector.offset(pos,size,size,size)
local calcite = {} local calcite = {}
@ -79,8 +79,5 @@ mcl_structures.register_structure("geode",{
y_max = -24, y_max = -24,
y_min = mcl_vars.mg_overworld_min, y_min = mcl_vars.mg_overworld_min,
y_offset = function(pr) return pr:next(-4,-2) end, y_offset = function(pr) return pr:next(-4,-2) end,
place_func = function(pos,def,pr) place_func = makegeode,
local p = vector.new(pos.x + pr:next(-30,30),pos.y,pos.z + pr:next(-30,30))
return makegeode(p,pr)
end
}) })