mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-26 12:53:47 +01:00
Add tool groups (pickaxe, shovel, ...)
parent
1556e6cb3e
commit
1044e96909
@ -166,6 +166,13 @@ These groups are used mostly for informational purposes
|
|||||||
* `plant=1`: Plant or part of a plant
|
* `plant=1`: Plant or part of a plant
|
||||||
* `double_plant`: Part of a double-sized plant. 1 = lower part, 2 = upper part
|
* `double_plant`: Part of a double-sized plant. 1 = lower part, 2 = upper part
|
||||||
|
|
||||||
|
* `pickaxe=1`: Pickaxe
|
||||||
|
* `shovel=1`: Shovel
|
||||||
|
* `axe=1`: Axe
|
||||||
|
* `sword=1`: Sword
|
||||||
|
* `hoe=1`: Hoe (farming tool)
|
||||||
|
* `shears=1`: Shears
|
||||||
|
|
||||||
* `weapon=1`: Item is primarily (!) a weapon
|
* `weapon=1`: Item is primarily (!) a weapon
|
||||||
* `tool=1`: Item is primarily (!) a tool
|
* `tool=1`: Item is primarily (!) a tool
|
||||||
* `craftitem=1`: Item is primarily (!) used for crafting
|
* `craftitem=1`: Item is primarily (!) used for crafting
|
||||||
|
@ -48,7 +48,7 @@ minetest.register_tool("mcl_farming:hoe_wood", {
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
groups = { tool=1 },
|
groups = { tool=1, hoe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
damage_groups = { fleshy = 1, }
|
damage_groups = { fleshy = 1, }
|
||||||
@ -99,7 +99,7 @@ minetest.register_tool("mcl_farming:hoe_stone", {
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
groups = { tool=1 },
|
groups = { tool=1, hoe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.5,
|
full_punch_interval = 0.5,
|
||||||
damage_groups = { fleshy = 1, }
|
damage_groups = { fleshy = 1, }
|
||||||
@ -145,7 +145,7 @@ minetest.register_tool("mcl_farming:hoe_iron", {
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
groups = { tool=1 },
|
groups = { tool=1, hoe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/3
|
-- 1/3
|
||||||
full_punch_interval = 0.33333333,
|
full_punch_interval = 0.33333333,
|
||||||
@ -199,7 +199,7 @@ minetest.register_tool("mcl_farming:hoe_gold", {
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
groups = { tool=1 },
|
groups = { tool=1, hoe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
damage_groups = { fleshy = 1, }
|
damage_groups = { fleshy = 1, }
|
||||||
@ -254,7 +254,7 @@ minetest.register_tool("mcl_farming:hoe_diamond", {
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
groups = { tool=1 },
|
groups = { tool=1, hoe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.25,
|
full_punch_interval = 0.25,
|
||||||
damage_groups = { fleshy = 1, }
|
damage_groups = { fleshy = 1, }
|
||||||
|
@ -64,7 +64,7 @@ minetest.register_tool("mcl_tools:pick_wood", {
|
|||||||
_doc_items_longdesc = pickaxe_longdesc,
|
_doc_items_longdesc = pickaxe_longdesc,
|
||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
inventory_image = "default_tool_woodpick.png",
|
inventory_image = "default_tool_woodpick.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, pickaxe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/1.2
|
-- 1/1.2
|
||||||
full_punch_interval = 0.83333333,
|
full_punch_interval = 0.83333333,
|
||||||
@ -81,7 +81,7 @@ minetest.register_tool("mcl_tools:pick_stone", {
|
|||||||
description = "Stone Pickaxe",
|
description = "Stone Pickaxe",
|
||||||
_doc_items_longdesc = pickaxe_longdesc,
|
_doc_items_longdesc = pickaxe_longdesc,
|
||||||
inventory_image = "default_tool_stonepick.png",
|
inventory_image = "default_tool_stonepick.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, pickaxe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/1.2
|
-- 1/1.2
|
||||||
full_punch_interval = 0.83333333,
|
full_punch_interval = 0.83333333,
|
||||||
@ -98,7 +98,7 @@ minetest.register_tool("mcl_tools:pick_iron", {
|
|||||||
description = "Iron Pickaxe",
|
description = "Iron Pickaxe",
|
||||||
_doc_items_longdesc = pickaxe_longdesc,
|
_doc_items_longdesc = pickaxe_longdesc,
|
||||||
inventory_image = "default_tool_steelpick.png",
|
inventory_image = "default_tool_steelpick.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, pickaxe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/1.2
|
-- 1/1.2
|
||||||
full_punch_interval = 0.83333333,
|
full_punch_interval = 0.83333333,
|
||||||
@ -115,7 +115,7 @@ minetest.register_tool("mcl_tools:pick_gold", {
|
|||||||
description = "Golden Pickaxe",
|
description = "Golden Pickaxe",
|
||||||
_doc_items_longdesc = pickaxe_longdesc,
|
_doc_items_longdesc = pickaxe_longdesc,
|
||||||
inventory_image = "default_tool_goldpick.png",
|
inventory_image = "default_tool_goldpick.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, pickaxe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/1.2
|
-- 1/1.2
|
||||||
full_punch_interval = 0.83333333,
|
full_punch_interval = 0.83333333,
|
||||||
@ -132,7 +132,7 @@ minetest.register_tool("mcl_tools:pick_diamond", {
|
|||||||
description = "Diamond Pickaxe",
|
description = "Diamond Pickaxe",
|
||||||
_doc_items_longdesc = pickaxe_longdesc,
|
_doc_items_longdesc = pickaxe_longdesc,
|
||||||
inventory_image = "default_tool_diamondpick.png",
|
inventory_image = "default_tool_diamondpick.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, pickaxe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/1.2
|
-- 1/1.2
|
||||||
full_punch_interval = 0.83333333,
|
full_punch_interval = 0.83333333,
|
||||||
@ -244,7 +244,7 @@ minetest.register_tool("mcl_tools:shovel_wood", {
|
|||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
inventory_image = "default_tool_woodshovel.png",
|
inventory_image = "default_tool_woodshovel.png",
|
||||||
wield_image = "default_tool_woodshovel.png^[transformR90",
|
wield_image = "default_tool_woodshovel.png^[transformR90",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, shovel=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
@ -263,7 +263,7 @@ minetest.register_tool("mcl_tools:shovel_stone", {
|
|||||||
_doc_items_usagehelp = shovel_use,
|
_doc_items_usagehelp = shovel_use,
|
||||||
inventory_image = "default_tool_stoneshovel.png",
|
inventory_image = "default_tool_stoneshovel.png",
|
||||||
wield_image = "default_tool_stoneshovel.png^[transformR90",
|
wield_image = "default_tool_stoneshovel.png^[transformR90",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, shovel=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
@ -282,7 +282,7 @@ minetest.register_tool("mcl_tools:shovel_iron", {
|
|||||||
_doc_items_usagehelp = shovel_use,
|
_doc_items_usagehelp = shovel_use,
|
||||||
inventory_image = "default_tool_steelshovel.png",
|
inventory_image = "default_tool_steelshovel.png",
|
||||||
wield_image = "default_tool_steelshovel.png^[transformR90",
|
wield_image = "default_tool_steelshovel.png^[transformR90",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, shovel=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
max_drop_level=4,
|
max_drop_level=4,
|
||||||
@ -301,7 +301,7 @@ minetest.register_tool("mcl_tools:shovel_gold", {
|
|||||||
_doc_items_usagehelp = shovel_use,
|
_doc_items_usagehelp = shovel_use,
|
||||||
inventory_image = "default_tool_goldshovel.png",
|
inventory_image = "default_tool_goldshovel.png",
|
||||||
wield_image = "default_tool_goldshovel.png^[transformR90",
|
wield_image = "default_tool_goldshovel.png^[transformR90",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, shovel=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
max_drop_level=2,
|
max_drop_level=2,
|
||||||
@ -320,7 +320,7 @@ minetest.register_tool("mcl_tools:shovel_diamond", {
|
|||||||
_doc_items_usagehelp = shovel_use,
|
_doc_items_usagehelp = shovel_use,
|
||||||
inventory_image = "default_tool_diamondshovel.png",
|
inventory_image = "default_tool_diamondshovel.png",
|
||||||
wield_image = "default_tool_diamondshovel.png^[transformR90",
|
wield_image = "default_tool_diamondshovel.png^[transformR90",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, shovel=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
max_drop_level=5,
|
max_drop_level=5,
|
||||||
@ -340,7 +340,7 @@ minetest.register_tool("mcl_tools:axe_wood", {
|
|||||||
_doc_items_longdesc = axe_longdesc,
|
_doc_items_longdesc = axe_longdesc,
|
||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
inventory_image = "default_tool_woodaxe.png",
|
inventory_image = "default_tool_woodaxe.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, axe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1.25,
|
full_punch_interval = 1.25,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
@ -356,7 +356,7 @@ minetest.register_tool("mcl_tools:axe_stone", {
|
|||||||
description = "Stone Axe",
|
description = "Stone Axe",
|
||||||
_doc_items_longdesc = axe_longdesc,
|
_doc_items_longdesc = axe_longdesc,
|
||||||
inventory_image = "default_tool_stoneaxe.png",
|
inventory_image = "default_tool_stoneaxe.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, axe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1.25,
|
full_punch_interval = 1.25,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
@ -372,7 +372,7 @@ minetest.register_tool("mcl_tools:axe_iron", {
|
|||||||
description = "Iron Axe",
|
description = "Iron Axe",
|
||||||
_doc_items_longdesc = axe_longdesc,
|
_doc_items_longdesc = axe_longdesc,
|
||||||
inventory_image = "default_tool_steelaxe.png",
|
inventory_image = "default_tool_steelaxe.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, axe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
-- 1/0.9
|
-- 1/0.9
|
||||||
full_punch_interval = 1.11111111,
|
full_punch_interval = 1.11111111,
|
||||||
@ -389,7 +389,7 @@ minetest.register_tool("mcl_tools:axe_gold", {
|
|||||||
description = "Golden Axe",
|
description = "Golden Axe",
|
||||||
_doc_items_longdesc = axe_longdesc,
|
_doc_items_longdesc = axe_longdesc,
|
||||||
inventory_image = "default_tool_goldaxe.png",
|
inventory_image = "default_tool_goldaxe.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, axe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=2,
|
max_drop_level=2,
|
||||||
@ -405,7 +405,7 @@ minetest.register_tool("mcl_tools:axe_diamond", {
|
|||||||
description = "Diamond Axe",
|
description = "Diamond Axe",
|
||||||
_doc_items_longdesc = axe_longdesc,
|
_doc_items_longdesc = axe_longdesc,
|
||||||
inventory_image = "default_tool_diamondaxe.png",
|
inventory_image = "default_tool_diamondaxe.png",
|
||||||
groups = { tool=1 },
|
groups = { tool=1, axe=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=5,
|
max_drop_level=5,
|
||||||
@ -514,7 +514,7 @@ minetest.register_tool("mcl_tools:shears", {
|
|||||||
inventory_image = "default_tool_shears.png",
|
inventory_image = "default_tool_shears.png",
|
||||||
wield_image = "default_tool_shears.png",
|
wield_image = "default_tool_shears.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
groups = { tool=1 },
|
groups = { tool=1, shears=1 },
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.5,
|
full_punch_interval = 0.5,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
|
Loading…
Reference in New Issue
Block a user