1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-17 07:50:29 +01:00

Update mobs 02

This commit is contained in:
Ombridride 2015-04-11 21:52:12 +02:00
parent ede187b4fc
commit a55a9f71b4

View File

@ -87,9 +87,7 @@ mobs:register_mob("mobs:npc", {
local pos = self.object:getpos() local pos = self.object:getpos()
pos.y = pos.y + 0.5 pos.y = pos.y + 0.5
minetest.add_item(pos, {name = mobs.npc_drops[math.random(1,#mobs.npc_drops)]}) minetest.add_item(pos, {name = mobs.npc_drops[math.random(1,#mobs.npc_drops)]})
elseif item:get_name() == "default:diamond" then else
self.diamond_count = (self.diamond_count or 0) + 1
if self.diamond_count < 4 then return end
if self.owner == "" then if self.owner == "" then
self.owner = clicker:get_player_name() self.owner = clicker:get_player_name()
else else