a973bbdbf8
created a few proof-of-concept mechanics. took some textures from minetest game. implemented basic tree growth and stacking in-world crafting.
19 lines
461 B
Lua
19 lines
461 B
Lua
local create_group_cap = function (max_level)
|
|
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 = "",
|
|
})
|