Giter Club home page Giter Club logo

lse_waila's Introduction

LSE_Waila - LSE 高亮显示

简单介绍

Waila 是一个 LSE 高亮显示插件,他集成了许多原版信息的具体化显示,可以更好的方便玩家对方块或生物的信息进行查看

默认自带 47 种信息属性显示

图骗展示

展开

如何正确加载 Waila

所需环境

需要在 Bedrock Dedicated Server(BDS)服务端下装载前置:

  • LeviLamina>=0.12.x
  • legacy-script-engine-quickjs≥0.7.9
  • GMLIB≥0.12.8
  • GMLIB-LegacyRemoteCallApi≥v0.12.8

如何装载

  • 第一种:下载释放文件,解压插件文件夹至 BDS 服务端 plugins 文件夹内,并加载
  • 第二种:使用 Lip 安装,输入命令 lip install github.com/zimuya4153/LSE_Waila

使用方法

游戏内玩家可输入/waila 来设置自己的 Waila 开关及样式
表单
PS:如果装了我们的 UI 包,那活动栏将是一个非常好的选择
温馨提示:"UI 包"是可以被点击的超链接

特别操作

有些方块没有翻译怎么办?

  • 不慌,输入指令/waila 语言 翻译的文本
  • 你可能好奇?语言填啥?可以填以下内容
.lang 文件名称 语言名称
id_ID 印度尼西亚语
da_DK 丹麦语
de_DE 德语
en_GB 英语,英国
en_US 英语,美国
es_ES 西班牙语
es_MX 墨西哥西班牙语
fr_CA 加拿大法语
fr_FR 法语
it_IT 意大利语
hu_HU 匈牙利语
nl_NL 荷兰语
nb_NO 博克马尔语
pl_PL 波兰语
pt_BR 巴西葡萄牙语
pt_PT 葡萄牙语
sk_SK 斯洛伐克语
fi_FI 芬兰语
sv_SE 瑞典语
tr_TR 土耳其语
cs_CZ 捷克语
el_GR 希腊语
bg_BG 保加利亚语
ru_RU 俄语
uk_UA 乌克兰语
ja_JP 日语
zh_CN 中文(简体)
zh_TW 中文(繁体)
ko_KR 韩语

这里是 WuHuiZhang6902(合作者),教你点东西,看到 Config.js 文件没,如果你觉着名称后面的英文 id 显示太长,你可以将以下代码替换第 19 行,那么这 type 就变成短短的整数 id 了

Text: (Player, Block) => I18nAPI.get('plugins.Waila.block.name', [Block.getTranslateName(Player.langCode), Block.id.toString()], Player.langCode)

配置文件介绍

Config.js

注意:如果你没有编程基础,请不要随意修改

module.exports = {
    Config: {
        /** 无论如何都会显示(方块和实体前面) @type {ConfigItem[]} */
        AllBefore: [
            {// Boss栏换行
                Conditions: (Player, PlayerConfig, ViewVector) => PlayerConfig["Mode"] === 0,
                Text: "\n\n",
            },
        ],
        /** 指向为方块时显示 @type {ConfigItem[]} */
        Block: [
            // 省略
        ],
        /** 指向实体时显示 @type {ConfigItem[]} */
        Entity: [
            // 省略
        ],
        /** 无论如何都会显示(方块和实体后面) @type {ConfigItem[]} */
        AllAfter: [
            // 省略
            {// 物品栏上方和actionbar换行(防止领地挡住)
                Conditions: (Player, PlayerConfig, ViewVector) => [2, 3].includes(PlayerConfig["Mode"]),
                Text: "\n",
            },
        ],
        /** Boss栏配置*/
        Bossbar: {
            /** BossBarID @type {Number} */
            ID: -2183124,
            /** 颜色 @type {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8} */
            Color: 0,
            /** 进度值 @type {Number} */
            Percent: 100,
        },
        /** 默认文本 @type {String} */
        DefaultText: "",
        /** 默认显示位置 @type {0 | 1 | 2 | 3 | 4} */
        DefaultMode: 0,
        /** 刷新时间(秒) @type {Number} */
        Hz: 0.1,
        /** 查找最大距离 @type {Number} */
        maxDistance: 10,
    },
};

lse_waila's People

Contributors

wuhuizhang6902 avatar zimuya4153 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.