Jump to content

[1.7.10] Block Bounds Problem


Whyneb360

Recommended Posts

I am trying to make a 2x1x1 Block, and have managed that, but the block bounds don't work for it. When looking a the left half of the block, you can interact with it and break it and even see that the bounds are 2x1x1, but when I move my mouse over to the right side of the block the hitbox disappears and I can even place a block in the right half.

 

Any idea on how to fix this?

 

-Whyneb360

 

P.S. I know I'll need to rotate the hitbox, and that parts all settled. Just trying to figure out how to make a functional 2x1x1 hitbox first

 

this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 2.0F);

Link to comment
Share on other sites

There is no inbuilt support for multiblock in forge.

So you should code the multiblock structure yourself, using some metadata and onNeighborBlockChange, and so on.

 

The code for vanilla door would be a good example.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

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.