Skip to content

How to script in BlocksC

nottheogbilly edited this page Nov 17, 2026 · 1 revision

BlocksC V6 Added scripting, and didnt make a UI to edit it inside of BlocksC, but it still exists.

1. Make sure Scripting is enabled

You can check this by looking in config.json

/WhereUrBlocksCIs/assets/config.json

image image

2. How do i script?

Pretty simple actually. /WhereUrBlocksCIs/assets/corescripts/ has a lua file

Also you CANNOT code in C++ or C or Ai's favoruite language Rust, only Lua.

image

editing THIS Lua file will let you script, here i've wrote a simple script, you can also use the default built-in example script.

image

This probably isnt recommened for my CPU. but anyway

3. Testing!

The fun part, First open BlocksC, in the terminal

image

You WILL See a SDL Error message. this does not matter

image

Now, all you gotta do is hit the play/run button

image

After hitting play, it will output if you did print or smth idk what ur script is. Here's the output after around 3ish seconds

image

And THAT is how you script [and test] In BlocksC