mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
added mineclone2 crafts, spanish translation (thanks universales)
This commit is contained in:
parent
45338d6db2
commit
a13eaf700c
4 changed files with 82 additions and 4 deletions
|
@ -7,7 +7,7 @@ https://forum.minetest.net/viewtopic.php?f=9&t=9234
|
||||||
|
|
||||||
Change log:
|
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
|
- 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.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
|
- 0.8 - Teleport pads now have arrows showing direction player will face after use
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
default
|
default?
|
||||||
intllib?
|
intllib?
|
||||||
lucky_block?
|
lucky_block?
|
||||||
|
mcl_core?
|
||||||
|
|
25
init.lua
25
init.lua
|
@ -9,6 +9,8 @@
|
||||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||||
local S, NS = dofile(MP.."/intllib.lua")
|
local S, NS = dofile(MP.."/intllib.lua")
|
||||||
|
|
||||||
|
-- check for MineClone2
|
||||||
|
local mcl = minetest.get_modpath("mcl_core")
|
||||||
|
|
||||||
-- max teleport distance
|
-- max teleport distance
|
||||||
local dist = tonumber(minetest.settings:get("map_generation_limit") or 31000)
|
local dist = tonumber(minetest.settings:get("map_generation_limit") or 31000)
|
||||||
|
@ -271,6 +273,16 @@ minetest.register_node("teleport_potion:potion", {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- teleport potion recipe
|
-- 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({
|
minetest.register_craft({
|
||||||
output = "teleport_potion:potion",
|
output = "teleport_potion:potion",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -279,6 +291,7 @@ minetest.register_craft({
|
||||||
{"", "default:diamond", ""},
|
{"", "default:diamond", ""},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
--- Teleport pad
|
--- Teleport pad
|
||||||
|
@ -405,6 +418,16 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- teleport pad recipe
|
-- 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({
|
minetest.register_craft({
|
||||||
output = "teleport_potion:pad",
|
output = "teleport_potion:pad",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -413,7 +436,7 @@ minetest.register_craft({
|
||||||
{"teleport_potion:potion", "default:glass", "teleport_potion:potion"}
|
{"teleport_potion:potion", "default:glass", "teleport_potion:potion"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- check portal & pad, teleport any entities on top
|
-- check portal & pad, teleport any entities on top
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
|
|
54
locale/es.po
Normal file
54
locale/es.po
Normal 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!"
|
Loading…
Add table
Reference in a new issue