mojira.dev
MC-212228

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

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:

[media]
  • 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 @unknown)

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.

Attachments

Comments

migrated
[media][media][media]
tryashtar

Possible duplicate of MC-161191

[Mod] Jingy

Can confirm in 1.20.1 and1.20.2-rc1. Requesting ownership of this issue to maintain as the original poster has not due to inactivity

nick w

[Mod] Jingy

(Unassigned)

Confirmed

Platform

Normal

Data Packs

falling-block-entity, loot_table, pointed_dripstone

21w03a, 1.20.1, 1.20.2 Release Candidate 1, 1.20.2, 23w41a, ..., 1.20.4, 23w51b, 24w07a, 24w11a, 1.21

Retrieved