From aabecb3595bdfb8440b076462b76cefbdfa324c8 Mon Sep 17 00:00:00 2001 From: MrIbby Date: Wed, 1 Jun 2016 11:13:13 -0700 Subject: [PATCH] Add awards achievement --- depends.txt | 1 + init.lua | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/depends.txt b/depends.txt index 4214628..c53185f 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,5 @@ bucket farming +awards? food? intllib? diff --git a/init.lua b/init.lua index 8b15860..1453620 100644 --- a/init.lua +++ b/init.lua @@ -136,3 +136,17 @@ if throwable_cake then end, }) end + +-- CAKE AWARD -- +if minetest.get_modpath("awards") then + awards.register_achievement("award_the_lie", { + title = S("The Lie"), + description = S("Craft a cake"), + icon = "cake.png", + trigger = { + type = "craft", + item = "cake:cake", + target = 1 + } + }) +end