Loot Tables for Entities not working

Started by DTGamer on

Topic category: Help with modding (Java Edition)

Last seen on 22:34, 2. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loot Tables for Entities not working

I am trying to get Cod to drop an item. Currently, I have it set to where it should drop the "Golden Fish" item every time I kill one, but it won't work. I've tried Data Merges, but it could be outdated. Here's the generated code: (Keep in mind, I'm fairly new to MCCreator, and I don't really get loot tables.) Thank you!

{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": {
        "min": 1,
        "max": 2
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "megaminecraft:golden_fish",
          "weight": 400,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:fire_coral",
          "weight": 35,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        }
      ]
    }
  ]
}
Last seen on 22:34, 2. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(By the way: I'm on 1.17.1!…
Sat, 04/02/2022 - 03:38

(By the way: I'm on 1.17.1! Sorry, forgot to mention)

 

Last seen on 22:34, 2. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
UPDATE: I Fixed the Issue,…
Sat, 04/02/2022 - 19:23

UPDATE: I Fixed the Issue, and it's working just fine now!

 

Last seen on 11:25, 24. Aug 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how did you fix it?
Sat, 07/30/2022 - 20:41

how did you fix it?