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
Linked issues
Comments
Thank you for your report!
We're tracking this issue in MC-269035, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
I did not originally find MC-269035 before creating this when I searched if the issue had been reported before, and this might duplicate it (that issue does include 3 seperate related cases though). Though, the resolution of said issue is interesting given the validity of MC-267866, and the recent addition of the 'loot_tables>shearing' directory for the bogged mob, which is customizable.