-
Bug
-
Resolution: Fixed
-
Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.2
-
Confirmed
-
Survival
The bug
When breaking a minecart (any type) in survival a renamed minecart item is created. In previous versions a renamed minecart was only dropped if the minecart was renamed before.
Additionally some minecart types have no translation and are displayed as: entity. + Entity type + .name
Full list:
entity.MinecartRideable.name
entity.MinecartFurnace.name
entity.MinecartTNT.name
Minecart with Chest
Minecart with Hopper
How to reproduce
Place any type of minecart and break it in Survival mode.
The reason
The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.
The reason why this happens is because in previous versions the class net.minecraft.entity.item.EntityMinecart had an extra field for the custom name that would be used for dropping the item (this required a lot of methods to be overridden). In 1.9 minecarts do not have this extra field anymore. The problem is that the method net.minecraft.entity.item.EntityMinecart.killMinecart(DamageSource) uses the method net.minecraft.entity.Entity.getName() to test whether or not the minecart has a custom name. This method will always return a string because this method is used for displaying for example the entity name in the chat. Instead the method of the minecart should test if it has a custom name.
public void killMinecart(DamageSource source) { this.setDead(); if (this.worldObj.getGameRules().getBoolean("doEntityDrops")) { ItemStack itemstack = new ItemStack(Items.minecart, 1); // Replaced this //if (this.getName() != null) //{ // itemstack.setStackDisplayName(this.getName()); //} if (this.hasCustomName()) { itemstack.setStackDisplayName(this.getCustomNameTag()); } this.entityDropItem(itemstack, 0.0F); } }
- is duplicated by
-
MC-95928 Destroyed and picked up minecart changes name to "entity.MinecartRideable.name"
- Resolved
-
MC-96003 When minecart is destroyed by cactus and picked up the name changes to "entity.MinecartRideable.name"
- Resolved
-
MC-96067 Drops of special minecarts don't have a name
- Resolved
-
MC-96093 Minecart GUI displays "container.minecart" in name field
- Resolved
-
MC-96266 Minecart storage name
- Resolved
-
MC-96308 TNT Minecart Breakage Error
- Resolved
-
MC-96415 minecart destroyed
- Resolved
-
MC-96581 minecarts are not correctly named
- Resolved
-
MC-96812 Minecarts
- Resolved
-
MC-96817 Title in minecart hopper and minecart chest is broken
- Resolved
-
MC-96914 Minecart names are messy
- Resolved
-
MC-96921 Bug "container.minecart"
- Resolved
-
MC-97085 Minecart Name Changing
- Resolved
-
MC-97134 Minecarts Given Code-Like Names.
- Resolved
-
MC-97200 Minecart Bug!
- Resolved
-
MC-97202 Minecraft bug
- Resolved
-
MC-97269 Naturally Spawning Chest Minecarts have "container.minecart" name text
- Resolved
-
MC-97313 Minecart with Container lost the name
- Resolved
-
MC-97342 Minecart Chest
- Resolved
-
MC-97349 Minecart name changes when it is placed
- Resolved
-
MC-97351 Minecart name changes when it is placed and then it is picked up
- Resolved
-
MC-97514 MineCart shows up under container.minecart
- Resolved
-
MC-97536 Minecarts are named differently
- Resolved
-
MC-97594 Minecarts not working exactly as intented
- Resolved
-
MC-97653 Minecarts with names
- Resolved
-
MC-97690 Minecarts with chests taken from mineshafts display container.minecart
- Resolved
-
MC-97788 If you break a minecart hopper, the minecart you get is named "container.minecart"
- Resolved
-
MC-97790 It's written "container.minecart" in the inventory of minecart hopper & chest.
- Resolved
-
MC-97838 Minecart chest GUI titled as "container.minecart"
- Resolved
-
MC-97890 conatiner.minecart Shown instead of Minecart Chest, or Minecart Hopper
- Resolved
-
MC-98084 Minecart name messed up
- Resolved
-
MC-98106 container.minecart in the GUI of the Minecart
- Resolved
-
MC-98212 Minecarts with chests found in mineshafts are labelled "container.minecart" when picked up
- Resolved
-
MC-98274 Minecart names
- Resolved
-
MC-98321 Unnamed Minecarts
- Resolved
-
MC-98525 Minecart Bug
- Resolved
-
MC-98575 MinecartChest wrong name display.
- Resolved
-
MC-98581 Furnace MInecart
- Resolved
-
MC-98584 entity.MinecartTNT.name
- Resolved
-
MC-98617 Minecart nameing issue
- Resolved
-
MC-98861 "minecart.container" when opening minecart chest
- Resolved
-
MC-99021 Mine Cart Name incorrect
- Resolved
-
MC-99376 After destroying minecart in survival minecart is named "entity.MinecartRideable.name"
- Resolved
-
MC-99582 Buggy 'Minecart' Name After Breaking Minecart With Hand
- Resolved
-
MC-99626 Opened Minecart with Chest reads "container.minecart"
- Resolved
-
MC-99627 Minecart with chest and hopper read "container.minecart" when open
- Resolved
-
MC-99714 Mining Minecarts give weirdly named Minecart Items
- Resolved
-
MC-99738 Minecart from mineshaft has a name
- Resolved
-
MC-99850 Minecarts broken in are renamed to entity.MinecartRideable.name
- Resolved
-
MC-100310 Minecarts When Broken Have The Name entity.MinecartRideable.name
- Resolved
-
MC-100447 Many types of minecarts are incorrectly named upon being destroyed.
- Resolved
-
MC-100495 if a minecart explodes, the item dropped will be called "entity.MinecartRideable.name"
- Resolved
-
MC-100564 Minecart Name Change
- Resolved
-
MC-100706 Minecart bug!!
- Resolved
-
MC-100735 minecart
- Resolved
-
MC-101416 Minecarts keep their names after breaking
- Resolved
-
MC-101423 Hopper With Minecart Bug
- Resolved
-
MC-101475 Confused Minecart names
- Resolved
-
MC-101485 Minecart names are broken
- Resolved
-
MC-101685 The item dropped when a minecart is desroyed is named "entity.MinecartRideable.name"
- Resolved
-
MC-101914 Minecart name is incorrect. shows entity.MinecartRideable.name instead
- Resolved
-
MC-101987 minecart "looses" his name afther breaking it.
- Resolved
-
MC-102032 Minecart with furnace has a weird name after destroying
- Resolved
-
MC-102663 Item Name
- Resolved
-
MC-102704 When a minecart is put in a frame after being dispensed it show its wrong name
- Resolved
-
MC-103010 Breaking a minecart will call it "entity.MinecartRideable.name"
- Resolved
-
MC-103045 name change of minecart / minecartfurnace by entity.MinecartFurnace.name or Entity.MinecartFurnace.name .
- Resolved
-
MC-103265 Minecart with Hopper Name Problem
- Resolved
-
MC-103385 Minecarts have wrong names after being placed and broken
- Resolved
-
MC-103394 Running Minecart into Cactus changes name
- Resolved
-
MC-103414 Minecart has not name
- Resolved
-
MC-103485 Broken minecarts are named entity.MinecartRidable.name
- Resolved
-
MC-103489 Minecart name different after placing and breaking
- Resolved
-
MC-103579 Minecart Breaking Bug
- Resolved
-
MC-103589 minecart still uses entity name
- Resolved
-
MC-103698 Minecart names
- Resolved
-
MC-103763 Breaking a minecart gives it a weird name
- Resolved
-
MC-103851 Minecart with Hopper when broken drops minecart and hopper, but minecart will still have name "Minecart with Hopper"
- Resolved
-
MC-103881 Minecrart named entity.MinecartRideable.name
- Resolved
-
MC-104776 when a minecart hopper/furnace/chest is broken the minecart item isn't 'Minecart'
- Resolved
-
MC-104795 Minecart with Chest-name remains
- Resolved
-
MC-105002 minecart with hopper
- Resolved
-
MC-105117 Minecart with chest/hopper/furnace keeps name after breaking
- Resolved
-
MC-105239 Minecart rename issue
- Resolved
-
MC-105419 Mine Cart-Item Hopper
- Resolved
-
MC-105423 Displays wrong name.
- Resolved
-
MC-105495 Minecart name glitch
- Resolved
-
MC-105711 Minecart with chest displays item name when pointed to
- Resolved
-
MC-106081 minecart hopper and chest droppe minecart still named "minecart with hopper" or chest
- Resolved
-
MC-106110 Item name changes when used
- Resolved
-
MC-106121 When destroyed by a cactus, minecart getting renamed as "entity.MinecartRideable.name"
- Resolved
-
MC-106516 My minecarts are called "entity.MinecartRideable.name" after I break them
- Resolved
-
MC-108524 Minecarts mined from abandon mineshafts come up as entity names
- Resolved
-
MC-109265 Minecarts name changes to entity.minecart.name when broken
- Resolved
-
MC-109937 Mine carts changing names into "entity.MinecartRideable.name" when broken
- Resolved
- relates to
-
MC-71006 Minecart with Hopper and Minecart with Chest's GUIs' name is Minecart.
- Resolved