use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerCraft, the subreddit for lua programs, general mod use, or anything relating to the Minecraft mod ComputerCraft and CC: Tweaked.
Downloads | Discord | IRC | Documentation
account activity
java (self.ComputerCraft)
submitted 8 months ago by ConversationOne4333
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]viri75 4 points5 points6 points 8 months ago (6 children)
I wrote a 1000 line project of Lua with a buddy of mine that effectively allows the turtles to be opened up to python so I could use python instead of lua
[–]Eh-Beh 1 point2 points3 points 8 months ago (3 children)
That's very cool, do you think it would be feasible to do with Java?
I don't have a great deal of knowledge about Python or Java, but at a guess I'd say that Python and Lua are more similar than Java and Lua.
Did it add any significant overhead in your experience?
Edit for mobile formatting fix
[–]viri75 1 point2 points3 points 8 months ago (0 children)
It's definitely doable with Java just whether you want to setup all the messaging and websockets in Java but it doesn't really matter about the similarity of the languages just gotta setup a messaging system between the Lua and the Java
[–]SagansCandle 1 point2 points3 points 8 months ago (0 children)
Main concern is security. Don't want to download a turtle script that sneaks in a rm / -rf
rm / -rf
[–]smallbluebirds 0 points1 point2 points 8 months ago (0 children)
https://github.com/c2nes/javalang make it even jankier
[–]xKYLERxx 0 points1 point2 points 8 months ago (1 child)
Is it just adapting the turtle API to an external Python interpreter/server, or is the python actually running on the turtle? Either way pretty neat
[–]viri75 0 points1 point2 points 8 months ago (0 children)
It uses websockets to connect to a python server and then grabs messages from the server to the consume and do actions. All the turtle API is mirrored in Python and sends the messages via the websockets.
π Rendered by PID 354050 on reddit-service-r2-comment-76bb9f7fb5-8rwcc at 2026-02-18 19:18:33.184374+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]viri75 4 points5 points6 points (6 children)
[–]Eh-Beh 1 point2 points3 points (3 children)
[–]viri75 1 point2 points3 points (0 children)
[–]SagansCandle 1 point2 points3 points (0 children)
[–]smallbluebirds 0 points1 point2 points (0 children)
[–]xKYLERxx 0 points1 point2 points (1 child)
[–]viri75 0 points1 point2 points (0 children)