Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to use Anvil format's 4-byte data layer


  • Please log in to reply
6 replies to this topic

#1

FlamingSoySauce
  • Location: Earth
  • Minecraft: FlamingSoySauce

Posted 08 April 2012 - 06:59 PM

How do I set/get this data from a block? I am working on a mod that requires 4 bytes of data to be stored with a block, and I don't want to use tile entities. The wiki says these 4 bytes are similar to metadata, so I assumed it could be used the same way. Also, if it makes any difference, I am not using ModLoader.

ThatDutchIdiot said:

Your deleted worlds go straight to Notch where he can lulz at your failing attempt to play Minecraft.

Register or log in to remove.

#2

FlamingSoySauce
  • Location: Earth
  • Minecraft: FlamingSoySauce

Posted 08 April 2012 - 09:32 PM

Please help! Also, I converted my mod to ModLoader.

ThatDutchIdiot said:

Your deleted worlds go straight to Notch where he can lulz at your failing attempt to play Minecraft.

#3

Methuselah96

Posted 08 April 2012 - 10:20 PM

It is the same thing as metadata.
Basically look at ItemMetadata
and use
ModLoader.registerBlock(yourBlockHere, MetadataClassHere.class)
and that's about it
Posted Image

#4

FlamingSoySauce
  • Location: Earth
  • Minecraft: FlamingSoySauce

Posted 08 April 2012 - 10:59 PM

Could you please be a little more specific? How does that allow me to store 4 bytes of data in a placed block?

ThatDutchIdiot said:

Your deleted worlds go straight to Notch where he can lulz at your failing attempt to play Minecraft.

#5

Methuselah96

Posted 08 April 2012 - 11:35 PM

it stores a number from 0 to 15
Posted Image

#6

FlamingSoySauce
  • Location: Earth
  • Minecraft: FlamingSoySauce

Posted 09 April 2012 - 12:28 AM

That's not 4 bytes. That's 4 bits.

ThatDutchIdiot said:

Your deleted worlds go straight to Notch where he can lulz at your failing attempt to play Minecraft.

#7

Methuselah96

Posted 09 April 2012 - 01:51 AM

yup that's all you get
if you need more you have to use a tile entity
Posted Image