1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-05 01:20:22 +02:00

MAJ mobs(redo) mod

Added switch to disable mobs in protected areas
This commit is contained in:
Ombridride
2014-12-15 00:17:29 +01:00
parent 2e3f86aaa2
commit 5163bf9551
7 changed files with 10 additions and 211 deletions

View File

@ -35,7 +35,7 @@ mobs:register_mob("mobs:cow", {
},
-- right-click cow with empty bucket to get milk, then feed 8 wheat to replenish milk
on_rightclick = function(self, clicker)
tool = clicker:get_wielded_item()
local tool = clicker:get_wielded_item()
if tool:get_name() == "bucket:bucket_empty" then
if self.milked then
do return end