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

Carved pumpkin drop from shearing a snow golem is hard coded

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      The carved pumpkin drop from shearing a snow golem is hardcoded. This issue was created due to the fix for MC-267866.

      Code Analysis:

      Method shear() in SnowGolem
         public void shear(SoundSource soundSource) {
            this.level().playSound((Player)null, this, SoundEvents.SNOW_GOLEM_SHEAR, soundSource, 1.0F, 1.0F);
            if (!this.level().isClientSide()) {
               this.setPumpkin(false);
      -> ISSUE START
               this.spawnAtLocation(new ItemStack(Items.CARVED_PUMPKIN), this.getEyeHeight());
      -> ISSUE END
            }
         }
      

      Suggested Fix
      Introduce a loot table for shearing a snow golem.

      Notes

      1. The behavior stated here is irregular when compared to the bogged mob, which shearing loot table is entirely customizable, in the 'shearing' directory of the loot tables folder.
      2. Related to MC-94610 MC-149589 MC-269838 MC-269839 MC-269873 MC-269874

            Unassigned Unassigned
            Jingy [Mod] Jiingy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: