Beanstalk award: Make player reach the clouds

master
Wuzzy 2016-11-02 21:31:10 +01:00
parent 7f104ae037
commit 6b5e550048
3 changed files with 8 additions and 6 deletions

View File

@ -62,8 +62,13 @@ minetest.register_node("magicbeans_w:cloud", {
if(minetest.get_modpath("awards") ~= nil) then
awards.register_achievement("magicbeans_w_beanstalk", {
title = S("Sam and the Beanstalk"),
description = S("Plant a magic beanstalk bean."),
description = S("Climb up a magic beanstalk and touch the clouds."),
icon = "magicbeans_w_stem.png",
trigger = {
type = "dig",
node = "magicbeans_w:cloud",
target = 1,
}
})
end
@ -123,9 +128,6 @@ for i in ipairs(magicbeans_w_list) do
minetest.add_item(pointed_thing.above, {name="magicbeans_w:"..bean})
else
-- Grow Beanstalk
if(minetest.get_modpath("awards") ~= nil) then
awards.unlock(placer:get_player_name(), "magicbeans_w_beanstalk")
end
math.randomseed(os.time())
local stalk = pointed_thing.above
stalk.x = stalk.x - 2

View File

@ -10,4 +10,4 @@ Magic super speed = Magisches Supertempo
Magic super jump = Magischer Supersprung
Magic flying = Magischer Flug
Sam and the Beanstalk = Sam und die Bohnenstange
Plant a magic beanstalk bean. = Pflanzen Sie eine magische Bohnenstangenbohne.
Climb up a magic beanstalk and touch the clouds. = Klettern Sie eine magische Bohnenstange hoch und greifen Sie nach den Wolken.

View File

@ -10,4 +10,4 @@ Magic super speed
Magic super jump
Magic flying
Sam and the Beanstalk
Plant a magic beanstalk bean.
Climb up a magic beanstalk and touch the clouds.