diff --git a/mods/ITEMS/mcl_chests/api.lua b/mods/ITEMS/mcl_chests/api.lua index 2cba8d2d1..3439bc76e 100644 --- a/mods/ITEMS/mcl_chests/api.lua +++ b/mods/ITEMS/mcl_chests/api.lua @@ -576,6 +576,8 @@ function mcl_chests.register_chest(basename, d) names.left.cr = names.right.c names.right.cr = names.left.c + local pickblock = "mcl_chests:" .. d.canonical_basename + local small_textures = d.tiles.small local double_textures = d.tiles.double @@ -710,6 +712,7 @@ function mcl_chests.register_chest(basename, d) on_metadata_inventory_take = log_inventory_take, _mcl_blast_resistance = d.hardness, _mcl_hardness = d.hardness, + _vl_pickblock = pickblock, on_rightclick = function(pos, node, clicker) local topnode = minetest.get_node({ x = pos.x, y = pos.y + 1, z = pos.z }) @@ -792,6 +795,7 @@ function mcl_chests.register_chest(basename, d) on_metadata_inventory_take = log_inventory_take, _mcl_blast_resistance = d.hardness, _mcl_hardness = d.hardness, + _vl_pickblock = pickblock, on_rightclick = function(pos, node, clicker) local pos_other = get_double_container_neighbor_pos(pos, node.param2, "left") @@ -887,6 +891,7 @@ function mcl_chests.register_chest(basename, d) on_metadata_inventory_take = log_inventory_take, _mcl_blast_resistance = d.hardness, _mcl_hardness = d.hardness, + _vl_pickblock = pickblock, on_rightclick = function(pos, node, clicker) local pos_other = get_double_container_neighbor_pos(pos, node.param2, "right") diff --git a/mods/ITEMS/mcl_chests/ender.lua b/mods/ITEMS/mcl_chests/ender.lua index 33e24591f..0795456f6 100644 --- a/mods/ITEMS/mcl_chests/ender.lua +++ b/mods/ITEMS/mcl_chests/ender.lua @@ -97,6 +97,7 @@ minetest.register_node("mcl_chests:ender_chest_small", { _mcl_blast_resistance = 600, _mcl_hardness = 22.5, _mcl_silk_touch_drop = { "mcl_chests:ender_chest" }, + _vl_pickblock = "mcl_chests:ender_chest", on_rotate = mcl_chests.simple_rotate, }) diff --git a/mods/ITEMS/mcl_chests/shulkers.lua b/mods/ITEMS/mcl_chests/shulkers.lua index f7e16dc11..c680c2bd2 100644 --- a/mods/ITEMS/mcl_chests/shulkers.lua +++ b/mods/ITEMS/mcl_chests/shulkers.lua @@ -297,6 +297,7 @@ for color, desc in pairs(boxtypes) do on_rotate = mcl_chests.simple_rotate, _mcl_blast_resistance = 2, _mcl_hardness = 2, + _vl_pickblock = normal_name, _mcl_hoppers_on_try_push = function(pos, hop_pos, hop_inv, hop_list) local meta = minetest.get_meta(pos) local inv = meta:get_inventory()