Airplane placement is misaligned on the runway, need help fixing it

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
yinx
Villager
Reactions:
Posts: 14
Joined: 11 May 2026, 03:58
Location: Ha Noi
Plugins: Showcase Store

Airplane placement is misaligned on the runway, need help fixing it

#1

Post by yinx »

Hello, I am developing a plugin that adds a new skin for an aircraft. Everything seems to be working fine, except for the positioning during takeoff and landing. I tried keeping the background intact and noticed it is misaligned by one 32x32 tile from the runway centerline (I am using a 3-lane runway plugin, so it should ideally stay on the middle lane). I have tried attributes like "offset" and "handle", but they don't seem to work. What should I do to adjust its position? I've noticed other aircraft plugins align perfectly, but I couldn't find their JSON code to learn from. Here is my code:
Capture.PNG
Capture.PNG (46.7 KiB) Viewed 68 times

Code: Select all    Reset

[ { "id": "$yindreamx.airplane.2026-05-16-03:48:55.713", "title": "Vietjet Air Airplane", "text": "Vietjet Air Aircraft – A Vietnamese airline. Featuring the signature red and yellow colors of the Vietnamese national flag.", "author": "YinDreamX", "meta": { "pca": { "version": "4.4.2" } }, "frames": [ { "bmp": "huong1.png" }, { "bmp": "huong2.png" }, { "bmp": "huong3.png" }, { "bmp": "huong4.png" } ], "width": 3, "height": 3, "rotation aware": true, "type": "airplane", "price": 5000, "fly height":240, "capacity":400, "speed":1 }, { "id": "$yindreamx.decoration.2026-05-16-03:48:55.713", "title": "Vietjet Air Airplane", "text": "Vietjet Air Aircraft – A Vietnamese airline. Featuring the signature red and yellow colors of the Vietnamese national flag.", "author": "YinDreamX", "meta": { "pca": { "version": "4.4.2" } }, "frames": [ { "bmp": "huong1.png" }, { "bmp": "huong2.png" }, { "bmp": "huong3.png" }, { "bmp": "huong4.png" } ], "width": 3, "height": 3, "draw ground": true, "rotation aware": true, "type": "decoration" } ]
JSON checker
Check

User avatar
yinx
Villager
Reactions:
Posts: 14
Joined: 11 May 2026, 03:58
Location: Ha Noi
Plugins: Showcase Store

Re: Airplane placement is misaligned on the runway, need help fixing it

#2

Post by yinx »

I'm done hahaha

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”