Jump to content

[1.7.10] Remote Block Breaking [SOLVED]


BinaryCPG

Recommended Posts

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!

Link to comment
Share on other sites

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.