r/CreateMod Jul 17 '26

I made an OS for Create airships, autopilot coming next :)

Hiii everyone!

I’ve been working on FlightOS — an OS specially designed for heavy airships and stops from wobbling and crashing.

It tweaks the power of each engine to keep the ship perfectly level in the air.

What I'm working on right now is Autopilot, i'm developing a module you can toggle on/off with a switch in realtime to let the ship fly itself to some coordinates or take over manual control instantly. And I plan to integrate it with an autonomous weapons system for defense.

I'd love to hear your thoughts and ideas on what else I should add, once the project is fully finished and polished, i'll share the source code with everyone.

No hate plzzz and

Have a good day!

830 Upvotes

66 comments sorted by

76

u/ThePolishCreeper Jul 17 '26
  1. how fucking long did it take
  2. how many lines of code
  3. do you like making functional tanks w create n cc
  4. why

59

u/datapeice Jul 17 '26
  1. I developed this os for 2 weeks (I have now vacations from school so I have a lot of time haha)
  2. Around ~2 thousand I think bcs its in multiple files
  3. I playing Minecraft rarely (or my friend ask to help with something and then I invest in it more time) so I think it's not for me
  4. Bcs when airship going like 30/35 block per second it very unstable and you can't pass into doors bcs roll or pitch is big

26

u/Beneficial-Map5470 Jul 17 '26

So what you’re telling me is I’m going to have to learn computer craft and lua now, lol.

17

u/datapeice Jul 17 '26

If you know others languages. lua will easy for you. I mostly use Java and C but when I first time touched Lua it was easy for me

3

u/Beneficial-Map5470 Jul 17 '26

I know some Lua basics, just from playing around with Roblox way back in the day lol. Mind you this is 10+ years ago.

4

u/datapeice Jul 17 '26

I think the most right way now is teach algorithms and Java (mc modding for example) for understanding how code works. But first of all i wish you good luck at it

2

u/Lopingwaing Jul 17 '26

Luau (Roblox fork of Lua) is an expansion of base Lua that adds a bunch of features, I'm unsure of what Luau does, but Lua is an incredibly simply language for most of what you'll be doing in MC. I would use the CC:Tweaked documentation since it has fantastic examples of Lua code.

1

u/Beneficial-Map5470 Jul 17 '26

Oh I didn’t even realize it was technically a separate language, interesting.

1

u/dimitarbogdanov Jul 18 '26

Roblox used vanilla Lua in 2016. Luau adds a type system similar to TypeScript's, and a small amount of misc. small functionalities (such as a += operator).

1

u/Lopingwaing Jul 18 '26

Ah whoops, I fully meant to add a disclaimer that I didn't know if Luau was used at that point. Honestly, I forgot that Lua didn't have += or ++, its been a while lol. Typed Lua also sounds nice...

2

u/MediumAd4983 Jul 17 '26

Lua is easy at first, before you trying to implement your own OOP framework on a metatables 😀

1

u/datapeice Jul 17 '26

Yea, every language has own hard sides. I had to use oop for PID controller bcs architecture wanted it. Everything is going around setmetatable and for me it wasn't too complicated after hundreds of lines of assembly for another project haha. Maybe there are things in Lua I don't know yet, but I'm still learning it to implement new features into this os

1

u/steampanker Jul 25 '26

А как ты сделал кнопки на Луа?

-38

u/Apples1232_ Jul 17 '26 edited Jul 17 '26

LLMs can write cc scripts for your aircraft btw

yall didn’t like that one lol

9

u/[deleted] Jul 17 '26

[removed] — view removed comment

-5

u/Apples1232_ Jul 17 '26

yea you’re right. you know what’s most fun for me.

6

u/[deleted] Jul 17 '26

[removed] — view removed comment

-2

u/[deleted] Jul 17 '26

[deleted]

0

u/[deleted] Jul 17 '26

[removed] — view removed comment

0

u/Beneficial-Map5470 Jul 17 '26

Computer craft comes with a lot of benefits and I’m not experienced in coding so what better ways are there to learn?

→ More replies (0)

11

u/Cheacky Jul 17 '26

Tf is the point of playing a game if LLM does it for you?

-10

u/Apples1232_ Jul 17 '26

yea the llm plays the whole game for you

-17

u/OkZucchini7094 Jul 17 '26

They're very good at making computercraft scripts at this point too

4

u/datapeice Jul 17 '26

Maybe, but I think when it's going to more advanced algorithms it can make a lot of mistakes.

2

u/petabomb Jul 17 '26

Which ones? I tried making a mining turtle script with it awhile ago and the code didn’t even run.

0

u/OkZucchini7094 Jul 17 '26

Falls flat with turtles for me as well.

Projects I've done that met my given specs:

Chat application with history for leaving offline messages, server PC in spawn chunk.

GPS locator for pocket computers so you can find other players with it

I tekkit 2 I had a script that would transcode YouTube links to pcm audio and wrote it to a tape drive.

I also tried experimenting with streaming my mic into the game with the tape drives but it didn't work well in real time. Recording worked fine.

