Posted September 2, 201312 yr world.setBlockAndMetadata(i + 0, j + 3, k + 3, Block.stoneSingleSlab.blockID, 13); I'm using a schematic to java converter, and I've run into an error. The setBlock (for not metadata blocks) method has 4 parameters, while the setBlock (for metadata blocks) method has 6 parameters. What are the 2 parameters for? Kain
September 2, 201312 yr /** * Sets the block ID and metadata at a given location. Args: X, Y, Z, new block ID, new metadata, flags. Flag 1 will * cause a block update. Flag 2 will send the change to clients (you almost always want this). Flag 4 prevents the * block from being re-rendered, if this is a client world. Flags can be added together. */
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.