Jump to content

[1.8] [Solved] Implement facing with unlisted properties


Recommended Posts

Posted

Hey, is it possible to accomplish a block that can face different directions, like a furnace, without using a lot of model files? The direction is stored in a tile entity which means I have to use an unlisted property.  I basically search something like the "y" attribute in block state files.

Posted

The furnace only uses a single model rotated around the y axis different amounts depending on the

facing

property.

 

Is there a reason you have to use an unlisted property? It's entirely possible to use a normal property whose value is set from a

TileEntity

in

Block#getActualState

or

Block#getExtendedState

, look at

BlockFlowerPot

for an example.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Yes, you can have as many states as you want; it's just that you can only store 16 possible states in the metadata. Beyond that you have to use a

TileEntity

and one of the two methods I mentioned. Most Forge and vanilla code uses

Block#getActualState

,

Block#getExtendedState

is only used for rendering

ISmartBlockModel

s and returns the result of

Block#getActualState

by default.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.

Announcements



×
×
  • Create New...

Important Information

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