mojira.dev
MCPE-129006

Game crashes when loot table entry type is unknown

The bug

When the type inside a loot table entry is not one bedrock understands, the game instantly crashes while attempting to parse it.

How to reproduce

1. Download the attached world

2. Kill the pig
→ ❌ Your game crashes

Expected result Content log warning.

For convenience here is the exact loot table used

{
   "pools": [
      {
         "rolls": 1.0,
         "entries": [
            {
               "type": "test",
               "name": "minecraft:diamond_ore"
            }
         ]
      }
   ]
}

Notes

I noticed this when attempting to use a Java loot table in Bedrock. The reason is that Java uses "type":"minecraft:item" for its entries, where Bedrock just uses "type":"item".

This means that even if this is fixed, Bedrock should be updated to support namespaced entry types.

Attachments

Comments 1

tryashtar

(Unassigned)

541814

Confirmed

Windows

1.17.10.20 Beta

1.17.20.22 Beta

Retrieved