mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Make fish buckets work with water mobs
This commit is contained in:
parent
88cdc9baf3
commit
44abef44e1
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue