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 |
---|---|
|
|
Linked issues
is duplicated by 2
Attachments
Comments 31
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
.
In 1.13-pre5 all ids are fixed, but "eye_of_ender_signal" is yet "eye_of_ender" and not "ender_eye"