#How to change a block's `VoxelShape`

17 messages · Page 1 of 1 (latest)

cinder star
#

As per the title, I am wondering if it's possible to change an existing block's VoxelShape- the black outline that shows up when you hover over it- using KubeJS, and if it is, I would like to know how one would go about this. Thanks in advance.~

open lynxBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

hot olive
#

you could change the blocks model which would do that

#

if you want something like the machine frame from thermal

cinder star
#

huh? doesn't changing a block's model not change the VoxelShape? like, if i change the glass block's model to that of the flower pot, it's still gonna have the full block outline and collision box

hot olive
#

i didnt think so

cinder star
#

i briefly saw a notification that said something about .box(x1, y1, x2, y2) that looked like what i'm looking for

#

that message seems to have been deleted though

tepid bay
#

Yeah it's only for mew blocks

cinder star
#

ahh, that's rough

tepid bay
#

You can do this with the model though

#

It has an Elements section that Van define from to coordinates

cinder star
#

yeah, that's making the shape of the model, but it doesn't change the shape of the black outline from its default shape iirc

#

or its collision box

#

after all, if someone had a resource pack that made a given block have a much smaller size, and that resource pack also changed the hitbox, how would it work for another player in the same world who doesn't have that resource pack?

tepid bay
#

Yeah, you're right it wouldn't make sense that a resourcepack can Change a hitox