mojira.dev
MC-189840

Unsheared snow golems don't drop carved pumpkins upon being killed

The Bug:

Unsheared snow golems don't drop carved pumpkins upon being killed.

Steps to Reproduce:

  1. Summon a snow golem.

  2. Kill it, and as you do this, look at the loot it drops.

  3. Take note as to whether or not unsheared snow golems drop carved pumpkins upon being killed.

Observed Behavior:

Unsheared snow golems don't drop carved pumpkins upon being killed.

Expected Behavior:

Unsheared snow golems would drop carved pumpkins upon being killed.

Code Analysis:

Code analysis by @unknown can be found below.

data > minecraft > loot_tables > entities > snow_golem.json

{
  "type": "minecraft:entity",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 15.0,
                "min": 0.0
              },
              "function": "minecraft:set_count"
            }
          ],
          "name": "minecraft:snowball"
        }
      ],
      "rolls": 1.0
    }
  ]
}

If we look at the above json file, we can see that snow golems are only designed to drop snowballs upon being killed. Carved pumpkins aren't mentioned anywhere within this file, therefore resulting in unsheared snow golems not dropping them upon death.

Linked issues

Attachments

Comments 10

Snow golems never have dropped their pumpkins upon death; only 0-15 snowballs. To get the pumpkin, you must first shear the snow golem (and then kill it, if you want).

But they also never dropped it when when sheared for very long, so I think it is also a bug, that they don’t drop it when killed.

Please add 1.15.2 to version

Can confirm in 1.17.

Can confirm in 1.17.1.

I am able to confirm this in 21w40a. The expected behavior would be that snow golems drop a pumpkin upon being killed.

I think this is intended, like how iron golems don't drop pumpkins.

Might want to at least clarify you mean unsheared snow golems (or you'd duplicate the pumpkin).

Very solid point; I've updated this ticket. Thanks! 🙂

Before Avoma took over this bug report, it had already been clarified.
— When killing a snow golem that has a pumpkin, it won’t drop it.
However, Avoma unnecessarily reworded the report. Now, it fails to explain why carved pumpkins should be dropped. The code analysis is incomplete, as not all mob drops are controlled by loot tables; some are hardcoded. An alternative solution to this problem would be to have the snow golem wear the pumpkin in an appropriate equipment slot, similar to MC-279690.

bugsbugsbugs

Avoma

(Unassigned)

Confirmed

Loot tables

snow_golem

1.15.2, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, ..., 1.21, 1.21.3, 1.21.4, 25w08a, 1.21.7

Retrieved