Add tool groups (pickaxe, shovel, ...)
This commit is contained in:
parent
1556e6cb3e
commit
1044e96909
3 changed files with 28 additions and 21 deletions
|
@ -48,7 +48,7 @@ minetest.register_tool("mcl_farming:hoe_wood", {
|
|||
return itemstack
|
||||
end
|
||||
end,
|
||||
groups = { tool=1 },
|
||||
groups = { tool=1, hoe=1 },
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1,
|
||||
damage_groups = { fleshy = 1, }
|
||||
|
@ -99,7 +99,7 @@ minetest.register_tool("mcl_farming:hoe_stone", {
|
|||
return itemstack
|
||||
end
|
||||
end,
|
||||
groups = { tool=1 },
|
||||
groups = { tool=1, hoe=1 },
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = { fleshy = 1, }
|
||||
|
@ -145,7 +145,7 @@ minetest.register_tool("mcl_farming:hoe_iron", {
|
|||
return itemstack
|
||||
end
|
||||
end,
|
||||
groups = { tool=1 },
|
||||
groups = { tool=1, hoe=1 },
|
||||
tool_capabilities = {
|
||||
-- 1/3
|
||||
full_punch_interval = 0.33333333,
|
||||
|
@ -199,7 +199,7 @@ minetest.register_tool("mcl_farming:hoe_gold", {
|
|||
return itemstack
|
||||
end
|
||||
end,
|
||||
groups = { tool=1 },
|
||||
groups = { tool=1, hoe=1 },
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1,
|
||||
damage_groups = { fleshy = 1, }
|
||||
|
@ -254,7 +254,7 @@ minetest.register_tool("mcl_farming:hoe_diamond", {
|
|||
return itemstack
|
||||
end
|
||||
end,
|
||||
groups = { tool=1 },
|
||||
groups = { tool=1, hoe=1 },
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.25,
|
||||
damage_groups = { fleshy = 1, }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue