mojira.dev
MC-123529

Some entity IDs are not the same as the item ID

The bug

The entity id of command block minecarts is missing an underscore, it is currently commandblock_minecart, but should be command_block_minecart since for every other command block related item (including the entity’s item form) or block there is an underscore.
Affects

item id

entity id

ender_eye

eye_of_ender

Linked issues

Attachments

Comments 31

In 1.13-pre5 all ids are fixed, but "eye_of_ender_signal" is yet "eye_of_ender" and not "ender_eye"

confirmed in 1.13-pre8

In 18w31a, the ender eyes entity id is still "Eye of Ender".

Confirmed for 1.13.1.

21 more comments

Can confirm in 1.18

I can confirm this behavior in 1.18.1.

Here's a code analysis of this issue. The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn. 🙂

Code Analysis:

net.minecraft.world.item.Items.java

public class Items {
   ...
   public static final Item ENDER_EYE = registerItem("ender_eye", new EnderEyeItem((new Item.Properties()).tab(CreativeModeTab.TAB_MISC)));
   ...

net.minecraft.world.entity.EntityType.java

public class EntityType<T extends Entity> implements EntityTypeTest<Entity, T> {
   ...
   public static final EntityType<EyeOfEnder> EYE_OF_ENDER = register("eye_of_ender", EntityType.Builder.<EyeOfEnder>of(EyeOfEnder::new, MobCategory.MISC).sized(0.25F, 0.25F).clientTrackingRange(4).updateInterval(4));
   ...

If we look at the above classes, we can see that this item's item ID is ENDER_EYE and its entity ID is EYE_OF_ENDER.

Can confirm in 1.18.2.

Can confirm in 1.19 and 22w24a.

Can confirm in 1.20.2 and 23w42a

marcono1234

(Unassigned)

Confirmed

Platform

Low

Items

ender_eye, eye_of_ender, eye_of_ender_signal

Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w07c, ..., 1.20.1, 1.20.2, 23w42a, 1.20.4, 1.21.4

Retrieved