-
Notifications
You must be signed in to change notification settings - Fork 4
/
overwrite.lua
47 lines (43 loc) · 973 Bytes
/
overwrite.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--
-- overwrite nodes and tools
--
minetest.override_item("default:axe_wood", {
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=0,
groupcaps={
}
}
})
minetest.override_item("default:pick_wood", {
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=0,
groupcaps={
}
}
})
local trees = {
"default:tree",
"default:jungletree",
"moretrees:beech_trunk",
"moretrees:apple_tree_trunk",
"moretrees:oak_trunk",
"moretrees:sequoia_trunk",
"moretrees:birch_trunk",
"moretrees:palm_trunk",
"moretrees:spruce_trunk",
"moretrees:pine_trunk",
"moretrees:willow_trunk",
"moretrees:rubber_tree_trunk",
"moretrees:jungletree_trunk",
"moretrees:fir_trunk",
"conifers:trunk",
"conifers:trunk_reversed",
}
for _,name in ipairs(trees) do
if minetest.registered_items[name] then
groups = {tree=1,choppy=2,flammable=2}
minetest.override_item(name, {groups = groups})
end
end