The bug
When a player with the name "Notch" dies, they used to drop an apple. This is no longer the case.
Steps to reproduce
Launch the game with the
usernamejopt-simple argument set toNotch.Enter a world.
Die.
Observed behavior
No apple will be dropped at the death location.
Expected behavior
An apple would be dropped, as was the case in previous versions.
Code analysis
This feature only worked in Singleplayer and was broken by the client-server merge in 12w18a.
The logic has since been removed in 19w13a.
package net.minecraft.world.entity.player;
...
public abstract class Player extends LivingEntity {
...
@Override
public void die(DamageSource source) {
...
- if ("Notch".equals(this.getName().getString())) {
- this.drop(new ItemStack(Items.APPLE), true, false);
- }
...
}
...
}
Comments 2
Can confirm for 1.20.4. The code related to "Notch" dropping an apple has seemingly been removed (can't find any references to players named "Notch"). Still, it's a feature that was broken by the client-server merge way back in 1.3 (the apple drop used to work only in singleplayer), and similar issues with broken/missing functionality have been fixed...
Does this still affect the latest versions of the game (Stable 1.15.2 / Snapshot 20w21a)? If so, please update this ticket accordingly.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki