Camas/mods/mobs/achievements.lua

45 lines
1004 B
Lua
Raw Normal View History

--
-- Achievements
--
2019-08-28 17:31:41 +02:00
local S = minetest.get_translator("mobs")
achievements.register_achievement(
"hunter",
{
2019-09-03 19:56:47 +02:00
-- Note: This achievement only counts animals that
-- have at least one food item in their drop table
-- (no matter how unlikely).
2019-08-28 17:31:41 +02:00
title = S("Hunter"),
description = S("Kill 5 animals for food."),
times = 5,
})
local peaceful_only = minetest.settings:get_bool("only_peaceful_mobs") or false
if not peaceful_only then
achievements.register_achievement(
"bomb_has_been_defused",
{
title = S("Bomb has Been Defused!"),
description = S("Kill a mine turtle."),
times = 1,
})
end
achievements.register_achievement(
"ranger",
{
2019-08-28 17:31:41 +02:00
title = S("Ranger"),
description = S("Capture a tame animal."),
times = 1,
})
achievements.register_achievement(
"best_friends_forever",
{
2019-08-28 17:31:41 +02:00
title = S("Best Friends Forever"),
description = S("Tame an animal."),
times = 1,
})