Started by
dsadasdas
on
Topic category: Help with Minecraft modding (Java Edition)
So, i want to make a bounding box on my entity, but its a bit confusing, what is the easiest way? i modelled my entity with blockbench, if that helps
Topic category: Help with Minecraft modding (Java Edition)
So, i want to make a bounding box on my entity, but its a bit confusing, what is the easiest way? i modelled my entity with blockbench, if that helps
In your blockbench model, you can create a temporary cube and scale it up so that it covers your entire entity(for measuring purposes), then set the width/depth value of the bounding box to the X or Z size(whichever is higher), but divided by 16, and the bounding box height to the cube's Y size, divided by 16, then remove the measuring cube from your model, and you have your bounding box set to be the same size as your entity.
thank you, also i have another question, i see people need bounding boxes for blocks, is it the same in this case?
for bounding boxes for blocks you have all the info in the .json file, just open up the json file for the block you want to put bound boxes for and you should see in the elements section there's "From" and "To". where's "From" corresponds to the bottom of the cube and "To" corresponds to the top, then just repeat this up until you have a perfect block bounding box.
Note: blocks that have too many bounding boxes might cuz the game to lag.