From cd578c7d0eb3418686a8dcc7174862778031dfe6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 9 Oct 2014 02:41:17 +0200 Subject: [PATCH] Add sneak-jumping technique --- mods/tutorial/init.lua | 25 +++++++++++++++++++++++++ mods/tutorial/locale/de.txt | 4 ++++ mods/tutorial/locale/fr.txt | 4 ++++ mods/tutorial/locale/template.txt | 4 ++++ mods/tutorial/textures/tutorial_ruler.png | Bin 0 -> 318 bytes 5 files changed, 37 insertions(+) create mode 100644 mods/tutorial/textures/tutorial_ruler.png diff --git a/mods/tutorial/init.lua b/mods/tutorial/init.lua index e5699b8..a35cfdf 100644 --- a/mods/tutorial/init.lua +++ b/mods/tutorial/init.lua @@ -286,6 +286,12 @@ ladder. You may try out sneaking at this little blocky pyramid.]=] +tutorial.texts.sneakjump = +[=[You can jump slightly higher if you jump while holding the sneak key. + + Sneak: [Shift] + Jump: [Space]]=] + tutorial.texts.hotbar = [[At the bottom of the screen you see 8 squares. This is called the 'hotbar'. The hotbar allows you to quickly access some items from your inventory. @@ -865,6 +871,7 @@ tutorial.register_infosign("runover", "Small Abysses", tutorial.texts.runover) tutorial.register_infosign("jumpup", "Jumping (1)", tutorial.texts.jumpup) tutorial.register_infosign("jumpover", "Jumping (2)", tutorial.texts.jumpover) tutorial.register_infosign("sneak", "Sneaking", tutorial.texts.sneak) +tutorial.register_infosign("sneakjump", "Sneak-jumping", tutorial.texts.sneakjump) tutorial.register_infosign("orientation", "Information about the following tutorial sections", tutorial.texts.orientation) tutorial.register_infosign("hotbar", "Hotbar", tutorial.texts.hotbar) tutorial.register_infosign("eat", "Comestibles and Eating", tutorial.texts.eat) @@ -1000,6 +1007,24 @@ minetest.register_node("tutorial:waterfall_off", { end }) +-- Ruler (used in sneaking section) +minetest.register_node("tutorial:ruler", { + description = S("ruler"), + drawtype = "signlike", + selection_box = { + type = "wallmounted", + wall_side = { -0.5, -0.5, 1/16, -0.4, 0.5, 0.5 }, + }, + walkable = false, + tiles = { "tutorial_ruler.png" }, + inventory_image = "tutorial_ruler.png", + wield_image = "tutorial_ruler.png", + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = true, + groups = {immortal=1, attached_node=1}, +}) + --[[ Tutorial cups, awarded for achievements ]] tutorial.cupnodebox = { diff --git a/mods/tutorial/locale/de.txt b/mods/tutorial/locale/de.txt index 9800713..4c786df 100644 --- a/mods/tutorial/locale/de.txt +++ b/mods/tutorial/locale/de.txt @@ -6,6 +6,7 @@ Small Abysses = Kleine Abgründe Jumping (1) = Springen (1) Jumping (2) = Springen (2) Sneaking = Schleichen +Sneak-jumping = Schleichspringen Information about the following tutorial sections = Information über die folgenden Abschnitte Hotbar = Schnellzugriffsleiste Comestibles and Eating = Lebensmittel und Essen @@ -110,6 +111,9 @@ In this chest you find some comestibles. Comestibles are items which instantly\n # Tutorial text: sneak Sneaking is a special move. As long as you sneak, you walk slower, but you are\nguaranteed to not accidentally fall off the edge of a block. This also allows you to\n"lean over" in a sense.\nTo sneak, keep the sneak key pressed. As soon as you release the sneak key,\nyou walk at normal speed again. Be careful not releasing the sneak key when you\nare at a ledge, you might fall!\n\n Sneak: [Shift]\n\nKeep in mind that the [Shift] key is used for a large number of other things in Minetest.\nSneaking only works when you are not in a liquid, stand on solid ground and are not at a\nladder.\n\nYou may try out sneaking at this little blocky pyramid. = Schleichen ist eine besondere Fortbewegungsmöglichkeit. Solange Sie schleichen,\nwerden Sie langsamer gehen, aber Sie werden auch garantiert nicht aus Versehen\nvon der Kante eines Blocks stürzen. Dies ermöglicht es Ihnen auch, sich\nin gewisser Weise »hinvorzulehnen«.\nUm zu schleichen, halten die die Schleichtaste gedrückt. Sobald Sie sie\nloslassen, laufen Sie wieder mit normaler Geschwindigkeit. Seien Sie achtsam,\ndass Sie die Taste nicht loslassen, wenn sie über einem Abgrund stehen, Sie\nkönnten stürzen!\n\n Schleichen: [Umschalttaste]\n \nBedenken Sie, dass die Umschalttaste für viele verschiedene andere Sachen in\nMinetest verwendet wird. Das Schleichen funktioniert nur, wenn Sie sich nicht\nschwimmen, tauchen oder an einer Leiter sind. Sie können das Schleichen an\ndieser kleinen eckigen Pyramide ausprobieren. +# Tutorial text: sneakjump +You can jump slightly higher if you jump while holding the sneak key.\n\n Sneak: [Shift]\n Jump: [Space] = Sie können etwas höher springen, wenn Sie springen, während Sie die\nSchleichtaste gedrückt halten.\n\n Schleichen: [Umschalt]\n Springen: [Leertaste] + # Tutorial text: jumpover Here is a slightly larger abyss. Luckily, you can also jump just far enough to\ncross a gap of this width. Don't worry, the abyss is not deep enough to hurt you\nwhen you fall down. There are stairs which lead back up here.\n\n Jump: [Space] = Hier ist ein geringfügig größerer Abgrund. Glücklicherweise können Sie gerade so\nweit springen, um eine Lücke dieser Entfernung zu überspringen. Keine Sorge, der\nAbgrund ist nicht tief genug, um Sie zu verletzen, wenn sie stürzen. Es gibt\neine Treppe, die wieder zurückführt.\n\n Springen: [Leertaste] diff --git a/mods/tutorial/locale/fr.txt b/mods/tutorial/locale/fr.txt index bbfb667..33e5f3c 100644 --- a/mods/tutorial/locale/fr.txt +++ b/mods/tutorial/locale/fr.txt @@ -6,6 +6,7 @@ Small Abysses = Petites crevasses Jumping (1) = Sauts (1) Jumping (2) = Sauts (2) Sneaking = Avancer prudemment +Sneak-jumping Information about the following tutorial sections = Information sur les sections du tutoriel qui suivent Hotbar = Barre d'action Comestibles and Eating = Objets comestibles et nourriture @@ -110,6 +111,9 @@ In this chest you find some comestibles. Comestibles are items which instantly\n # Tutorial text: sneak Sneaking is a special move. As long as you sneak, you walk slower, but you are\nguaranteed to not accidentally fall off the edge of a block. This also allows you to\n"lean over" in a sense.\nTo sneak, keep the sneak key pressed. As soon as you release the sneak key,\nyou walk at normal speed again. Be careful not releasing the sneak key when you\nare at a ledge, you might fall!\n\n Sneak: [Shift]\n\nKeep in mind that the [Shift] key is used for a large number of other things in Minetest.\nSneaking only works when you are not in a liquid, stand on solid ground and are not at a\nladder.\n\nYou may try out sneaking at this little blocky pyramid. +# Tutorial text: sneakjump +You can jump slightly higher if you jump while holding the sneak key.\n\n Sneak: [Shift]\n Jump: [Space] + # Tutorial text: jumpover Here is a slightly larger abyss. Luckily, you can also jump just far enough to\ncross a gap of this width. Don't worry, the abyss is not deep enough to hurt you\nwhen you fall down. There are stairs which lead back up here.\n\n Jump: [Space] diff --git a/mods/tutorial/locale/template.txt b/mods/tutorial/locale/template.txt index df1c313..c524c9e 100644 --- a/mods/tutorial/locale/template.txt +++ b/mods/tutorial/locale/template.txt @@ -6,6 +6,7 @@ Small Abysses Jumping (1) Jumping (2) Sneaking +Sneak-jumping Information about the following tutorial sections Hotbar Comestibles and Eating @@ -110,6 +111,9 @@ In this chest you find some comestibles. Comestibles are items which instantly\n # Tutorial text: sneak Sneaking is a special move. As long as you sneak, you walk slower, but you are\nguaranteed to not accidentally fall off the edge of a block. This also allows you to\n"lean over" in a sense.\nTo sneak, keep the sneak key pressed. As soon as you release the sneak key,\nyou walk at normal speed again. Be careful not releasing the sneak key when you\nare at a ledge, you might fall!\n\n Sneak: [Shift]\n\nKeep in mind that the [Shift] key is used for a large number of other things in Minetest.\nSneaking only works when you are not in a liquid stand on solid ground and are not at a\nladder.\n\nYou may try out sneaking at this little blocky pyramid. +# Tutorial text: sneakjump +You can jump slightly higher if you jump while holding the sneak key.\n\n Sneak: [Shift]\n Jump: [Space] + # Tutorial text: jumpover Here is a slightly larger abyss. Luckily, you can also jump just far enough to\ncross a gap of this width. Don't worry, the abyss is not deep enough to hurt you\nwhen you fall down. There are stairs which lead back up here.\n\n Jump: [Space] diff --git a/mods/tutorial/textures/tutorial_ruler.png b/mods/tutorial/textures/tutorial_ruler.png new file mode 100644 index 0000000000000000000000000000000000000000..966edfaff311df89ca57fd259abb4db296ae1db8 GIT binary patch literal 318 zcwPZM0m1%>P)h6!H-hgaGh>nHg4Hje zGf;)8HUPltD*uj?yd$Xg41mX*LKWoBnd|%s>hh zYmnMObA{7&_N`G3O#2493k9~f&O4BP17aQ4^|Q4zgS{o>+WN1u(_bG7-*3Bhvt6rd QoB#j-07*qoM6N<$f;I(-R{#J2 literal 0 HcwPel00001 -- 2.11.4.GIT