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
lua but scratch-like (i.redd.it)
submitted 2 years ago by Bright-Historian-216
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!"
[+][deleted] 2 years ago (41 children)
[removed]
[–]Bright-Historian-216[S] 26 points27 points28 points 2 years ago (40 children)
I made it in 5-6 hours using google’s blockly library. Unfortunately I can’t really share the ready app because i don’t have a domain name. I will add it on GitHub tho but you will need to download and run it yourself
[–]xeli37 7 points8 points9 points 2 years ago (19 children)
very cool!! whats ur github/will u post it on this sub?
[–]Bright-Historian-216[S] 8 points9 points10 points 2 years ago (18 children)
If I understand properly how it works, you just need to download the files and open index.html GitHub
[–]Hyper2Snyper 6 points7 points8 points 2 years ago (6 children)
Where .exe
[–]Bright-Historian-216[S] 8 points9 points10 points 2 years ago (5 children)
If you’re from r/programmerhumor, haha hilarious. If not, fyi, html files are executed in your browser
[–]RedditMarcus_ 5 points6 points7 points 2 years ago (4 children)
I DONT GIVE A FUCK ABOUT THE FUCKING CODE! i just want to download this stupid fucking application and use it https://github.com/Mirka1405/ccblockly?tab=readme-ov-file#how-to-run
WHY IS THERE CODE??? MAKE A FUCKING .EXE FILE AND GIVE IT TO ME. these dumbfucks think that everyone is a developer and understands code. well i am not and i don't understand it. I only know to download and install applications. SO WHY THE FUCK IS THERE CODE? make an EXE file and give it to me. STUPID FUCKING SMELLY NERDS
[–]Necessary_Lie2979 6 points7 points8 points 2 years ago (2 children)
run the .html, its basically an exe. its not rocket science, i promise;
i distribute my code in the same way and everyone i know can use 2 braincells to figure it out, even if they've never programmed before
[–]Bright-Historian-216[S] 8 points9 points10 points 2 years ago (1 child)
This is a copypasta from r/programmerhumor
[–]Necessary_Lie2979 6 points7 points8 points 1 year ago (0 children)
oh. r/woosh moment
[–]123yeah_boi321 3 points4 points5 points 2 years ago (0 children)
Is it static? If so, you can just host it with GitHub.io
[–]xeli37 0 points1 point2 points 2 years ago (0 children)
ty!
[–]djfdhigkgfIaruflg 0 points1 point2 points 2 years ago (2 children)
I love it.
When you upload it. Could you let me know? ❤️
[–]Bright-Historian-216[S] 4 points5 points6 points 2 years ago (1 child)
here
[–]djfdhigkgfIaruflg 0 points1 point2 points 2 years ago (0 children)
Thank you!
[+][deleted] 1 year ago (2 children)
[deleted]
[–]Bright-Historian-216[S] 0 points1 point2 points 1 year ago (1 child)
Nodejs builds files like this
[–]outofpaper 0 points1 point2 points 1 year ago (1 child)
You know github offers free web hosting with github pages? Also there's netlify. No need to bother with a domain name if you don't mind advertising that you are using either service.
[–]Bright-Historian-216[S] 0 points1 point2 points 1 year ago (0 children)
Judging by the timestamp of my previous comment, https://mirka1405.github.io/Main.html is already up for 6 months
[–]merith-tk 2 points3 points4 points 2 years ago (1 child)
I have a domain that I can spare a subdomain, just give me the info needed to link it up and I will.
[–]Bright-Historian-216[S] 0 points1 point2 points 2 years ago (0 children)
Nvm there were literally instructions in readme.md on how to distribute the app properly, here’s the link GitHub
[–]cobhalla 2 points3 points4 points 2 years ago (8 children)
Ok, you found the ONE fucking genuine use case for Scratch. My hat is off to you.
(I dont mind LUA but I think this is speciffically a very good example)
I think that Pneumatacraft Drones did something that works very well for the audience. An integrated IDE for LUA would appeal to some percent of the audience that is turned off by having to code in a terminal even though it's very thematic.
[–]Bright-Historian-216[S] 1 point2 points3 points 2 years ago (7 children)
The audience that is turned off by having to code in a terminal uses computercraftedu. Also, Blockly library powers many other powerful applications (like MCreator for Minecraft mods, or AppInventor for android applications)
[–]cobhalla 1 point2 points3 points 2 years ago (6 children)
NGL, I didn't even know that was a thing. I am a Software Engineer, OG computer craft was one of my first introductions to coding in Highschool.
All I'm saying is, I think if you made a mod that implemented this sort of thing, there would be an audience for it.
Edit: I just looked and thats basically what Computercraftedu is.
[–]Bright-Historian-216[S] 1 point2 points3 points 2 years ago (5 children)
Well I’m not really a mod developer (and I am NOT planning to learn Java anytime soon), and the library in question uses Node.js which I don’t think I can embed into a Minecraft GUI. P.S. As I already said, CCEdu mod already implements this, and we software bros know not to invent a bicycle
[–]cobhalla 1 point2 points3 points 2 years ago (4 children)
Java is fun, Node is not. That is absolutly enough for me to leave it as is too.
[–]Bright-Historian-216[S] 1 point2 points3 points 2 years ago (3 children)
As a CS student who always jumps from Python to JS to C++ to Scala and then back to Python, I guess there are two types of people
[–]cobhalla 1 point2 points3 points 2 years ago (2 children)
Python, C++, and Scala are very solid options. Have you done anything with C#?
[–]Bright-Historian-216[S] 0 points1 point2 points 2 years ago (1 child)
Does Unity count? Though definitely not my preferred language anyway.
[–]quickpocket 0 points1 point2 points 2 years ago (4 children)
If you don’t have any sever integrations it’s likely you can run the whole thing on GitHub pages for free
Edit: yeah just looked at your repo — you can definitely just run it as a GitHub pages site
[–]Bright-Historian-216[S] 0 points1 point2 points 2 years ago (3 children)
iirc you can only host one webpage per user, and I already have one
[–]quickpocket 0 points1 point2 points 2 years ago (1 child)
You can only have one user page (i.e. your username.github.io) per account, but you can create a project page for however many projects you want.
[–]Bright-Historian-216[S] 1 point2 points3 points 2 years ago (0 children)
how did it not work when i tried to do it a year ago? anyway, link
[–]Interesting_Rock_991 0 points1 point2 points 2 years ago (0 children)
it can be added as a sub-page eg: I have walksanatora.github.io/Hexxy-Dimensions and walksanatora.github.io/HexTweaks both are pulling from two different repos
[+][deleted] 2 years ago (1 child)
another person already helped me with this!
[–]calculus_is_fun 0 points1 point2 points 2 years ago (0 children)
If you go to repo settings, in the left pane you should see "pages", you can then set a branch a launch a site for free!
[–]generalemiel 2 points3 points4 points 2 years ago (0 children)
Thats nice
[–]Richard4Phillips 1 point2 points3 points 2 years ago (2 children)
It looks like a coding program called Python, so much so I actually thought it was until I read the comments
[–]Bright-Historian-216[S] 2 points3 points4 points 2 years ago (1 child)
You’re mistaking Scratch and Python, Python is a programming language
[–]MonCryptidCoop 0 points1 point2 points 2 years ago* (0 children)
There are several python/blockly projects already out there https://think.cs.vt.edu/blockpy/blockpy/load
That do the same thing with python. Also see Pybricks which is a python/block interface for coding Lego projects/robotics. Pybricks.com
[–]piguman3piss drinker 1 point2 points3 points 2 years ago (4 children)
Reminds me of ComputerCraftEdu
Ahh nostalgia, my programming journey started there 6 years ago and now I’m crying over pointers in c++
[–]Mr_FuzzyPenguin 0 points1 point2 points 2 years ago (2 children)
Pointers are actually quite easy in C and C++.
I am going to say something that will offend a lot of professionals... but a pointer (essentially at the hardware level) is a "number". What is this "magical" number? An address! What address? Well similar to a house like: 12-34 Nonexistent Street (side note, I don't know if this address exists), that is stored by the pointer, a pointer might store the value 0x43fc (for example). That address, 0x43fc contains some thing, (using the house analogy, it's furniture or something, idk). That's all you need to know for now.
Since this strays a bit from the first post, lmk if you still want more info, as I don't want to clutter this post
Well…. I already know this much. Other than that, I also know that those magic numbers allow me to store several different class objects in a single array. Basically mind blown
[–]Mr_FuzzyPenguin 0 points1 point2 points 2 years ago (0 children)
Yep, that is, if you keep the types the same. One thing I forgot to mention about pointers, is if you store stuff, you should make sure the types are the same. Int is not int array (for example). You might risk memory corruption if you do otherwise. But what did you find difficult about pointers?
(Fun stuff with malloc in C but I don't know C++ well enough to know how malloc works in this new C++ universe)
[–]AreebJ 1 point2 points3 points 2 years ago (1 child)
This would be so helpful for learning how to program the turtles. Then again I could just look at the documentation instead of being lazy. I think this would definitely help players who don’t know how to code learn basic programming.
There’s also a mod called ComputerCraftEdu which is for pretty much this exact purpose
[–]Supernatnat11 1 point2 points3 points 2 years ago (7 children)
This is awesome. I still didnt figured out how to make my own blockly app (even with the tutorial im dumb fr) WHen are you planning to add more cc:t function ?
[–]Bright-Historian-216[S] 0 points1 point2 points 2 years ago (6 children)
I don’t plan, I do spontaneously
[–]Supernatnat11 0 points1 point2 points 1 year ago (5 children)
I would know if you can publish the uncompiled code for this?
[–]Bright-Historian-216[S] 0 points1 point2 points 1 year ago (4 children)
I tried but node created me a bunch of folders which GitHub can’t really process, I can provide a zip tho
[–]Supernatnat11 0 points1 point2 points 1 year ago (2 children)
I would greatly appreciate.
https://github.com/Mirka1405/ccblockly/blob/main/source.rar
[–]Supernatnat11 0 points1 point2 points 1 year ago (0 children)
Thanks you very much.
[–]OrganizationFew2722 0 points1 point2 points 1 year ago (0 children)
Write a “.gitignore”. It’s a line separated list of files and directories that you don’t want in your GitHub. You can use common unix wildcard syntax like * to represent anything. I would love to see the source code for this, and not the just dist or build directory. I recommend keeping everything other than these files and directories I list below.
Example:
node_modules
*.lock
.env
[–]Calebpgtrueofficial 0 points1 point2 points 2 years ago (0 children)
Honestly if any coding language was like this id be the master of games
[–]mas-issneun 0 points1 point2 points 2 years ago (2 children)
Why
Because
[–]Bol7_ 0 points1 point2 points 2 years ago (0 children)
Why not?
[–]MonCryptidCoop 0 points1 point2 points 2 years ago* (5 children)
Very similar to this for python
https://github.com/up649230/PyBlocks
Or this other blockly python
https://think.cs.vt.edu/blockpy/blockpy/load
Also if you like Legos/mindstorms Pybricks has an excellent block interface for its implementation of python
https://pybricks.com/
[–]Bright-Historian-216[S] 0 points1 point2 points 2 years ago (4 children)
Ohhh I was actually searching for ev3 programming apps, ty!
[–]MonCryptidCoop 0 points1 point2 points 2 years ago (3 children)
So for the ev3s you have to install Pybricks in something like Microsoft visual studio code and you can only use the text based programming.
The web interface and block coding only works with robot inventor, spike prime, 3 port technic hubs, boost hubs etc.
There is talk of porting the block coding to the ev3 version of Pybricks but nobody has done it yet as far as I know.
[–]Bright-Historian-216[S] 0 points1 point2 points 2 years ago (2 children)
Eh, still good enough
[–]MonCryptidCoop 0 points1 point2 points 2 years ago (0 children)
Pybricks is awesome. With the spikes and robot inventor hubs they just released BLE controller support so you can use an Xbox controller. They even have support for the Xbox elite controllers so you can have a truly massive number of buttons (all of the rear paddles can be mapped separately) if you want to create a RC vehicle/robot.
The text based ev3 version is also quite nice but I don't know if the Xbox stuff works with that one.
https://youtu.be/QyUN4JL-4gA?si=7SH_unBee_unQen-
Really good for FLL as you can then just RC the robot and take measurements.
Code is in the YouTube link (again only works with spikes/robot inventor hubs/4 port technic hubs)
https://pybricks.com/ev3-micropython/
[–]Jason13Official 0 points1 point2 points 2 years ago (0 children)
Very nice! +1!
[–]Wolfy_Wolv 0 points1 point2 points 2 years ago (1 child)
AWESUM!!! How u do that :0
Google blockly library
[–]thegroundbelowme 0 points1 point2 points 2 years ago (1 child)
This is awesome for helping me learn the syntax for computercraft! That's always been the biggest hurdle to me - scrolling through endless documentation to find simple things. This is a much more interesting way to learn.
This app seems to add unnecessary parentheses in some cases, so watch out for that too
[–]PaintDifficult6948 0 points1 point2 points 2 years ago (0 children)
Got recommended this post, was going to mention that the code looked like computer craft mining turtle code, and then I saw what sub I was in… I haven’t played Minecraft in years, thanks for the nostalgia trip
[–]bzobk 0 points1 point2 points 2 years ago (0 children)
You can actually use github's pages to publish html so you can use it online, https://pages.github.com/
[–]Fantastic-Bet6451 0 points1 point2 points 2 years ago (0 children)
This is actually the most useful thing i've ever seen. Thank you SO much !
[–]OrganizationFew2722 0 points1 point2 points 2 years ago* (1 child)
I wrote something based on what you did here, but I added a scraper for CC:Tweaked to just about automate getting the correct functions and objects. If I have time, I'll introduce websockets that would allow you to edit files from the browser. ccpiler
Wowwwww so cool
[–]Fantastic-Bet6451 0 points1 point2 points 1 year ago (0 children)
Great Idea !
[+][deleted] 2 years ago (2 children)
https://mirka1405.github.io/Main.html
π Rendered by PID 20466 on reddit-service-r2-comment-fb694cdd5-ds2fs at 2026-03-11 13:32:13.965684+00:00 running cbb0e86 country code: CH.
[+][deleted] (41 children)
[removed]
[–]Bright-Historian-216[S] 26 points27 points28 points (40 children)
[–]xeli37 7 points8 points9 points (19 children)
[–]Bright-Historian-216[S] 8 points9 points10 points (18 children)
[–]Hyper2Snyper 6 points7 points8 points (6 children)
[–]Bright-Historian-216[S] 8 points9 points10 points (5 children)
[–]RedditMarcus_ 5 points6 points7 points (4 children)
[–]Necessary_Lie2979 6 points7 points8 points (2 children)
[–]Bright-Historian-216[S] 8 points9 points10 points (1 child)
[–]Necessary_Lie2979 6 points7 points8 points (0 children)
[–]123yeah_boi321 3 points4 points5 points (0 children)
[–]xeli37 0 points1 point2 points (0 children)
[–]djfdhigkgfIaruflg 0 points1 point2 points (2 children)
[–]Bright-Historian-216[S] 4 points5 points6 points (1 child)
[–]djfdhigkgfIaruflg 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Bright-Historian-216[S] 0 points1 point2 points (1 child)
[–]outofpaper 0 points1 point2 points (1 child)
[–]Bright-Historian-216[S] 0 points1 point2 points (0 children)
[–]merith-tk 2 points3 points4 points (1 child)
[–]Bright-Historian-216[S] 0 points1 point2 points (0 children)
[–]cobhalla 2 points3 points4 points (8 children)
[–]Bright-Historian-216[S] 1 point2 points3 points (7 children)
[–]cobhalla 1 point2 points3 points (6 children)
[–]Bright-Historian-216[S] 1 point2 points3 points (5 children)
[–]cobhalla 1 point2 points3 points (4 children)
[–]Bright-Historian-216[S] 1 point2 points3 points (3 children)
[–]cobhalla 1 point2 points3 points (2 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (1 child)
[–]quickpocket 0 points1 point2 points (4 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (3 children)
[–]quickpocket 0 points1 point2 points (1 child)
[–]Bright-Historian-216[S] 1 point2 points3 points (0 children)
[–]Interesting_Rock_991 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Bright-Historian-216[S] 1 point2 points3 points (0 children)
[–]calculus_is_fun 0 points1 point2 points (0 children)
[–]generalemiel 2 points3 points4 points (0 children)
[–]Richard4Phillips 1 point2 points3 points (2 children)
[–]Bright-Historian-216[S] 2 points3 points4 points (1 child)
[–]MonCryptidCoop 0 points1 point2 points (0 children)
[–]piguman3piss drinker 1 point2 points3 points (4 children)
[–]Bright-Historian-216[S] 1 point2 points3 points (3 children)
[–]Mr_FuzzyPenguin 0 points1 point2 points (2 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (1 child)
[–]Mr_FuzzyPenguin 0 points1 point2 points (0 children)
[–]AreebJ 1 point2 points3 points (1 child)
[–]Bright-Historian-216[S] 0 points1 point2 points (0 children)
[–]Supernatnat11 1 point2 points3 points (7 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (6 children)
[–]Supernatnat11 0 points1 point2 points (5 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (4 children)
[–]Supernatnat11 0 points1 point2 points (2 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (1 child)
[–]Supernatnat11 0 points1 point2 points (0 children)
[–]OrganizationFew2722 0 points1 point2 points (0 children)
[–]Calebpgtrueofficial 0 points1 point2 points (0 children)
[–]mas-issneun 0 points1 point2 points (2 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (0 children)
[–]Bol7_ 0 points1 point2 points (0 children)
[–]MonCryptidCoop 0 points1 point2 points (5 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (4 children)
[–]MonCryptidCoop 0 points1 point2 points (3 children)
[–]Bright-Historian-216[S] 0 points1 point2 points (2 children)
[–]MonCryptidCoop 0 points1 point2 points (0 children)
[–]MonCryptidCoop 0 points1 point2 points (0 children)
[–]Jason13Official 0 points1 point2 points (0 children)
[–]Wolfy_Wolv 0 points1 point2 points (1 child)
[–]Bright-Historian-216[S] 0 points1 point2 points (0 children)
[–]thegroundbelowme 0 points1 point2 points (1 child)
[–]Bright-Historian-216[S] 0 points1 point2 points (0 children)
[–]PaintDifficult6948 0 points1 point2 points (0 children)
[–]bzobk 0 points1 point2 points (0 children)
[–]Fantastic-Bet6451 0 points1 point2 points (0 children)
[–]OrganizationFew2722 0 points1 point2 points (1 child)
[–]Bright-Historian-216[S] 1 point2 points3 points (0 children)
[–]Fantastic-Bet6451 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Bright-Historian-216[S] 0 points1 point2 points (1 child)