1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-07 18:30:28 +02:00

Begin the mobs update

This commit is contained in:
Ombridride
2015-03-25 17:25:54 +01:00
parent e2a49d6552
commit 8d45d416be
11 changed files with 47 additions and 35 deletions

View File

@ -10,7 +10,7 @@ mobs:register_mob("mobs:chicken", {
-- textures and model
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
mesh = "chicken.x",
mesh = "mobs_chicken.x",
drawtype = "front",
available_textures = {
total = 2,
@ -78,7 +78,7 @@ mobs:register_mob("mobs:chicken", {
end
return tool
else
if clicker:is_player() and clicker:get_inventory() then
if clicker:is_player() and clicker:get_inventory() and clicker:get_inventory():room_for_item("main", "mobs:chicken") then
clicker:get_inventory():add_item("main", "mobs:chicken")
self.object:remove()
end