Need help with understanding bounding boxes [SOLVED]

Started by bnoid_1 on

Topic category: Help with MCreator software

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with understanding bounding boxes [SOLVED]
Sun, 02/16/2025 - 16:11 (edited)

Hello. I am having trouble trying to figure out bounding boxes.

The values and parameters are all very confusing for me and I don't know how to use them - when I try and fiddle around with them either the bounding box doesn't look how I want it to or it completely dissapears, making the block indestructable and impossible to interact with.

For reference, I am trying to figure out how to make a bounding box similar to the 4 stages of amethyst crystals: Small Amethyst Bud, Medium Amethyst Bud, Large Amethyst Bud and Amethyst cluster.

I would appreciate if someone knew how to make sense of all these parameters and such.

Edited by bnoid_1 on Sun, 02/16/2025 - 16:11
Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
UPDATE: After careful…
Thu, 02/06/2025 - 19:58

UPDATE: After careful tinkering I seem to have found out how things work, however it would be very nice if anyone at lease explained it thoroughly so that I can improve on it.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, can you elaborate on…
Tue, 02/11/2025 - 01:11

Hey, can you elaborate on what you did and how you figured it out? I believe I have similarly discovered a decent bit, but I'm struggling to get my boundary box centered as I think it would require putting the minimum coords above 0, which seems to send the entire box to the shadow realm

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, I think if any of the…
Sat, 02/15/2025 - 19:38

Yeah, I think if any of the values go higher than 16 the bounding box dissapears into thin air...

If I remember correctly, this should be how I figured it out:

  • The minimum Y coord is always set to zero and you can set the max Y coord anywhere ranging from *0 - 16, however I'm not so sure if the bounding box may bug out if both Y coord values are 0...
  • For the max X and Z coords, they can be set to *0 - 16 like normal.
  • However, for the min X and Z coords, what I've noticed is that instead of setting them like you would for the max X and Z coords, it's kind of in reverse. Hold on, let me elaborate on this a bit further...

    For example, if you wanted a small bounding box that is centered, and is 5 x 5 pixels in size and 2 pixels tall, the following values should be something like this:
    Min X: 11 Min Y: 0 Min Z: 11 Max X: 5 Max Y: 2 Max Z: 5

    As for what I meant by the Min X and Z values being "reversed", I've noticed that instead of setting the values to 5 as well, you instead take away the value of the Max X / Max Z from 16, giving you, in this case, 11. Basically, for each time you add one to the Max X and Z values, you take away one from your Min X and Z values. Here's a representation to hopefully make this seem less complicated:

    Min X / Z: 16    Max X / Z: 0

    Min X / Z: 15    Max X / Z: 1

    Min X / Z: 14    Max X / Z: 2

    Min X / Z: 13    Max X / Z: 3

    Min X / Z: 12    Max X / Z: 4

    Min X / Z: 11    Max X / Z: 5

    Min X / Z: 10    Max X / Z: 6

    Min X / Z: 9      Max X / Z: 7

    Min X / Z: 8      Max X / Z: 8

    Min X / Z: 7      Max X / Z: 9

    Min X / Z: 6      Max X / Z: 10

    Min X / Z: 5      Max X / Z: 11

    Min X / Z: 4      Max X / Z: 12

    Min X / Z: 3      Max X / Z: 13

    Min X / Z: 2      Max X / Z: 14

    Min X / Z: 1      Max X / Z: 15

    Min X / Z: 0      Max X / Z: 16

I do hope this has helped. Keep in mind that the mod project that I was working on - where I seemed to have figured it all out - was on the latest 2025.1 snapshot of MCreator, so it may be a bit buggy...

*0 - 16 pixels in size