From 31a8ddabb82e6cbac5076969efd2c1421ece2a33 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 8 May 2022 19:20:42 +0000 Subject: [PATCH] minor changed (see long description) This commit makes charged respawn anchors light sources, all respawn anchors can no longer be pushed by pistons and always drop the uncharged one --- mods/ITEMS/mcl_beds/respawn_anchor.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_beds/respawn_anchor.lua b/mods/ITEMS/mcl_beds/respawn_anchor.lua index 8bf6808829..e5901f3af1 100644 --- a/mods/ITEMS/mcl_beds/respawn_anchor.lua +++ b/mods/ITEMS/mcl_beds/respawn_anchor.lua @@ -56,8 +56,9 @@ for i=0,4 do on_rightclick = rightclick, groups = {pickaxey=1, material_stone=1}, _mcl_hardness = 22.5, - sounds= mcl_sounds.node_sound_stone_defaults() + sounds= mcl_sounds.node_sound_stone_defaults(), }) + mesecon.register_mvps_stopper("mcl_beds:respawn_anchor") else minetest.register_node("mcl_beds:respawn_anchor_charged_"..i,{ description=S("Respawn Anchor"), @@ -71,8 +72,16 @@ for i=0,4 do on_rightclick = rightclick, groups = {pickaxey=1, material_stone=1, not_in_creative_inventory=1}, _mcl_hardness = 22.5, - sounds= mcl_sounds.node_sound_stone_defaults() + sounds= mcl_sounds.node_sound_stone_defaults(), + drop = { + max_items = 1, + items = { + {items = {"mcl_beds:respawn_anchor"}}, + } + }, + light_source = (4 * i) - 1 }) + mesecon.register_mvps_stopper("mcl_beds:respawn_anchor_charged_"..i) end end