delete cod bucket

This commit is contained in:
NO11 2021-04-01 16:23:24 +00:00
parent 0c9764ab74
commit 731b1aeb88
1 changed files with 0 additions and 18 deletions

18
cod.lua
View File

@ -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,