Mojira Archive
MC-266874

Modifying the Fishing treasure.json file to add "weight" Doesn't Work.

While editing the "treasure.json" file and adding a "weight" value to change the frequency of items appearing (I prefer less saddles), the treasure table stops working and yields no loot.

 

The file text changed appears as such:

{
  "type": "minecraft:fishing",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:name_tag"
      "weight": 10
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:saddle"
      "weight": 5
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "damage": {
                "type": "minecraft:uniform",
                "max": 0.25,
                "min": 0.0
              },
              "function": "minecraft:set_damage"
            },
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30.0,
              "treasure": true
            }
          ],
          "name": "minecraft:bow"
      "weight": 10
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "damage": {
                "type": "minecraft:uniform",
                "max": 0.25,
                "min": 0.0
              },
              "function": "minecraft:set_damage"
            },
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30.0,
              "treasure": true
            }
          ],
          "name": "minecraft:fishing_rod"
      "weight": 10
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30.0,
              "treasure": true
            }
          ],
          "name": "minecraft:book"
      "weight": 10
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:nautilus_shell"
      "weight": 10
        }
      ],
      "rolls": 1.0
    }
  ],
  "random_sequence": "minecraft:gameplay/fishing/treasure"
}

 

This appears to be consistent with other loot tables, but it seems to not work.

Invalid

kuraihifoxx

2023-11-20, 06:55 AM

2023-11-20, 11:54 AM

2023-11-20, 08:12 AM

0

2

Unconfirmed

(Unassigned)

1.20.2

-