Jump to content

[1.14] The Flattening and Data that is but isn't a Variant


Recommended Posts

I definitely get The Flattening in making blocks that are actually different blocks separate block instances, however, I have a block that uses a data value in a way that only sorta represents a "different" block.


This isn't like "oak fence" vs. "birch fence" or "red wool" vs. "white wool," but that I have ores that have a density property. The higher the density, the more metal resource the block contains and the more that drops when the block is mined (the drops are items like lapis or redstone, not the literal block).


The problem is that this property should be retained when mined with Silk Touch (the Edge Case) and I'm trying to figure out what the suggested method of handling this should be:


Option 1) the density property is actually-different-blocks (the wool analog approach)

Option 2) the density property is metadata when in the world, but drops different Item instances (hybrid approach)

Option 3) the density property is left unflattened (uses ItemStack NBT data approach)


Eg this is how it looks in the world with different density values (8 of 16 shown):



Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.


Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.


DO NOT PM ME WITH PROBLEMS. No help will be given.

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.