Conditional Tips

模组

· 作者 kyazuki

Tips 模组的附加组件,允许仅在特定条件下显示提示。

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

需要前置:Tips、Bookshelf

最新 1.0.2 · 1.20.1 · Forge

一键开服(送7天)

Conditional Tips 是 Tips 模组的插件。通过此插件,你可以定义自定义条件,以控制提示应在何时显示。

条件

维度

  • 白名单:
{
  "type": "conditional_tips:conditional_tip",
  "tip_conditions": [
    {
      "dimensions": [
        "minecraft:the_nether",
        "minecraft:the_end"
      ]
    }
  ],
  "tip": {
    "text": "此提示仅在你位于下界或末地时显示。"
  }
}
  • 黑名单:
{
  "type": "conditional_tips:conditional_tip",
  "tip_conditions": [
    {
      "excludeDimensions": [
        "minecraft:overworld"
      ]
    }
  ],
  "tip": {
    "text": "此提示仅在你未处于主世界时显示。"
  }
}

进度

  • 白名单:
{
  "type": "conditional_tips:conditional_tip",
  "tip_conditions": [
    {
      "advancements": [
        "minecraft:story/lava_bucket"
      ]
    }
  ],
  "tip": {
    "text": "此提示仅在你获得“热乎货”(Hot Stuff)进度后显示。"
  }
}
  • 黑名单:
{
  "type": "conditional_tips:conditional_tip",
  "tip_conditions": [
    {
      "unachievedAdvancements": [
        "minecraft:story/lava_bucket"
      ]
    }
  ],
  "tip": {
    "text": "此提示仅在你尚未获得“热乎货”(Hot Stuff)进度时显示。"
  }
}

多重条件

  • 且 (AND)
{
  "type": "conditional_tips:conditional_tip",
  "tip_conditions": [
    {
      "dimensions": [
        "minecraft:the_nether"
      ],
      "advancements": [
        "minecraft:nether/root"
      ]
    }
  ],
  "tip": {
    "text": "此提示仅在你位于下界且已获得该进度时显示。"
  }
}
  • 或 (OR)
{
  "type": "conditional_tips:conditional_tip",
  "tip_conditions": [
    {
      "dimensions": [
        "minecraft:the_nether"
      ]
    },
    {
      "dimensions": [
        "minecraft:the_end"
      ]
    }
  ],
  "tip": {
    "text": "此提示仅在你位于下界或末地时显示。"
  }
}

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源