Jump to content

Recommended Posts

Posted

Oh I'm sorry I forgot to say what happens, silly me, anyways whenever I place down the source block and update it it changes to another block that is not the flowing version of it. Pretty much it's like water into iron just on a block update.

Posted

/**
* Changes the block ID to that of an updating fluid.
*/
private void setNotStationary(World par1World, int par2, int par3, int par4)
{
    int var5 = par1World.getBlockMetadata(par2, par3, par4);
    par1World.editingBlocks = true;
    par1World.setBlockAndMetadata(par2, par3, par4, this.blockID - 1, var5);
    par1World.markBlockRangeForRenderUpdate(par2, par3, par4, par2, par3, par4);
    par1World.scheduleBlockUpdate(par2, par3, par4, this.blockID - 1, this.tickRate());
    par1World.editingBlocks = false;
}

 

This is the code here in the stationary block and you can see it subtracts one from the stationary for the flowing

  • 4 weeks later...

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.