8d7 < stepheight = 0.6, 24c23,25 < sounds = {}, --- > sounds = { > random = "mobs_bunny", > }, 29d29 < runaway_from = {"mobs_animal:pumba", "player"}, 31d30 < jump_height = 6, 33,34c32 < {name = "mobs:rabbit_raw", chance = 1, min = 1, max = 1}, < {name = "mobs:rabbit_hide", chance = 1, min = 1, max = 1}, --- > {name = "mobs:meat_raw", chance = 1, min = 1, max = 1}, 66c64 < if not mobs.is_creative(clicker:get_player_name()) then --- > if not minetest.setting_getbool("creative_mode") then 80,81c78,80 < end, < on_spawn = function(self) --- > > -- Azure > if item:get_name() == "dye:blue" then 83c82,85 < local pos = self.object:get_pos() ; pos.y = pos.y - 1 --- > if not minetest.setting_getbool("creative_mode") then > item:take_item() > clicker:set_wielded_item(item) > end 85,100c87,94 < -- white snowy bunny < if minetest.find_node_near(pos, 1, < {"default:snow", "default:snowblock", "default:dirt_with_snow"}) then < self.base_texture = {"mobs_bunny_white.png"} < self.object:set_properties({textures = self.base_texture}) < -- brown desert bunny < elseif minetest.find_node_near(pos, 1, < {"default:desert_sand", "default:desert_stone"}) then < self.base_texture = {"mobs_bunny_brown.png"} < self.object:set_properties({textures = self.base_texture}) < -- grey stone bunny < elseif minetest.find_node_near(pos, 1, < {"default:stone", "default:gravel"}) then < self.base_texture = {"mobs_bunny_grey.png"} < self.object:set_properties({textures = self.base_texture}) < end --- > self.object:set_properties({ > textures = {"mobs_bunny_azure.png"}, > sounds = { > random = "mobs_bunny_azure", > }, > }) > > self.health = 1 102c96,97 < return true -- run only once, false/nil runs every activation --- > return > end 103a99 > 118d113 < neighbors = {"group:grass"}, 120,122c115,116 < chance = 5000, -- 15000 < min_height = 5, < max_height = 200, --- > chance = 15000, > min_height = 0, 131,176d124 < < < -- raw rabbit < minetest.register_craftitem(":mobs:rabbit_raw", { < description = S("Raw Rabbit"), < inventory_image = "mobs_rabbit_raw.png", < on_use = minetest.item_eat(3), < groups = {food_meat_raw = 1, food_rabbit_raw = 1, flammable = 2}, < }) < < -- cooked rabbit < minetest.register_craftitem(":mobs:rabbit_cooked", { < description = S("Cooked Rabbit"), < inventory_image = "mobs_rabbit_cooked.png", < on_use = minetest.item_eat(5), < groups = {food_meat = 1, food_rabbit = 1, flammable = 2}, < }) < < minetest.register_craft({ < type = "cooking", < output = "mobs:rabbit_cooked", < recipe = "mobs:rabbit_raw", < cooktime = 5, < }) < < -- rabbit hide < minetest.register_craftitem(":mobs:rabbit_hide", { < description = S("Rabbit Hide"), < inventory_image = "mobs_rabbit_hide.png", < groups = {flammable = 2}, < }) < < minetest.register_craft({ < type = "fuel", < recipe = "mobs:rabbit_hide", < burntime = 2, < }) < < minetest.register_craft({ < output = "mobs:leather", < type = "shapeless", < recipe = { < "mobs:rabbit_hide", "mobs:rabbit_hide", < "mobs:rabbit_hide", "mobs:rabbit_hide" < } < })