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

Using eye of ender acts like consuming it slowing down player

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 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
    • None
    • Confirmed
    • Items, Player
    • Low

    Description

      The bug

      Using an eye of ender acts like you are consuming it slowing you down while holding right-click like food or potions. This happens in both survival and creative. In survival this requires you to hold multiple eyes of enders in your hand so that you still have one after you have thrown it. Before MC-152728 became a thing it also used to make you stop sprinting when doing it while sprinting, but now you continue sprinting. In 1.13.2 and below you were able to continiously throw eyes of enders in survival mode and it used to slow you down everytime you throw it, but since 1.14 it will act the same way as in creative mode, if you still have an eye of ender in your hand after throwing it.

      Expected would be that holding right-click would continously throw the eye of enders and it should not slow you down. That is exactly what happened in 1.10.2, before MC-83337 was fixed.

      How to reproduce

      1. Get eyes of enders
      2. Walk
      3. Hold down right click while holding it
        You only throw one and you will get slowed down as long as you are holding down right click.

      Code analysis

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bugsbugsbugs bugsbugsbugs
              Votes:
              20 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: