Jump to content

[1.7.2] Block facing using NBT


Recommended Posts

I want to clarify that I have just started working with forges. I'm following the tutorial pahimar and I also used the documentation in the wiki. I think I have a good preparation on Java. I do not think therefore that this is my problem.


Unfortunately, I can not rotate the block in such a way that "look" the player. You can use the getBlockTexture and using the various parameters in order to assign the correct texture. Unfortunately I use the metadata to determine the block. Each metadata corresponds to an upgrade of the same block. They share the same TileEntity fact, the same container and GUI. The block is the "Charge Station".


The code is on GitHub, so it is easier for me than for you to watch it.

Thanks for your cooperation.

Link to comment
Share on other sites

Could you be more specific? Do you have an example on which to work?


There are simpler solutions? The direction (ForgeDirection) is already saved in the tileEntity my problem is that I do not know how to set the texture.


Thanks, hitech95

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.

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.