記錄附魔的等級 [RLFLE]Records the Level of Enchantments

記錄附魔的等級 [RLFLE]Records the Level of Enchantments

Mod and data pack

生物所持有的裝備的時運和搶奪附魔等級被記錄為記分板分數,以方便定義戰利品表。 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.

Server EquipmentLibrary Mobs

8 downloads
0 followers
Follow Save

給使用者 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.

如果你要卸載使用此數據包作為前置的數據包,請在移除該數據包檔案之後輸入此指令:/data remove storage minecraft:ender_dragon_loot loot_table_list,隨後使用/reload重新加載。 If you are uninstalling a data pack that uses this data pack as a prerequisite, enter this command after removing the data pack archive: /data remove storage minecraft:ender_dragon_loot loot_table_list and then reload it with /reload.

給數據包製作者 To Data Pack Creator

  • 此數據包會將生物主手持有的裝備的搶奪附魔等級儲存到記分板目標looting_level,如果主手不持有帶有搶奪附魔的裝備,那麼儲存為0。 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.
  • 此數據包會將生物主手持有的裝備的時運附魔等級儲存到記分板目標fortune_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.

使用範例

{
  "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"
}

上方是我的一個數據包的內容,在定義這個戰利品表的第二個抽獎池的抽獎次數時,將其設定為最小值為0,而最大值為攻擊者記分板looting_level的分數,透過這樣的方式就能將抽獎次數的最大值設為擊殺者持有的武器的搶奪附魔等級。 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.

更多 More

點我查看更多我的作品。 Click me to see more of my works.


Project members

Special_TT

Member

Details

Licensed MIT
Published a day ago
Updated a day ago