2017-05-16 04:48:28 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Achievements
|
|
|
|
--
|
2019-08-28 17:31:41 +02:00
|
|
|
local S = minetest.get_translator("mobs")
|
2017-05-16 04:48:28 +02:00
|
|
|
|
|
|
|
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"),
|
2019-09-22 02:52:11 +02:00
|
|
|
description = S("Kill an animal for food."),
|
|
|
|
times = 1,
|
2017-05-16 04:48:28 +02:00
|
|
|
})
|
|
|
|
|
2019-09-03 23:05:19 +02:00
|
|
|
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
|
2017-05-16 04:48:28 +02:00
|
|
|
|
|
|
|
achievements.register_achievement(
|
|
|
|
"ranger",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
title = S("Ranger"),
|
2019-09-02 14:54:29 +02:00
|
|
|
description = S("Capture a tame animal."),
|
2017-05-16 04:48:28 +02:00
|
|
|
times = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
achievements.register_achievement(
|
|
|
|
"best_friends_forever",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
title = S("Best Friends Forever"),
|
2019-09-02 14:54:29 +02:00
|
|
|
description = S("Tame an animal."),
|
2017-05-16 04:48:28 +02:00
|
|
|
times = 1,
|
|
|
|
})
|
2019-09-22 03:37:22 +02:00
|
|
|
|
2019-09-22 14:17:33 +02:00
|
|
|
achievements.register_achievement(
|
2019-09-24 00:24:15 +02:00
|
|
|
"wonder_of_life",
|
2019-09-22 14:17:33 +02:00
|
|
|
{
|
2019-09-24 00:24:15 +02:00
|
|
|
title = S("Wonder of Life"),
|
2019-09-22 14:17:33 +02:00
|
|
|
description = S("Get two animals to breed."),
|
|
|
|
times = 1,
|
|
|
|
})
|
|
|
|
|
2019-09-22 03:37:22 +02:00
|
|
|
achievements.register_achievement(
|
|
|
|
"smalltalk",
|
|
|
|
{
|
|
|
|
title = S("Smalltalk"),
|
2019-09-24 00:24:15 +02:00
|
|
|
description = S("Have a friendly chat with a villager."),
|
2019-09-22 03:37:22 +02:00
|
|
|
times = 1,
|
|
|
|
})
|
2019-09-22 14:17:33 +02:00
|
|
|
|