I made a drone with Tournament and Takeoff and then I programmed constant altitude, decent stabilization and the ability to go to a specified position with CC:Tweaked and Valkyrien Computers.
This is the result:
I also have some screenshots
2023-03-30_16.57.08.png
2023-03-30_16.57.47.png
2023-03-30_16.58.27.png
wow cool build, how would I go about making something like this? is it difficult to do?
For me I already knew how to code in other languages so it was just checking documentation. It would be a lot harder if I didn’t know how to code
It’s never too late to start. At least if it’s for something like this in minecraft it can be fun to learn. Coding is just logic, you tell the program exactly what to do
Highly suggest posting it here as well
https://discord.gg/minecraft-computer-mods-477910221872824320
ok so Valkyrien Computers has the ship reader and with that you can access things like the position and rotation of the ship
with the data from the ship helm you need to calculate when to give a redstone signal. For example in the constant altitude program I turn on the propeller If we’re below the target altitude and disable it when we’re above it
ComputerCraft (CC: Tweaked/Resticted) has ingame computers that run Lua for all its ingame programs
Basically VC let’s you grab necessary ship info, enough to try your hand at autopilot and your own stabilizer on your ships
yeah from the computer you can also create or edit a file using the edit command followed by the name of the file
does it use multiple files for things like finding the position of the ship?
So how CC works is that there are multiple attachments to a computer called Peripherals
There have their own separate methods that are hard-coded for those peripherals
My Ship Reader is one such peripheral
getWorldspacePosition() is really a Java method that is being called
finding the position of a ship is done with reader.GetWorldspacePosition() so it’s just a single line of code in one single file
So if you wanted to use my Ship Reader you’d do something like
local reader = peripheral.find("ship_reader")
reader.getWorldspacePosition()
If there is no peripheral with the ID “ship_reader” attached to the computer, itll error cuz then reader = nil
when I try it off a ship it says it isnt on a ship
but when I put it on a shipified build it doesnt give any data
5 replies not shown · View on Discord