Brutes Drop Scraps

Brutes Drop Scraps

Mod and data pack

Piglin Brutes have a chance of dropping Netherite Scraps.

Server Game Mechanics Mobs

10.8k downloads
78 followers
Createda year ago
Updateda year ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Piglin Brutes have a chance of dropping Netherite Scraps.

How to change drop rate

Open the datapack, then go data/minecraft/loot_tables/entities and open the piglin_brute json file. This is what's written in the json file:

{
  "type": "minecraft:entity",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 1,
                "min": 0
              },
              "function": "minecraft:set_count"
            },
            {
              "count": {
                "type": "minecraft:uniform",
                "max": 0.2,
                "min": 0
              },
              "function": "minecraft:looting_enchant"
            }
          ],
          "name": "minecraft:netherite_scrap"
        }
      ],
      "rolls": 1.0
    }
  ]
}

Above the "function": "minecraft:set_count" is the normal drop rate without the Looting enchantment. While above the "function": "minecraft:looting_enchant" is the drop rate with the Looting enchantment.

"max" dictates the maximum drop rate of Scraps dropped by Brutes, while the "min" dictates the minimum drop rate of Scraps dropped by Brutes. To change the drop rate, you just have to change the number to an higher or lower number.

For example... changing "max": 1 to "max": 1.1 or higher increases the maximum drop rate, while changing it to "max": 0.9 or lower decreases the maximum drop rate. "min" works the same, but for the minimum drop rate.


Project members

5imModding

Owner


Technical information

License
GPL-3.0-only
Project ID