Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/basic_materials_mod/locale/basic_materials_mod.zh_TW.tr b/basic_materials_mod/locale/basic_materials_mod.zh_TW.tr
index 2e8f445..affcb2a 100644
--- a/basic_materials_mod/locale/basic_materials_mod.zh_TW.tr
+++ b/basic_materials_mod/locale/basic_materials_mod.zh_TW.tr
@@ -1,5 +1,7 @@
# textdomain: basic_materials_mod
+
+##[ init.lua ]##
Oil extracted from leaves.=從樹葉提煉的油。
Crafted from 6 leaves. This can be processed into plastic by smelting.=由六塊樹葉合成。經過燒煉後,可以轉化爲塑膠。
Plastic for machine crafting.=用於合成機器的塑膠。
Produced by smelting oil extracts. This is useful in crafting high-tech items.=由提煉油製作而成。可用於合成高科技機器。
diff --git a/basic_materials_mod/locale/template.txt b/basic_materials_mod/locale/template.txt
index 32ca1cc..a28a6b0 100644
--- a/basic_materials_mod/locale/template.txt
+++ b/basic_materials_mod/locale/template.txt
@@ -1,5 +1,7 @@
# textdomain: basic_materials_mod
+
+##[ init.lua ]##
Oil extracted from leaves.=
Crafted from 6 leaves. This can be processed into plastic by smelting.=
Plastic for machine crafting.=
Produced by smelting oil extracts. This is useful in crafting high-tech items.=
diff --git a/cmd_alias/init.lua b/cmd_alias/init.lua
new file mode 100644
index 0000000..deff72d
--- /dev/null
+++ b/cmd_alias/init.lua
@@ -0,0 +1,44 @@
+-- twi_mods/cmd_alias/init.lua
+-- Register command alias
+--[[
+ Copyright © 2024 1F616EMO
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+]]
+
+local S = minetest.get_translator("cmd_alias")
+
+local cmd_alias = {
+ tp = "teleport",
+ doc = "helpform",
+ snp = "snippets",
+}
+
+local function do_alias(from, to)
+ if minetest.registered_chatcommands[to] then
+ local def = table.copy(minetest.registered_chatcommands[to])
+ def.description = S("Alias of /@1: @2", to, def.description or "")
+
+ minetest.register_chatcommand(from, def)
+ end
+end
+
+for from, to in pairs(cmd_alias) do
+ do_alias(from, to)
+end
diff --git a/cmd_alias/locale/cmd_alias.zh_CN.tre b/cmd_alias/locale/cmd_alias.zh_CN.tre
new file mode 100644
index 0000000..632ae66
--- /dev/null
+++ b/cmd_alias/locale/cmd_alias.zh_CN.tre
@@ -0,0 +1,4 @@
+# textdomain: cmd_alias
+
+##[ init.lua ]##
+Alias of /@1: @2=/@1 的别名:@2
diff --git a/cmd_alias/locale/cmd_alias.zh_TW.tr b/cmd_alias/locale/cmd_alias.zh_TW.tr
new file mode 100644
index 0000000..c4e22d3
--- /dev/null
+++ b/cmd_alias/locale/cmd_alias.zh_TW.tr
@@ -0,0 +1,4 @@
+# textdomain: cmd_alias
+
+##[ init.lua ]##
+Alias of /@1: @2=/@1 的別名:@2
diff --git a/cmd_alias/locale/template.txt b/cmd_alias/locale/template.txt
new file mode 100644
index 0000000..b716c16
--- /dev/null
+++ b/cmd_alias/locale/template.txt
@@ -0,0 +1,4 @@
+# textdomain: cmd_alias
+
+##[ init.lua ]##
+Alias of /@1: @2=
diff --git a/cmd_alias/mod.conf b/cmd_alias/mod.conf
new file mode 100644
index 0000000..cf460f9
--- /dev/null
+++ b/cmd_alias/mod.conf
@@ -0,0 +1,2 @@
+name = cmd_alias
+optional_depends = doc, snippets
\ No newline at end of file
diff --git a/static_spawn/locale/template.txt b/static_spawn/locale/template.txt
new file mode 100644
index 0000000..aaa0b9c
--- /dev/null
+++ b/static_spawn/locale/template.txt
@@ -0,0 +1,10 @@
+# textdomain: static_spawn
+
+##[ init.lua ]##
+Teleport to spawnpoint=
+Player object not found.=
+Spawn point not set. Consult moderators to set a proper static spawnpoint.=
+Teleported to Spawn!=
+Override the static spawnpoint=
+Invalid position given.=
+Static spawnpoint set to @1.=

File Metadata

Mime Type
text/x-diff
Expires
Tue, Apr 14, 12:21 PM (4 d, 10 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6e/19/74022441a89c33e13e23e2154617
Default Alt Text
(4 KB)

Event Timeline