跳到正文

Records the Level of Enchantments│記錄附魔的等級

作者:Special_TT

The Fortune and Looting enchantment levels of the equipment held by the mob are recorded as scoreboard scores to facilitate the definition of loot tables.│生物所持有的裝備的時運和搶奪附魔等級被記錄為記分板分數,以方便定義戰利品表。

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

To Users│給使用者

If the data pack you are playing requires this data pack as a prerequisite, just add this data pack to the data pack folder.│如果你所遊玩的數據包需要使用該數據包作為前置,那麼只需將此數據包也加進數據包資料夾即可。

To Data Pack Creator│給資料包製作者

  • This data pack stores the looting enchantment level of the item held in the mob’s main hand to the scoreboard target “looting_level`. If the mob's main hand does not hold an item with the Looting enchantment, it will store 0.│此資料包會將生物主手持有的裝備的搶奪附魔等級儲存到記分板目標`looting_level“,如果主手不持有帶有搶奪附魔的裝備,那麼儲存為0。
  • This data pack stores the Fortune enchantment level of the item held in the mob’s main hand to the scoreboard object “fortune_level`. If the mob's main hand does not hold any item with the Fortune enchantment, it will store 0.│此資料包會將生物主手持有的裝備的時運附魔等級儲存到記分板目標`fortune_level“,如果主手不持有帶有時運附魔的裝備,那麼儲存為0。

Usage Examples│使用範例

{
  "type": "minecraft:entity",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:tag",
          "expand":true,
          "name": "minecraft:bee_loot"
        }
      ],
      "rolls": {
        "type":"minecraft:uniform",
        "min":0,
        "max":2
      }
    },
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:tag",
          "expand":true,
          "name": "minecraft:bee_loot"
        }
      ],
      "rolls": {
        "type":"minecraft:uniform",
        "min":0,
        "max":{
          "type":"score",
          "target":"attacker",
          "score":"looting_level"
        }
      }
    }
  ],
  "random_sequence": "minecraft:entities/bee"
}

The above is the content of one of my data pack. When defining the number of draws for the second draw pool of this loot table, I set it to a min value of 0 and a max value of the attacker’s scoreboard “looting_level`. In this way, the max number of draws can be set to the looting enchantment level of the weapon held by the killer.│上方是我的一個資料包的內容,在定義這個戰利品表的第二個抽獎池的抽獎次數時,將其設定為最小值為0,而最大值為攻擊者記分板`looting_level“的分數,透過這樣的方式就能將抽獎次數的最大值設為擊殺者持有的武器的搶奪附魔等級。

常见问题

Records the Level of Enchantments│記錄附魔的等級 支持哪些 Minecraft 版本?

Records the Level of Enchantments│記錄附魔的等級 支持 Minecraft Java 版 1.21.5–1.21.11,共 7 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Records the Level of Enchantments│記錄附魔的等級 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Special_TT 的其他作品

查看全部 →