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:
@ -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
|
||||
|
Reference in New Issue
Block a user