added mineclone2 crafts, spanish translation (thanks universales)

This commit is contained in:
TenPlus1 2020-03-26 08:47:29 +00:00
parent 45338d6db2
commit a13eaf700c
4 changed files with 82 additions and 4 deletions

View file

@ -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

View file

@ -1,3 +1,4 @@
default
default?
intllib?
lucky_block?
lucky_block?
mcl_core?

View file

@ -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({

54
locale/es.po Normal file
View file

@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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!"