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

Eyes of ender utilize the behavior of consumable items causing the player to be slowed down when using them


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w42a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w15a, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w47b, Minecraft 18w01a, Minecraft 18w11a, Minecraft 1.13-pre1, Minecraft 1.13.2, Minecraft 19w05a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 3, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 3, 1.14.4, 19w37a, 19w45b, 19w46a, 19w46b, 1.15 Pre-release 1, 1.15.1, 1.15.2, 20w09a, 20w21a, 1.16 Pre-release 2, 1.16.1, 20w29a, 1.16.2, 1.16.3, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17 Release Candidate 1, 1.17, 1.17.1, 21w40a, 21w41a, 1.18.1, 22w03a, 22w05a, 22w06a, 22w07a, 1.18.2 Release Candidate 1, 1.18.2, 22w17a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2 Release Candidate 2, 1.20.4, 23w51b, 1.20.6, 1.21
    • Confirmed
    • Items, Player
    • Low
    • Gameplay

      The Bug:

      Eyes of ender utilize the behavior of consumable items causing the player to be slowed down when using them.

      Steps to Reproduce:

      1. Obtain several eyes of ender, walk forward at a constant speed, and throw multiple of them into the air.
      2. Observe how fast you're traveling as you do this.
      3. Take note as to whether or not throwing eyes of ender slows down the player.

      Observed Behavior:

      You are slowed down as if you were eating food.

      Expected Behavior:

      You would not be slowed down, following the behavior of similar projectiles such as snowballs and eggs.

      Code Analysis:

      The following is based on 1.12 decompiled using MCP 9.40 PRE 1

      The method net.minecraft.item.ItemEnderEye.onItemRightClick(World, EntityPlayer, EnumHand) sets the eye of ender as actively used item stack similar to bows, food or potions. However, since eye of enders do not override net.minecraft.item.Item.getMaxItemUseDuration(ItemStack) their use time is 0. This causes you to slow down in creative mode because the condition for stopping using the active item stack is --this.activeItemStackUseCount == 0, so with 0 as start value the first check is -1 == 0.

      Since the method ItemEnderEye.onItemRightClick directly decreases the count in survival the active item stack is reset since its count changed.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            28 Vote for this issue
            14 Start watching this issue