mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 15:11:05 +01:00
Make hoes usable as weapons
This commit is contained in:
parent
a2f5cd99ae
commit
4fdfe8d60e
1 changed files with 26 additions and 5 deletions
|
@ -31,7 +31,11 @@ minetest.register_tool("farming:hoe_wood", {
|
|||
end
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1,
|
||||
damage_groups = { fleshy = 1, }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -66,7 +70,11 @@ minetest.register_tool("farming:hoe_stone", {
|
|||
end
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = { fleshy = 1, }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -96,7 +104,12 @@ minetest.register_tool("farming:hoe_steel", {
|
|||
end
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
tool_capabilities = {
|
||||
-- 1/3
|
||||
full_punch_interval = 0.33333333,
|
||||
damage_groups = { fleshy = 1, }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -133,7 +146,11 @@ minetest.register_tool("farming:hoe_gold", {
|
|||
end
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1,
|
||||
damage_groups = { fleshy = 1, }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -172,7 +189,11 @@ minetest.register_tool("farming:hoe_diamond", {
|
|||
end
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.25,
|
||||
damage_groups = { fleshy = 1, }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
Loading…
Reference in a new issue