Custom mob loot table.

Started by nsgv on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The namespace of your loot…
Sun, 03/07/2021 - 17:21

The namespace of your loot table has to be your mod id.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.