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

Got a block that, placed, adds an other block above it to the world & rotates it.

Now, what it want is: if the bottom Block gets broken the other block gets removed/broken.

I tried to call breakBlock(...) in the breakBlock(...) method of the bottom block:

public void breakBlock(World world, int x, int y, int z, Block block, int p_149749_6_)
    {
        Block block1 = world.getBlock(x, y+1, z);
        block1.breakBlock(world, x, y+1, z, MinecraftMoney.instance.moneyExchangeDown, this.blockRotationIndex);

        super.breakBlock(world, x, y, z, block, p_149749_6_);
    }

 

To control, if the breakBlock(...) of the top block gets called I wrote a console output with the given variables for the top block breakBlock(...). The output confused me even more:

 

Called by breakBlock(...) of bottom block:

'breakBlock()' called with: [net.minecraft.world.WorldServer@8baf6a][401][80][339][de.binarycpg.mm.block.BlockMoneyExchangeDown@defb8][4]

 

Called in the Moment i broke the block

'breakBlock()' called with: [net.minecraft.world.WorldServer@8baf6a][401][80][339][de.binarycpg.mm.block.BlockMoneyExchangeDown@defb8][4]

 

Help? What do i need to check or add so it workes?

The TileEntitys are Going to kill us all and take over the entire (Minecraft) world!

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.