Sheep drop 1 wool when killed, 2-3 when sheared

This commit is contained in:
tenplus1 2015-03-28 10:32:15 +00:00
parent 339531bb9a
commit ab60737394

View File

@ -85,7 +85,7 @@ mobs:register_mob("mobs:sheep", {
if minetest.registered_items["wool:white"] then if minetest.registered_items["wool:white"] then
local pos = self.object:getpos() local pos = self.object:getpos()
pos.y = pos.y + 0.5 pos.y = pos.y + 0.5
local obj = minetest.add_item(pos, ItemStack("wool:white "..math.random(1,3))) local obj = minetest.add_item(pos, ItemStack("wool:white "..math.random(2,3)))
if obj then if obj then
obj:setvelocity({x=math.random(-1,1), y=5, z=math.random(-1,1)}) obj:setvelocity({x=math.random(-1,1), y=5, z=math.random(-1,1)})
end end