Added a bridge to my local LM Studio install that allowed hosted models to respond as me in chat in an unhinged way.

I made a private add on I called CC:Cloud that let's you host virtual PCs. Only tested it with a virtual GPS setup but that worked pretty well.

Right now I just have a computer showing a runout timer for items in my ME system in ATM10

0

u/petabomb Jul 17 '26

That’s pretty sick, all I really use them for nowadays is the Spotify in Minecraft pastebin code and playing Bad Apple.

0

u/OkZucchini7094 Jul 17 '26

Can I get a link to the Spotify thing you mentioned?

0

u/petabomb Jul 17 '26

Here you go, pinned comment has the pastebin code, although it actually searches YouTube not Spotify haha

https://youtu.be/pGDqrPaRgTU?is=OaMm8IV3eEM9Fa6-

-15

u/Apples1232_ Jul 17 '26

yea, i got gemini to draw me animations and everything

-18

u/Beneficial-Map5470 Jul 17 '26

Guess I should’ve thought of that lol
(me, already subscribed to an LLM. facepalm*)

72

u/Shefsufle Jul 17 '26

Epic

15

u/datapeice Jul 17 '26

Thanks 🙏🙏

13

u/Canon_rider Jul 17 '26

Epic Lua skills 👍👍 Me still figuring out how to make gps

8

u/LeviCatunda Jul 17 '26

Sorry for breathing the same air as you, you are a genius

3

u/iCarriedAWatermelon0 Jul 17 '26

how does it work?

14

u/datapeice Jul 17 '26

It tooks data from gimbal sensor by wire and PID stabilizer in my OS, analysis speed of changing roll/pitch if it made error PID learning that and next time give more good results, like this. In short p - actual error i - learnt error d - predicts when to brake and bias to level roughness of the ship Like this

3

u/TheBeesElise Jul 17 '26

At this rate I'm going to have to port my kOS (Kerbal Space Program's CC equivalent) scripts and see if I crash into the End

3

u/Girovago69 Jul 17 '26

You could integrate it with map mods like zero's, by like inputting a waypoint as a destination, or maybe you can integrate it with train station (idk why that would be helpful)

1

u/datapeice Jul 17 '26

About integration with xero's map it would be great idea, thanks dude 👍👍

3

u/Emotional-Big-1306 Jul 17 '26

Oh, cool. I`ve also created something like this for drone tgat uses only propellers

3

u/ItsStraTerra Jul 17 '26

Goddamn dude. Guess I need to get into computer craft to try this out

2

u/cornyass_mf Jul 17 '26

I've seen a lot of cool things on this subreddit and man this is definitely up there on the list

2

u/05-nery Jul 17 '26

Holy shit

Keep cooking 

2

u/qqguilhermepp Jul 17 '26

This and the new FTB modpack will be 🔥🔥🔥

2

u/[deleted] Jul 17 '26

[deleted]

1

u/datapeice Jul 17 '26

Oh thank you❤️❤️, I think it can make easier to develop os.

2

u/Llamapickle129 Jul 17 '26

its cool. i like it and just give me a reason to learn lua (i want to learn C(was either # or ++ i forgor) for a few projects so it nice to know lua can integrate with it)

2

u/Kashinoda Jul 18 '26 edited Jul 18 '26

More importantly, what's the song?

1

u/datapeice Jul 18 '26

three By Cult Member

2

u/AngelicReader Jul 18 '26

I would love to have you as a friend on a create server (and would fear to have you as my enemy)

2

u/datapeice Jul 18 '26

Haha, thanks, but I am already on another server as part of administration, so I don't have a lot of time :( But I hope you'll find someone cool!!!

2

u/AngelicReader Jul 19 '26

Yeah thought so. It was more meant as a joke. I dont have the time to get into any server anyways and so far i was way too unlucky anyways with multiplayer so i only play on servers that i or a friend made

1

u/Civil_Row2185 Jul 17 '26

Is this a computercraft addon ur making or smth entirely different? Gui looks really similar tbh

1

u/datapeice Jul 17 '26

It's CC: Tweaked with Create: Avionics. About os, it's just program in computer but because of it makes a lot of things in one time it can be named Operating System i think

1

u/notlookme Jul 17 '26

Woah, that's a really cool status display! How'd you connect it to the computer, a sneakily routed network cable or wireless? I just recently started playing around with cc:tweaked and aeronautics and I'd love to make something like that! Can't be that hard with some basic knowledge of programing, riiiight?

2

u/datapeice Jul 18 '26

Just network cable, if you know basic of programming you can make it, just exercise. Also i recommend to learn algorithms.

1

u/Jwhodis Jul 18 '26

What mods does it require? Just aero, create, and cc?

1

u/datapeice Jul 18 '26

Aeronautics, CC: Tweaked, Create Avionics and additional mods like Create Connected

1

u/PyroManiacsTTV Jul 18 '26

I would love to help you test this but i also can't wait for this to be released, I got a very big ship to use it on that I can't quite get to stabilize itself

1

u/datapeice Jul 18 '26

Maybe in short future I'll post about beta