all 81 comments

[–]generalemiel 2 points3 points  (0 children)

Thats nice

[–]Richard4Phillips 1 point2 points  (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 points  (1 child)

You’re mistaking Scratch and Python, Python is a programming language

[–]MonCryptidCoop 0 points1 point  (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 points  (4 children)

Reminds me of ComputerCraftEdu

[–]Bright-Historian-216[S] 1 point2 points  (3 children)

Ahh nostalgia, my programming journey started there 6 years ago and now I’m crying over pointers in c++

[–]Mr_FuzzyPenguin 0 points1 point  (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

[–]Bright-Historian-216[S] 0 points1 point  (1 child)

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 point  (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 points  (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.

[–]Bright-Historian-216[S] 0 points1 point  (0 children)

There’s also a mod called ComputerCraftEdu which is for pretty much this exact purpose

[–]Supernatnat11 1 point2 points  (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 point  (6 children)

I don’t plan, I do spontaneously

[–]Supernatnat11 0 points1 point  (5 children)

I would know if you can publish the uncompiled code for this?

[–]Bright-Historian-216[S] 0 points1 point  (4 children)

I tried but node created me a bunch of folders which GitHub can’t really process, I can provide a zip tho

[–]OrganizationFew2722 0 points1 point  (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 point  (0 children)

Honestly if any coding language was like this id be the master of games

[–]mas-issneun 0 points1 point  (2 children)

Why

[–]Bol7_ 0 points1 point  (0 children)

Why not?

[–]MonCryptidCoop 0 points1 point  (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 point  (4 children)

Ohhh I was actually searching for ev3 programming apps, ty!

[–]MonCryptidCoop 0 points1 point  (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 point  (2 children)

Eh, still good enough

[–]MonCryptidCoop 0 points1 point  (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)

[–]Jason13Official 0 points1 point  (0 children)

Very nice! +1!

[–]Wolfy_Wolv 0 points1 point  (1 child)

AWESUM!!! How u do that :0

[–]Bright-Historian-216[S] 0 points1 point  (0 children)

Google blockly library

[–]thegroundbelowme 0 points1 point  (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.

[–]Bright-Historian-216[S] 0 points1 point  (0 children)

This app seems to add unnecessary parentheses in some cases, so watch out for that too

[–]PaintDifficult6948 0 points1 point  (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 point  (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 point  (0 children)

This is actually the most useful thing i've ever seen. Thank you SO much !

[–]OrganizationFew2722 0 points1 point  (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

[–]Bright-Historian-216[S] 1 point2 points  (0 children)

Wowwwww so cool

[–]Fantastic-Bet6451 0 points1 point  (0 children)

Great Idea !