From 96f41785b5c4ffdeb74b0fdb23b723221b8a9788 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 6 Dec 2020 08:57:16 +0000 Subject: [PATCH] add death spin to sheep when killed --- sheep.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sheep.lua b/sheep.lua index afc3742..31daab1 100644 --- a/sheep.lua +++ b/sheep.lua @@ -64,6 +64,12 @@ for _, col in ipairs(all_colours) do stand_end = 80, walk_start = 81, walk_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, }, follow = { "farming:wheat", "default:grass_1", "farming:barley", @@ -97,7 +103,7 @@ for _, col in ipairs(all_colours) do --are we feeding? if mobs:feed_tame(self, clicker, 8, true, true) then - --if fed 7x grass or wheat then sheep regrows wool + --if fed 7 times then sheep regrows wool if self.food and self.food > 6 then self.gotten = false