Custom mob loot table.

Started by nsgv on Sun, 03/07/2021 - 01:27

Topic category: Help with modding (Java Edition)

Last seen on 05:41, 12. Mar 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom mob loot table.
Sun, 03/07/2021 - 08:44 (edited)

Hello, i am making a custom mob called 'WarpedSkeletonMob' and made a loot table for the mob with this loot table registry name

'entities/warped_skeleton_mob' selected the 'mod' and the 'Entity' added 7-8 items to drop but didnt drop anything.

Here is the .json for the loot table.
 

{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:bread",
          "weight": 98
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_ingot",
          "weight": 94
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "weight": 99
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:gold_ingot",
          "weight": 94
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:bone",
          "weight": 99
        },
        {
          "type": "minecraft:item",
          "name": "hysteria:magnite_scrap_ingot",
          "weight": 15
        },
        {
          "type": "minecraft:item",
          "name": "hysteria:skull_ingot_item",
          "weight": 1
        }
      ]
    }
  ]
}

Edited by nsgv on Sun, 03/07/2021 - 08:44
Last seen on 05:41, 12. Mar 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I only have 'mod' and …
Mon, 03/08/2021 - 07:45

I only have 'mod' and 'minecraft' in the dropdown menu in 'loot table namespace' or i need to change in the .json file?

Last seen on 05:41, 12. Mar 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Couldn't load loot table…
Mon, 03/08/2021 - 08:01

Couldn't load loot table hysteria:entities/warpedfrostyskeleton from jar:file:/C:/MCreatorWorkspaces/skeleton/build/libs/modid-1.0.jar!/assets/hysteria/loot_tables/entities/warpedfrostyskeleton.json
com.google.gson.JsonParseException: Loot Table "hysteria:entities/warpedfrostyskeleton" Missing `name` entry for pool #0

 

Also when i want to edit the loot table the registry name for the mob textbox greys out.