Compare commits

...

2 Commits

Author SHA1 Message Date
Pascal Abresch 9e665ce2f4 fix hatchet, make grass easier to remove 2022-04-19 13:58:41 +02:00
Pascal Abresch 27e17c96a0 fix tree gen 2022-04-19 13:58:00 +02:00
4 changed files with 16 additions and 6 deletions

View File

@ -13,7 +13,7 @@ minetest.register_tool(NAME .. ":hatchet", {
[2] = 3.2,
[3] = 5,
},
maxlevel = 3
maxlevel = 3
},
solids = {
times = {
@ -24,6 +24,14 @@ minetest.register_tool(NAME .. ":hatchet", {
},
maxlevel = 4
},
semisolids = {
times = {
[1] = 2,
[2] = 4,
[3] = 5
},
maxlevel = 3
}
}
}
})
@ -49,6 +57,6 @@ minetest.register_craft({
recipe = {
NAME .. ":rope",
FLORA .. ":stick",
NAME .. ":rock_node"
NAME .. ":rock"
}
})

View File

@ -1,7 +1,7 @@
local NAME = minetest.get_current_modname()
local PATH = minetest.get_modpath(NAME) .."/lua/"
--local MODFILES = minetest.get_dir_list(PATH, false)
local MODFILES = { "bush.lua", "flax.lua", "grass.lua", "leaf.lua", "stick.lua", "tree.lua", "trunk.lua","sapling.lua" }
local MODFILES = { "bush.lua", "flax.lua", "grass.lua", "leaf.lua", "stick.lua", "trunk.lua", "sapling.lua", "tree.lua" }
spacenum = 20 - string.len(NAME)
-- This assumes that the lua/ subdir contains lua code only.

View File

@ -61,9 +61,10 @@ end
local make_trees = function(min_pos, max_pos, _)
local notification = minetest.get_mapgen_object("gennotify")
local saplings = notification["decoration#" .. sap_id]
minetest.debug(dump2(saplings))
if saplings == nil then return end
for i = 1, #saplings do
make_tree(saplings[i]["x"], saplings[i]["y"], saplings[i]["z"])
orion.make_tree(saplings[i]["x"], saplings[i]["y"], saplings[i]["z"])
end
end

View File

@ -6,9 +6,10 @@ minetest.override_item("", {
groupcaps = {
flora = {
times = {
[1] = 0.4
[1] = 0.4,
[2] = 0.9
},
maxlevel = 1
maxlevel = 2
},
semisolids = {
times = {