mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Apply disable_repair group
This commit is contained in:
parent
af3785021b
commit
502be105ac
3 changed files with 4 additions and 3 deletions
|
@ -169,6 +169,7 @@ minetest.register_tool("doc_identifier:identifier_solid", {
|
||||||
_doc_items_hidden = false,
|
_doc_items_hidden = false,
|
||||||
tool_capabilities = {},
|
tool_capabilities = {},
|
||||||
range = 10,
|
range = 10,
|
||||||
|
groups = { disable_repair = 1 },
|
||||||
wield_image = "doc_identifier_identifier.png",
|
wield_image = "doc_identifier_identifier.png",
|
||||||
inventory_image = "doc_identifier_identifier.png",
|
inventory_image = "doc_identifier_identifier.png",
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
|
@ -181,7 +182,7 @@ minetest.register_tool("doc_identifier:identifier_liquid", {
|
||||||
_doc_items_create_entry = false,
|
_doc_items_create_entry = false,
|
||||||
tool_capabilities = {},
|
tool_capabilities = {},
|
||||||
range = 10,
|
range = 10,
|
||||||
groups = { not_in_creative_inventory = 1, not_in_craft_guide = 1 },
|
groups = { not_in_creative_inventory = 1, not_in_craft_guide = 1, disable_repair=1 },
|
||||||
wield_image = "doc_identifier_identifier_liquid.png",
|
wield_image = "doc_identifier_identifier_liquid.png",
|
||||||
inventory_image = "doc_identifier_identifier_liquid.png",
|
inventory_image = "doc_identifier_identifier_liquid.png",
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
|
|
|
@ -63,7 +63,7 @@ function watch.register_item(name, image, creative, frame)
|
||||||
_doc_items_longdesc = longdesc,
|
_doc_items_longdesc = longdesc,
|
||||||
_doc_items_usagehelp = usagehelp,
|
_doc_items_usagehelp = usagehelp,
|
||||||
inventory_image = image,
|
inventory_image = image,
|
||||||
groups = {not_in_creative_inventory=g, tool=1, clock=frame},
|
groups = {not_in_creative_inventory=g, tool=1, clock=frame, disable_repair=1},
|
||||||
wield_image = "",
|
wield_image = "",
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
})
|
})
|
||||||
|
|
|
@ -90,7 +90,7 @@ for i,img in ipairs(images) do
|
||||||
inventory_image = img,
|
inventory_image = img,
|
||||||
wield_image = img,
|
wield_image = img,
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {not_in_creative_inventory=inv, compass=i, tool=1}
|
groups = {not_in_creative_inventory=inv, compass=i, tool=1, disable_repair=1}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Help aliases. Makes sure the lookup tool works correctly
|
-- Help aliases. Makes sure the lookup tool works correctly
|
||||||
|
|
Loading…
Reference in a new issue