Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-114654

Custom Blocks Don't Use Loot Tables Properly

XMLWordPrintable

    • Unconfirmed
    • Multiple

      Please correct me if I'm missing something, but when creating blocks with different permutations, the block uses the loot table fine, but when mined with equipment enchanted with silk touch it drops a block that cannot be placed or dropped from the hand.

      Is there a component in loot tables that specifies what should happen when the block is broken with Silk Touch?

      Steps To Reproduce:

      1. Create a custom block with permutations and a loot table that drops an item
      2. Place the block in a permutated state
      3. Mine the block without silk touch
      4. The loot table will work
      5. Mine the same permutated block with silk touch
      6. You'll get an 'corrupted' block and the following error from the content log: '[Blocks][error]-Custom blocks only support default state when dropped. Consider adding a minecraft:loot component to make the dropped item explicit. Returning default state block.'

      Expected Behavior:

      • Custom blocks have the ability to override enchantments like silk touch when mined

      Actual Behavior:

      • Custom blocks break when mined with silk touch

            Gruntastic Gruntastic
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: