mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-10-04 03:03:05 +02:00
add {no_silktouch=1} group to void pick
This commit is contained in:
parent
538922b594
commit
0944c22861
8
api.txt
8
api.txt
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user