Jump to content

[1.3.2] How to save BlockID? when Block need the Metadata


Recommended Posts

Posted

Have look around a lot but not found Info.

My mod has alltogether more then 1500 Blocks.

the normal Blocks i can use the Metadata to save BlockID´s, but only 16

 

So how i can use 1 BlockID for more then 1 Block when this blocks needs the Metadata for other informations.

 

I know it´s possible, because Eloraam us it in RP2, have ask a few Persons but nobody can explain me how.

 

 

Posted

She uses tile entities to store extra data.

 

OK example, i want to make a view stairs all with 1 Block ID, in original the StairBlock store the direction in the Metadata.

 

So the question is now, when all understand correct i have 2 ways to do it:

1. i use the metadata to store the Direction and use the tileEntity only for the different Stairs

or

2. rewrite all, don´t use the metadata and store the direction directly in the TileEntity.

 

But what is the best way, thinking in complex of coding and compatibility for fututre changes?

think to store in on Block 20 - 30 Blocks

 

 

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.