I am currently developing a valkyrien skies addon, which should randomly spawn ships while generating the world. I tried to use code from the “Create Ship” stick or from the pirates addon which does similar things to what I want, but I just could not get it to compile and I could not find enough documentation or code for generating a structure and turning it into a ship.
I would be very thankful for a quick example for Fabric (Yarn/Loom, 1.20.1) which spawns a ship that contains the blocks of a structure at a certain position.