From 44abef44e100865189a9964d6f19f8e891644998 Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 8 Jul 2022 11:51:29 +0200 Subject: [PATCH] Make fish buckets work with water mobs --- mods/ENTITIES/mobs_mc/cod.lua | 6 +++--- mods/ENTITIES/mobs_mc/salmon.lua | 6 +++--- mods/ITEMS/mcl_fishing/init.lua | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/cod.lua b/mods/ENTITIES/mobs_mc/cod.lua index 96c9927c5..0d40912dc 100644 --- a/mods/ENTITIES/mobs_mc/cod.lua +++ b/mods/ENTITIES/mobs_mc/cod.lua @@ -101,9 +101,9 @@ local cod = { end, on_rightclick = function(self, clicker) if clicker:get_wielded_item():get_name() == "mcl_buckets:bucket_water" then - --self.object:remove() - --clicker:set_wielded_item("mcl_fishing:bucket_cod") - --awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing") + self.object:remove() + clicker:set_wielded_item("mcl_fishing:bucket_cod") + awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing") end end } diff --git a/mods/ENTITIES/mobs_mc/salmon.lua b/mods/ENTITIES/mobs_mc/salmon.lua index bf730907c..b586918fb 100644 --- a/mods/ENTITIES/mobs_mc/salmon.lua +++ b/mods/ENTITIES/mobs_mc/salmon.lua @@ -58,9 +58,9 @@ local salmon = { fear_height = 4, on_rightclick = function(self, clicker) if clicker:get_wielded_item():get_name() == "mcl_buckets:bucket_water" then - --self.object:remove() - --clicker:set_wielded_item("mcl_fishing:bucket_salmon") - --awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing") + self.object:remove() + clicker:set_wielded_item("mcl_fishing:bucket_salmon") + awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing") end end } diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index 80351e7db..08c039bc3 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -529,10 +529,10 @@ for _, fish in pairs(fish_names) do mcl_buckets.register_liquid({ bucketname = "mcl_fishing:bucket_" .. fish.techname, source_place = function(pos) - minetest.add_entity(pos, "extra_mobs:" .. fish.techname) + minetest.add_entity(pos, "mobs_mc:" .. fish.techname) return "mcl_core:water_source" end, - source_take = {"extra_mobs:" .. fish.techname}, + source_take = {"mobs_mc:" .. fish.techname}, inventory_image = fish.techname .. "_bucket.png", name = S("Bucket of @1", S(fish.name)), longdesc = S("This bucket is filled with water and @1.", S(fish.name)),