- 河南
- 洛阳市 用户
- #1
dadada 提交新资源:
Advancement JS - 通过 KubeJS 配置的不仅仅是进步
阅读关于此资源更多信息...
Advancement JS - 通过 KubeJS 配置的不仅仅是进步
通过 KubeJS 配置的不仅仅是进步
快速示例(适用于最新版本)2.9.3)
启动脚本
// Create a custom trigger
AdvJSEvents.trigger(event => {
event.create("advjs:get_adv")
// How many matches you defined, how many tests you should put in
// In this example, we defined 2 matches
.match(advancement => advancement.getId() == "minecraft:story/smelt_iron")
.match(playerName => playerName == "Dev")
})
服务器脚本
AdvJSEvents.advancement(event => {
const { PREDICATE, TRIGGER } =...
阅读关于此资源更多信息...