I can't figure out how to make blocks. I know how to set block and what not, but I want to create blocks that are independent of the minecraft world. I looked around for a bit, but I can't find out how to do this. I mean something that would look a bit like this" Code: Block block = new Block(/*Arguments...*/); Is there a way to do this?
world.getBlockAt(x, y, z).setType(Material.AIR); You can also use .setTypeId() and .setTypeIdAndData() etc...
That's still not exactly what I was trying to say. Let me explain what I'm trying to do: Basically, I want to make it so that you can make a building. Inside the building, is nothing. However, the building has a door. Whenever a person opens that door, the blocks inside get switched to their own room. I've found a workaround for this, which is to store the blocks ids and metadata separately. However, I don't think that this is the best method, so I want to know if their is a better method. I'll have to tackle the issue of entity storage later as well, but that isn't for right now.
You basically have to store all of the blocks with their data values then replace them one by one when you need to