From 3da7eba14871d1310429a15b80fcb39b6f777f1b Mon Sep 17 00:00:00 2001 From: kilbith Date: Mon, 28 Sep 2015 15:11:32 +0200 Subject: [PATCH] Inflict a little damage when opening the hive formspec --- hive.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hive.lua b/hive.lua index 7256239..e5666b0 100644 --- a/hive.lua +++ b/hive.lua @@ -33,6 +33,10 @@ xdecor.register("hive", { local health = puncher:get_hp() puncher:set_hp(health - 4) end, + on_rightclick = function(_, _, clicker) + local health = clicker:get_hp() + clicker:set_hp(health - 1) + end, allow_metadata_inventory_put = function(_, listname, _, stack, _) if listname == "honey" then return 0 end return stack:get_count()