-
Notifications
You must be signed in to change notification settings - Fork 12
/
modinfo.lua
39 lines (30 loc) · 1.05 KB
/
modinfo.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---@param en string
---@param zh string
---@return string
local function en_zh(en, zh) -- Other languages don't work
return (locale == "zh" or locale == "zhr" or locale == "zht") and zh or en
end
name = "云霄国度-Above the Clouds"
author = "Jerry, Tony, ziwbi, 亚丹, 鲁鲁, 小巫, 每年睡8760小时, 老王"
description = "*本mod仍处于测试阶段*"
version = "1.0.15"
forumthread = ""
api_version = 10
api_version_dst = 10
priority = -1
dst_compatible = true
client_only_mod = false
all_clients_require_mod = true
icon_atlas = "modicon.xml"
icon = "modicon.tex"
server_filter_tags = { "Hamlet", "Porkland", "哈姆雷特", "猪镇" }
folder_name = folder_name or "workshop-"
if not folder_name:find("workshop-") then
name = name .. "-[" .. folder_name .."]"
end
local function Breaker(title_en, title_zh) -- hover does not work, as this item cannot be hovered
return { name = en_zh(title_en, title_zh), options = { {description = "", data = false} }, default = false }
end
configuration_options = {
-- Breaker("Misc", "杂项"),
}