游戏阶段条件
为战利品表等数据驱动文件添加一个条件谓词,使某些方面能够根据玩家所处的阶段触发。
如果你希望根据玩家的进度生成物品,这在战利品表中非常有用。
推荐搭配 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)等的触发器:
Game Stage Conditions
Adds a condition predicate to be used in data-driven files such as loot tables, so that certain aspects trigger based on the stage that the player has.
Useful for loot tables if you want to generate items for players based on the progress that they are at.
Recommended Lootr
Requires Game Stages
Example for stage1 and stage2 and default (in case no stage is applied)
v Written copy-paste helping text version of the image below 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"
}
]
}
]
}
]
}
Since v1.2 there are also Triggers that you can apply to advancements and such:
下载 Game Stages Conditions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Game Stages Conditions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Game Stages Conditions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Game Stages Conditions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Game Stages Conditions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Game Stages Conditions
下载 Game Stages Conditions
1.19.2 移植版
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个基于构建器的 Minecraft 配置库!
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
一款轻量级模组,允许服务器管理员对抗透视作弊者。
模组
恢复所有账户的游戏聊天访问权限
模组
通过图形界面控制模组加载。适用于需要可选功能的整合包和服务器,也适合不想手动操作文件而希望直接管理模组的极客用户。
模组
实体tick优化
评论 0
登录后参与评分
还没有评论,来抢沙发吧