Total Beelocation Advancement

This commit is contained in:
PrairieWind 2022-11-11 15:09:17 -07:00 committed by cora
parent 0aaaa05164
commit bbb908239b
3 changed files with 11 additions and 0 deletions

View file

@ -398,6 +398,14 @@ awards.register_achievement("mcl:bee_our_guest", {
group = "Husbandry", group = "Husbandry",
}) })
awards.register_achievement("mcl:total_beelocation", {
title = S("Total Beelocation"),
description = S("Move a bee nest, with 3 bees inside, using a silk touch enchanted tool."),
icon = "mcl_beehives_bee_nest_front_honey.png",
type = "Advancement",
group = "Husbandry",
})
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.) -- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
if non_pc_achievements then if non_pc_achievements then

View file

@ -89,3 +89,5 @@ Free the End=
Kill the ender dragon. Good Luck!= Kill the ender dragon. Good Luck!=
Bee Our Guest= Bee Our Guest=
Use a campfire to collect a bottle of honey from a beehive without aggrivating the bees inside.= Use a campfire to collect a bottle of honey from a beehive without aggrivating the bees inside.=
Total Beelocation=
Move a bee nest, with 3 bees inside, using a silk touch enchanted tool.=

View file

@ -55,6 +55,7 @@ local dig_hive = function(pos, node, oldmetadata, digger)
elseif beenest then elseif beenest then
if silk_touch or is_creative then if silk_touch or is_creative then
minetest.add_item(pos, "mcl_beehives:bee_nest") minetest.add_item(pos, "mcl_beehives:bee_nest")
awards.unlock(digger:get_player_name(), "mcl:total_beelocation")
else else
mcl_util.deal_damage(digger, 10) mcl_util.deal_damage(digger, 10)
end end