Broken model from .b3d import

I am making a model and rig for my friend for a Minetest project and it needs to be in a .b3d, and after importing it to test to see if it worked we noticed that the model and the rig is messed up. Does anyone know how to fix this? Any help is appreciated.

I will supply pictures bellow

This is the broken one

And this one works fine