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.

[Unsolved] Setting bounding boxes for block and handheld icon [1.5.2]

Featured Replies

Posted

I've made a block with a custom model that's bigger than 16x16x16 but the bounding boxes are larger than 16c16x16? How can i extend the bounding boxes? And i also would like to now how to make a icon for the block when its in your inventory.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

If the model is bigger than 16x16x16 you should probably use a tile entity.

 

As for the icon, you'll need to specify how to do item rendering.  There's a function for it, but I don't recall what it's name is.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I have a TileEntity class and if i use the this.setBlockBounds() method in the constructor the bounding lines are drawed but you can go trough it.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  On 5/20/2013 at 2:15 PM, larsgerrits said:

I have a TileEntity class and if i use the this.setBlockBounds() method in the constructor the bounding lines are drawed but you can go trough it.

 

BoundingBox != CollisionBox

 

getCollisionBoundingBoxFromPool is the function you need to prevent the player from walking through it.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author
  On 5/20/2013 at 2:33 PM, Draco18s said:

  Quote

I have a TileEntity class and if i use the this.setBlockBounds() method in the constructor the bounding lines are drawed but you can go trough it.

 

BoundingBox != CollisionBox

 

getCollisionBoundingBoxFromPool is the function you need to prevent the player from walking through it.

And how would i use the getCollisionBoundingBoxFromPool method? And do you know anything about a icon for if the block is in your inventory?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  On 5/20/2013 at 2:42 PM, larsgerrits said:

And how would i use the getCollisionBoundingBoxFromPool method? And do you know anything about a icon for if the block is in your inventory?

 

Look up blocks like the fence.

 

As for the icon, I know it's handled by the render ID.  Which means if you're using a custom renderer, there's probably a function you need in there.

 

There's also setBlockBoundsForItemRender, which is used for blocks which have their bounds set by metadata so that when its in the inventory, it uses a fixed value (rather than the last metadata used in the world)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I never used blocks that where larger then 16x16x16. Can you give me the method that i can use or some more detailed information on the method?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  On 5/21/2013 at 3:40 PM, larsgerrits said:

I never used blocks that where larger then 16x16x16. Can you give me the method that i can use or some more detailed information on the method?

 

Think of a vanilla block that's larger than one block, peek at its class code.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author
  On 5/21/2013 at 8:36 PM, Draco18s said:

  Quote

I never used blocks that where larger then 16x16x16. Can you give me the method that i can use or some more detailed information on the method?

 

Think of a vanilla block that's larger than one block, peek at its class code.

Are there any vanilla blocks that are larger than one block? If so, which?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.