mojira.dev
MC-96781

Players named "Notch" no longer drop an apple on death

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

  1. Launch the game with the username jopt-simple argument set to Notch.

  2. Enter a world.

  3. 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

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

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...

Marcono1234

(Unassigned)

Confirmed

12w18a

Minecraft 1.4.2, Minecraft 16w05b, Minecraft 1.12 Pre-Release 5, Minecraft 1.13, 1.18.2, 1.20.4, 26.1.2

Retrieved