What is the easiest way to make a bounding box for an entity?

Started by dsadasdas on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What is the easiest way to make a bounding box for an entity?

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

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In your blockbench model,…
Mon, 03/11/2024 - 14:31

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.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you, also i have…
Wed, 03/13/2024 - 11:11

thank you, also i have another question, i see people need bounding boxes for blocks, is it the same in this case?

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for bounding boxes for…
Sat, 06/14/2025 - 09:18

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.