Game Stages Conditions

模组

· 作者 Quarris

向数据驱动文件中添加条件谓词

0 本站下载 0 关注 更新于 3 年前

最新 gamestageconditions-1.19.2-3.0.jar · 1.19.2 · Forge

一键开服(送7天)

游戏阶段条件

为战利品表等数据驱动文件添加一个条件谓词,使某些方面能够根据玩家所处的阶段触发。
如果你希望根据玩家的进度生成物品,这在战利品表中非常有用。

推荐搭配 Lootr
需要 Game Stages

stage1、stage2 以及默认情况(未应用任何阶段时)的示例

v 下方图片的文字版复制粘贴辅助文本 v

{  
  "type": "minecraft:chest",  
  "pools": [  
    {  
      "rolls": 1,  
      "entries": [  
        {  
          "type": "minecraft:alternatives",  
          "children": [  
            {  
              "type": "minecraft:loot_table",
              "name": "minecraft:chests/end_city_treasure",
              "conditions": [
                {
                  "condition": "gamestageconditions:stage",
                  "stage": "stage_2"
                }
              ]
            },
            {
              "type": "minecraft:loot_table",
              "name": "minecraft:chests/ruined_portal",
              "conditions": [
                {
                  "condition": "gamestageconditions:stage",
                  "stage": "stage_1"
                }
              ]
            },
            {
              "type": "minecraft:loot_table",
              "name": "minecraft:chests/jungle_temple"
            }
          ]
        }
      ]
    }
  ]
}

从 v1.2 版本开始,还有可以应用于进度(advancements)等的触发器:

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源