Jump to content

[1.6.4] How to add multiple bounding boxes on a block?


Recommended Posts

Posted

Hello everyone. I am working on some cables for my mod, I got the models working, textures, they work but I cannot seem to be able to add multiple bounding boxes or something to make them be like other mods, right now I have them be the full block but I would like them to be only the pipe model.

Is there a way to add multiple block bounds? Not collision boxes, those are not hard.

Posted

Hi

 

What do you mean bounding boxes?  Do you mean the wire box that surrounds a block when you're looking at it?

 

If so, I would suggest you register for the DrawBlockHighlightEvent, check whether the block under the cursor is your custom block, and if so render the multiple boxes yourself.  (If it's not your block, revert to vanilla).

 

If you don't know about events yet, try

http://greyminecraftcoder.blogspot.com.au/2013/12/forge-techniques-events.html

or

http://www.minecraftforum.net/topic/1419836-131-forge-4x-events-howto/

 

-TGG

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.