0
0
Fork 0

Make fish buckets work with water mobs

This commit is contained in:
cora 2022-07-08 11:51:29 +02:00
parent 88cdc9baf3
commit 44abef44e1
3 changed files with 8 additions and 8 deletions

View File

@ -101,9 +101,9 @@ local cod = {
end, end,
on_rightclick = function(self, clicker) on_rightclick = function(self, clicker)
if clicker:get_wielded_item():get_name() == "mcl_buckets:bucket_water" then if clicker:get_wielded_item():get_name() == "mcl_buckets:bucket_water" then
--self.object:remove() self.object:remove()
--clicker:set_wielded_item("mcl_fishing:bucket_cod") clicker:set_wielded_item("mcl_fishing:bucket_cod")
--awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing") awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing")
end end
end end
} }

View File

@ -58,9 +58,9 @@ local salmon = {
fear_height = 4, fear_height = 4,
on_rightclick = function(self, clicker) on_rightclick = function(self, clicker)
if clicker:get_wielded_item():get_name() == "mcl_buckets:bucket_water" then if clicker:get_wielded_item():get_name() == "mcl_buckets:bucket_water" then
--self.object:remove() self.object:remove()
--clicker:set_wielded_item("mcl_fishing:bucket_salmon") clicker:set_wielded_item("mcl_fishing:bucket_salmon")
--awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing") awards.unlock(clicker:get_player_name(), "mcl:tacticalFishing")
end end
end end
} }

View File

@ -529,10 +529,10 @@ for _, fish in pairs(fish_names) do
mcl_buckets.register_liquid({ mcl_buckets.register_liquid({
bucketname = "mcl_fishing:bucket_" .. fish.techname, bucketname = "mcl_fishing:bucket_" .. fish.techname,
source_place = function(pos) 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" return "mcl_core:water_source"
end, end,
source_take = {"extra_mobs:" .. fish.techname}, source_take = {"mobs_mc:" .. fish.techname},
inventory_image = fish.techname .. "_bucket.png", inventory_image = fish.techname .. "_bucket.png",
name = S("Bucket of @1", S(fish.name)), name = S("Bucket of @1", S(fish.name)),
longdesc = S("This bucket is filled with water and @1.", S(fish.name)), longdesc = S("This bucket is filled with water and @1.", S(fish.name)),