Posted March 15, 20187 yr Hi all. I search for this problem but i don't found any solution. I try to get the localization name for blocks and entities. But for some blocks i get block.air.name if the block is door, sign, mob_spawner. For entities like minecart i get entity.MinecartRideable.name but not exists and other minecarts have not name wit entity. only for item. and its starts the namw with lowercase like item.minecartHopper.name. I dont' know what to doo :(( I hate this :(( Thanks. Edited March 15, 20187 yr by Marian
March 15, 20187 yr Author For block i try: ItemStack iS = new ItemStack(bS.getBlock(), 1, bS.getBlock().damageDropped(bS)); For Sign = Air, Bed = Air, Door = Air, Powered redstone lamp = Air, Head = Air For entity like: Minecart, M...Furnance, M..TNT, Ender_Crystal have no name with .getName().
March 15, 20187 yr Author Now the blocks name works but the mob_spawner is still Air Block.getItem() is the same. The Entity.getName() is not returning the name for ItemFrame or some minecarts. Edited March 15, 20187 yr by Marian
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.