From a13eaf700cbd60165e61809de9a2060dff3d027e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 26 Mar 2020 08:47:29 +0000 Subject: [PATCH] added mineclone2 crafts, spanish translation (thanks universales) --- README.md | 2 +- depends.txt | 5 +++-- init.lua | 25 +++++++++++++++++++++++- locale/es.po | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 locale/es.po diff --git a/README.md b/README.md index acf46cf..5be82d0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ https://forum.minetest.net/viewtopic.php?f=9&t=9234 Change log: -- 1.1 - Using 0.4.16+ code changes, can only teleport players now +- 1.1 - Using 0.4.16+ code changes, can only teleport players now, added MineClone2 crafts and spanish translation - 1.0 - Added changes by maybe_dragon to bookmark teleport destination before using pads and potions - 0.9 - Update to newer functions, requires Minetest 0.4.16 to work. - 0.8 - Teleport pads now have arrows showing direction player will face after use diff --git a/depends.txt b/depends.txt index 8a8d2a2..f06ddbb 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,4 @@ -default +default? intllib? -lucky_block? \ No newline at end of file +lucky_block? +mcl_core? diff --git a/init.lua b/init.lua index ce4ef93..899be9c 100644 --- a/init.lua +++ b/init.lua @@ -9,6 +9,8 @@ local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") +-- check for MineClone2 +local mcl = minetest.get_modpath("mcl_core") -- max teleport distance local dist = tonumber(minetest.settings:get("map_generation_limit") or 31000) @@ -271,6 +273,16 @@ minetest.register_node("teleport_potion:potion", { }) -- teleport potion recipe +if mcl then +minetest.register_craft({ + output = "teleport_potion:potion", + recipe = { + {"", "mcl_core:diamond", ""}, + {"mcl_core:diamond", "mcl_potions:glass_bottle", "mcl_core:diamond"}, + {"", "mcl_core:diamond", ""}, + }, +}) +else minetest.register_craft({ output = "teleport_potion:potion", recipe = { @@ -279,6 +291,7 @@ minetest.register_craft({ {"", "default:diamond", ""}, }, }) +end -------------------------------------------------------------------------------- --- Teleport pad @@ -405,6 +418,16 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end) -- teleport pad recipe +if mcl then +minetest.register_craft({ + output = "teleport_potion:pad", + recipe = { + {"teleport_potion:potion", "mcl_core:glass", "teleport_potion:potion"}, + {"mcl_core:glass", "mesecons:redstone", "mcl_core:glass"}, + {"teleport_potion:potion", "mcl_core:glass", "teleport_potion:potion"}, + }, +}) +else minetest.register_craft({ output = "teleport_potion:pad", recipe = { @@ -413,7 +436,7 @@ minetest.register_craft({ {"teleport_potion:potion", "default:glass", "teleport_potion:potion"} } }) - +end -- check portal & pad, teleport any entities on top minetest.register_abm({ diff --git a/locale/es.po b/locale/es.po new file mode 100644 index 0000000..ec65fcf --- /dev/null +++ b/locale/es.po @@ -0,0 +1,54 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-14 08:34+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: init.lua +msgid "Teleport Potion (place and right-click to enchant location)" +msgstr "Poción de teletransporte (colocar y hacer clic derecho para encantar la ubicación)" + +#: init.lua +msgid "Enter teleport coords (e.g. 200,20,-200)" +msgstr "Inserta las coordenadas del teletransporte (Por ejemplo, 200,20, -200)" + +#: init.lua +msgid "Right-click to enchant teleport location" +msgstr "Haga clic derecho para encantar la ubicación de teletransporte" + +#: init.lua +msgid "Potion failed!" +msgstr "¡Poción fallida!" + +#: init.lua +msgid "Teleport Pad (place and right-click to enchant location)" +msgstr "Teleport Pad (Colocalo y haz clic derecho para encantar la ubicación)" + +#: init.lua +msgid "Enter teleport coords (e.g. 200,20,-200,Home)" +msgstr "Inserte las coordenadas del teletransporte (por ejemplo, 200,20, -200, Inicio)" + +#: init.lua +msgid "Teleport to @1" +msgstr "Teletransportarse a @1" + +#: init.lua +msgid "Pad Active (@1,@2,@3)" +msgstr "Pad activo" + +#: init.lua +msgid "Teleport Pad coordinates failed!" +msgstr "¡Coordenadas del Teleport Pad erroneas!" \ No newline at end of file