Add golden cup and diamond cup as awards
The golden cup is awarded for collecting all gold ingots and thus finishing the tutorial. The diamond cup is awarded for collecting all hidden diamonds.
This commit is contained in:
parent
5f5f257ba4
commit
1a6acf8e90
BIN
mods/default/textures/default_diamond_block.png
Normal file
BIN
mods/default/textures/default_diamond_block.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 442 B |
Binary file not shown.
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 421 B |
@ -765,14 +765,14 @@ tutorial.texts.first_diamond =
|
|||||||
diamonds. Can you find them all? The first diamond may have been easy to collect, but the
|
diamonds. Can you find them all? The first diamond may have been easy to collect, but the
|
||||||
remaining 11 diamonds probably won't be that easy.
|
remaining 11 diamonds probably won't be that easy.
|
||||||
|
|
||||||
There won't be any special event or bonus, however, if you manage to collect all
|
If you manage to find them all, you will be awarded a symbolic prize.]]
|
||||||
diamonds, apart from feeling special, maybe. ;-)]]
|
|
||||||
|
|
||||||
tutorial.texts.last_diamond =
|
tutorial.texts.last_diamond =
|
||||||
[[Congratulations!
|
[[Congratulations!
|
||||||
You have collected all the diamonds of Tutorial World!
|
You have collected all the diamonds of Tutorial World!
|
||||||
|
|
||||||
You can feel special now.]]
|
To recognize this achievement, you have been awarded with a diamond cup. It has been placed in
|
||||||
|
the Good-Bye Room for you.]]
|
||||||
|
|
||||||
|
|
||||||
tutorial.texts.controls =
|
tutorial.texts.controls =
|
||||||
@ -972,6 +972,44 @@ minetest.register_node("tutorial:waterfall_off", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
--[[ Tutorial cups, awarded for achievements ]]
|
||||||
|
tutorial.cupnodebox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.3,-0.5,-0.3,0.3,-0.4,0.3}, -- stand
|
||||||
|
{-0.1,-0.4,-0.1,0.1,0,0.1}, -- handle
|
||||||
|
{-0.3,0,-0.3,0.3,0.1,0.3}, -- cup (lower part)
|
||||||
|
-- the 4 sides of the upper part
|
||||||
|
{-0.2,0.1,-0.3,0.2,0.5,-0.2},
|
||||||
|
{-0.2,0.1,0.2,0.2,0.5,0.3},
|
||||||
|
{-0.3,0.1,-0.3,-0.2,0.5,0.3},
|
||||||
|
{0.2,0.1,-0.3,0.3,0.5,0.3},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
--[[ awarded for collecting all gold ingots ]]
|
||||||
|
minetest.register_node("tutorial:cup_gold", {
|
||||||
|
description = S("golden cup"),
|
||||||
|
tiles = { "default_gold_block.png" },
|
||||||
|
paramtype = "light",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = tutorial.cupnodebox,
|
||||||
|
groups = { immortal = 1 }
|
||||||
|
})
|
||||||
|
|
||||||
|
--[[ awarded for collecting all diamonds ]]
|
||||||
|
minetest.register_node("tutorial:cup_diamond", {
|
||||||
|
description = S("diamond cup"),
|
||||||
|
tiles = { "default_diamond_block.png" },
|
||||||
|
paramtype = "light",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = tutorial.cupnodebox,
|
||||||
|
groups = { immortal = 1 }
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--[[ This function shows a simple dialog window with scrollable text
|
--[[ This function shows a simple dialog window with scrollable text
|
||||||
name: name of the player to show the formspec to
|
name: name of the player to show the formspec to
|
||||||
caption: Caption of the dialog window (not escaped)
|
caption: Caption of the dialog window (not escaped)
|
||||||
@ -1090,6 +1128,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
|
|
||||||
minetest.show_formspec(name, "tutorial_last_gold", formspec)
|
minetest.show_formspec(name, "tutorial_last_gold", formspec)
|
||||||
|
|
||||||
|
minetest.set_node({x=19,y=2,z=72}, {name="tutorial:cup_gold"})
|
||||||
tutorial.state.last_gold = true
|
tutorial.state.last_gold = true
|
||||||
state_changed = true
|
state_changed = true
|
||||||
end
|
end
|
||||||
@ -1115,6 +1154,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
S("You have collected all hidden diamonds!"),
|
S("You have collected all hidden diamonds!"),
|
||||||
tutorial.texts.last_diamond
|
tutorial.texts.last_diamond
|
||||||
)
|
)
|
||||||
|
minetest.set_node({x=19,y=2,z=74}, {name="tutorial:cup_diamond"})
|
||||||
tutorial.state.last_diamond = true
|
tutorial.state.last_diamond = true
|
||||||
state_changed = true
|
state_changed = true
|
||||||
end
|
end
|
||||||
|
@ -143,10 +143,10 @@ At the bottom of the screen you see 8 squares. This is called the 'hotbar'.\nThe
|
|||||||
Careful! These spikes hurt you when you stand inside, so don't walk into them.\nTry to walk around and get the gold ingot.\n\nThey damage you every second you stand in them.\n\nThis is one of the many ways you can get hurt in Minetest.
|
Careful! These spikes hurt you when you stand inside, so don't walk into them.\nTry to walk around and get the gold ingot.\n\nThey damage you every second you stand in them.\n\nThis is one of the many ways you can get hurt in Minetest.
|
||||||
|
|
||||||
# Tutorial text: last_diamond
|
# Tutorial text: last_diamond
|
||||||
Congratulations!\nYou have collected all the diamonds of Tutorial World!\n\nYou can feel special now.
|
Congratulations!\nYou have collected all the diamonds of Tutorial World!\n\nTo recognize this achievement, you have been awarded with a diamond cup. It has been placed in\nthe Good-Bye Room for you.
|
||||||
|
|
||||||
# Tutorial text: first_diamond
|
# Tutorial text: first_diamond
|
||||||
Great, you have found and collected a hidden diamond! In Tutorial World, there are 12 hidden\ndiamonds. Can you find them all? The first diamond may have been easy to collect, but the\nremaining 11 diamonds probably won't be that easy.\n\nThere won't be any special event or bonus, however, if you manage to collect all\ndiamonds, apart from feeling special, maybe. ;-)
|
Great, you have found and collected a hidden diamond! In Tutorial World, there are 12 hidden\ndiamonds. Can you find them all? The first diamond may have been easy to collect, but the\nremaining 11 diamonds probably won't be that easy.\n\nIf you manage to find them all, you will be awarded a symbolic prize.
|
||||||
|
|
||||||
# Tutorial text: dive
|
# Tutorial text: dive
|
||||||
To get to the other side, you have to dive here. Don't worry, the tunnel is not\nlong. But don't stay too long in the water, or else you take damage.\nAt the bottom of the pool lies a gold ingot. Try to get it!\n\n Swim forwards: [W]\n Swim backwards: [S]\n Swim leftwards: [A]\n Swim rightwards: [D]\n Swim upwards: [Space]\n Swim downwards: [Shift]
|
To get to the other side, you have to dive here. Don't worry, the tunnel is not\nlong. But don't stay too long in the water, or else you take damage.\nAt the bottom of the pool lies a gold ingot. Try to get it!\n\n Swim forwards: [W]\n Swim backwards: [S]\n Swim leftwards: [A]\n Swim rightwards: [D]\n Swim upwards: [Space]\n Swim downwards: [Shift]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user