Jump to content

[1.12.2] Blocks and Entity name localization


Marian

Recommended Posts

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 by Marian
Link to comment
Share on other sites

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().

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.