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

Mob Spawner's dropped experience is unchanged by enchantments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21
    • None
    • Community Consensus
    • Data Packs, Enchantments
    • Normal
    • Platform

      Mob Spawners drop a static amount of experience, irrespective of any enchantments that have the `block_experience` component.  I suspect this was done to still drop experience when silk touch was present, but it means that enchantments which should increase the dropped experience are unable to do so for mob spawners.

      This is because Mob Spawners use popExperience instead of trySpawnExperience in their spawnAfterBreak override.

      Attached is a datapack which provides a pickaxe enchantment that multiplies dropped experience by 100, which makes the issue very obvious.

      This issue is unrelated to MC-273411 which concerns `block_experience` not applying when present on a non-tool item.

        1. MC-273642.zip
          0.6 kB
        2. soup.zip
          1 kB

            Unassigned Unassigned
            Shadows_of_Fire Shadows_of_Fire
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: