1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-11 18:40:25 +01:00

Change the diet plan of kittens/cats

Now cats eats rats
This commit is contained in:
Ombridride 2015-01-05 22:49:41 +01:00
parent b6e4b0f7d8
commit 7e0e10fbbe

View File

@ -95,7 +95,7 @@ mobs:register_mob("mobs:kitten", {
speed_normal = 42,
},
follow = "fishing:fish_raw",
follow = "mobs:rat",
view_range = 8,
-- jump = true,
-- step = 0.5,
@ -104,7 +104,7 @@ mobs:register_mob("mobs:kitten", {
on_rightclick = function(self, clicker)
local item = clicker:get_wielded_item()
if item:get_name() == "fishing:fish_raw" then
if item:get_name() == "mobs:rat" then
if not minetest.setting_getbool("creative_mode") then
item:take_item()
clicker:set_wielded_item(item)