mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
fix evil bunny textures
This commit is contained in:
parent
7d15829ef9
commit
9de752d789
@ -75,7 +75,6 @@ mobs:register_mob("mobs_animal:bunny", {
|
|||||||
local staticdata = minetest.serialize({
|
local staticdata = minetest.serialize({
|
||||||
type = "monster",
|
type = "monster",
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
hp_max = 20,
|
|
||||||
health = 20,
|
health = 20,
|
||||||
damage = 5,
|
damage = 5,
|
||||||
run_velocity = 3,
|
run_velocity = 3,
|
||||||
@ -91,6 +90,8 @@ mobs:register_mob("mobs_animal:bunny", {
|
|||||||
local obj = minetest.add_entity(
|
local obj = minetest.add_entity(
|
||||||
self.object:get_pos(), "mobs_animal:bunny", staticdata)
|
self.object:get_pos(), "mobs_animal:bunny", staticdata)
|
||||||
|
|
||||||
|
obj:set_properties({textures = {"mobs_bunny_evil.png"}, hp_max = 20})
|
||||||
|
|
||||||
-- remove old bunny
|
-- remove old bunny
|
||||||
if obj:get_luaentity() then
|
if obj:get_luaentity() then
|
||||||
mobs:remove(self, true)
|
mobs:remove(self, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user