add {no_silktouch=1} group to void pick

This commit is contained in:
tenplus1 2022-11-05 16:24:19 +00:00
parent 538922b594
commit 0944c22861
2 changed files with 11 additions and 2 deletions

@ -351,6 +351,14 @@ end
{"cus", punchy, {damage = 5} }
Void Pick
---------
This is a special item that can be dropped and allows the user to dig cracky grouped
blocks as they are e.g. stone with copper is picked up as stone with copper, not copper
ore. Adding {no_silktouch=1} group to a block prevents it from being dug in this way.
Final Words
===========

@ -329,7 +329,8 @@ if not lucky_block.mod_mcl then
if nn == "default:furnace_active"
or nn:find("xpanes:")
or nn:find("door")
or minetest.get_item_group(nn, "cracky") == 0 then
or minetest.get_item_group(nn, "cracky") == 0
or minetest.get_item_group(nn, "no_silktouch") == 1 then
return old_handle_node_drops(pos, drops, digger)
end
@ -337,7 +338,7 @@ if not lucky_block.mod_mcl then
end
minetest.register_tool("lucky_block:pick_void", {
description = "Void pick (Soft Touch)",
description = "Void pick (Silk Touch)",
inventory_image = "lucky_void_pick.png",
wield_image = "lucky_void_pick.png^[transformR90",
tool_capabilities = {