From 9c7e537f5235c22af26e37489fedd2e9f41b8a27 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 8 Jan 2021 10:15:40 +0000 Subject: [PATCH] hogs spin on death --- warthog.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/warthog.lua b/warthog.lua index 4c56d5b..f28f744 100644 --- a/warthog.lua +++ b/warthog.lua @@ -50,6 +50,12 @@ mobs:register_mob("mobs_animal:pumba", { walk_end = 100, punch_start = 70, punch_end = 100, + + die_start = 1, -- we dont have a specific death animation so we will + die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and + die_speed = 1, -- have mob rotate when dying. + die_loop = false, + die_rotate = true, }, on_rightclick = function(self, clicker)