1
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,
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
}

View File

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

View File

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