Jump to content

Recommended Posts

Posted

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

Posted

/**

    * 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.

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.