Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I'm currently working on trying to get a liquid block to update correctly. However I am running into an issue that I've tried to fix for the past 4 days (off and on again) and I can't solve it. Here's the pastebin link if you want the source code http://pastebin.com/yqJr4Yrj Thank you for all the help :)

  • Author

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.

By default throughout liquid code it will assume the flowing liquid version is one id above the stationary version, not below.

but in the code of the two types, I set the still Block ID in both of them to the stationary form's Block ID. it works fine for me.

/**
* 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...
  • Author

Well I've tried that, along with every other thing that I can find, and I this still is happening. I'm just about to give up.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.