Timber mod: lower position randomization
parent
1a96eb5141
commit
ac8340bbd4
|
@ -23,7 +23,7 @@ minetest.register_on_dignode(function(pos, node)
|
|||
while minetest.env:get_node(np).name==name do
|
||||
minetest.env:remove_node(np)
|
||||
for _, item in ipairs(minetest.get_node_drops(name)) do
|
||||
local tp = {x = np.x + math.random() - 0.5, y = np.y, z = np.z + math.random() - 0.5}
|
||||
local tp = {x = np.x + math.random()/2 - 0.25, y = np.y, z = np.z + math.random()/2 - 0.25}
|
||||
minetest.env:add_item(tp, item)
|
||||
end
|
||||
np={x=np.x, y=np.y+1, z=np.z}
|
||||
|
|
Loading…
Reference in New Issue