Exactly the title lol.
Next clockwork update (a big one) will come with a bearing that can do this I think
Wait are you a dev? Do you know what method calls I’d need to make to get schematics to paste onto ships?
It’s probably jsut that the schematic uses a custom raycast to see where your placing and where to place
Would you happen to know of something in the api that checks for a ship/gets the shipyard coords when right clicking?
vanilla minecrafts ```java
HitResult hit = level.clip(pos, distance, something)
will give a valid hit thats on a ship
but create is probably using something more custom that you may have to adapt to use the vanilla way
or to manually check for a ship at a position:
// Pos would be in the shipyard here
Ship ship = VSGameUtilsKt.getShipObjectManagingPos(pos);
// Ship is null if its not in a shipyard
if (ship != null) {
//Do stuff here
// To transform the shipyard position back to a world position:
Vec3 worldPos = ship.getTransform().getShipToWorld().transformPosition(<Some vanilla Vector3 to VS Vec3 convert function here idr its name>(pos.getCenter()))
}
Where does the pos we pass to #getShipObjectManagingPos come from?
This conversation is on Discord · Reply there