Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-266874

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.2
    • None
    • Windows 10
    • Unconfirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            kuraihifoxx kuraihifoxx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: