Advancement JS

Advancement JS 2024-08-12

dadada

成员
UID
3234
注册
2024-08-12
消息
18
金粒
金粒424粒
钻石
钻石0颗
嗨币
嗨币18元
dadada 提交新资源:

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 } =...

阅读关于此资源更多信息...
 
后退
顶部 底部