forked from epCode/extra_mobs
delete cod bucket
This commit is contained in:
parent
0c9764ab74
commit
731b1aeb88
18
cod.lua
18
cod.lua
|
@ -71,24 +71,6 @@ local cod = {
|
|||
fly_in = { mobs_mc.items.water_source, mobs_mc.items.river_water_source },
|
||||
breathes_in_water = true,
|
||||
jump = false,
|
||||
--[[on_rightclick = function(self, clicker)
|
||||
local item = clicker:get_wielded_item()
|
||||
if item:get_name() == mobs_mc.items.bucket and clicker:get_inventory() then
|
||||
local inv = clicker:get_inventory()
|
||||
inv:remove_item("main", mobs_mc.items.bucket)
|
||||
self.object:remove()
|
||||
if inv:room_for_item("main", {name="extra_mobs:cod_bucket"}) then
|
||||
clicker:get_inventory():add_item("main", "extra_mobs:cod_bucket")
|
||||
else
|
||||
local pos = self.object:get_pos()
|
||||
pos.y = pos.y + 0.5
|
||||
minetest.add_item(pos, {name = "extra_mobs:cod_bucket"})
|
||||
end
|
||||
return
|
||||
end
|
||||
mobs:capture_mob(self, clicker, 0, 5, 60, false, nil)
|
||||
end,
|
||||
]]
|
||||
view_range = 16,
|
||||
runaway = true,
|
||||
fear_height = 4,
|
||||
|
|
Loading…
Reference in New Issue