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

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

by Special_TT · on Modrinth

The Fortune and Looting enchantment levels of the equipment held by the mob are recorded as scoreboard scores to facilitate the definition of loot…

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.9–1.21.11 · Data pack⬇ Download for 1.21.7–1.21.8 · Data pack⬇ Download for 1.21.5–1.21.6 · Data pack⬇ Download for 1.21.9–1.21.11 · Fabric⬇ Download for 1.21.5–1.21.7 · Fabric⬇ Download for 1.21.9–1.21.11 · Forge⬇ Download for 1.21.5–1.21.7 · Forge⬇ Download for 1.21.9–1.21.11 · NeoForge⬇ Download for 1.21.5–1.21.7 · NeoForge⬇ Download for 1.21.9–1.21.11 · Quilt⬇ Download for 1.21.5–1.21.7 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

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│給資料包製作者

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的分數,透過這樣的方式就能將抽獎次數的最大值設為擊殺者持有的武器的搶奪附魔等級。

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more