I wanted to be able to use a happy ghast as a bomber plane. I ended up making this VS addon whcih allows building off of adult happy ghasts.
Reply chain from #9
There are two types of blocks that are being used as the invisible platform which you can build off of (ghastplatform:platform_controller and gahstplatform:platform).
The controller has a block entity that stores the id of the ship and the ghast.
Each tick, it sets the position and rotation of the ship to the top of the ghast. It does a bit of math to make sure the controller is at the centre of the ghast, instead of the centre of mass of the ship.
// Kotlin
VSUtil.getShipObjectWorld(world).teleportShip(ship, ShipTeleportDataImpl(
newPos = pos,
newRot = rot,
newVel = vel,
newDimension = dim
));
4 replies not shown · View on Discord