2023-10-11 17:12:47 +00:00
|
|
|
local function create_group_cap (max_level)
|
2023-10-11 07:17:21 +00:00
|
|
|
return {maxlevel = max_level, times={[1] = 1, [2] = 2, [3] = 3}}
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_item(":", {
|
|
|
|
["type"] = "none",
|
|
|
|
inventory_image = "[combine:1x1",
|
|
|
|
tool_capabilities = {
|
|
|
|
groupcaps ={
|
|
|
|
uses = 0,
|
|
|
|
cracky = create_group_cap(3),
|
|
|
|
stoney = create_group_cap(3),
|
|
|
|
dirty = create_group_cap(3),
|
|
|
|
woody = create_group_cap(3),
|
|
|
|
planty = create_group_cap(3),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
node_placement_prediction = "",
|
2023-10-13 07:00:05 +00:00
|
|
|
range = 5.8,
|
2023-10-11 07:17:21 +00:00
|
|
|
})
|