Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-212228

Pointed dripstone blocks do not properly evaluate custom loot tables after breaking by falling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 21w03a, 1.20.1, 1.20.2 Release Candidate 1, 1.20.2, 23w41a, 23w43a, 1.20.3, 1.20.4, 23w51b, 24w07a, 24w11a
    • Windows 10
    • Confirmed
    • Data Packs
    • Normal
    • Platform

      When pointed dripstone falls and gets broken, after hitting the ground, it will ignore any custom parent loot tables from the pointed dripstone block and instead will only drop a single dripstone item.

      Steps to Reproduce:

      • Place this loot table into your world's datapack folder, which changes the dripstone loot table to dirt:
        dripstone_loot_table_bug.zip
      • Run the following command
        /summon minecraft:falling_block ~1 ~ ~1 {BlockState:{Name:"minecraft:pointed_dripstone",Properties:{vertical_direction:"down"}}}
        

      Observed & Expected Results:

      The pointed dripstone will be destroyed, and drop a single pointed dripstone item.
      The pointed dripstone would drop dirt, because that is what the block's loot table is set to.

      Code Analysis:

      Can be found in MC-161191

      Original Description

      (Original description by nikolanoxy)

      If you create a custom loot table for dripstone, the custom drops are given if a player mines it, but if it's a falling stalactite, the broken pieces will give you the vanilla loot table drop.

      I would think the intended functionality would be each block of falling dripstone would use the `data\minecraft\loot_tables\blocks\pointed_dripstone.json` loot table.

      Example .json file attached.

            Unassigned Unassigned
            Jingy Jiingy
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: