Jump to content

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


Recommended Posts

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/

Posted

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.

Posted

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/

Posted

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.

Posted

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/

Posted

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.

Posted

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/

Posted

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.

Posted

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...

×   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.