Brickadia logo Brickadia icon
Search Blog Servers Contact
Login
Back to gallery
Preview of Lua Chip
Prefab preview
Prefab

Lua Chip

Created by Ldr20

A CPU running Lua: it runs Lua 5.5 code (excluding the more exotic features) and supports IO inputs and outputs of different types. To use: connect the inputs (optional), paste your code into the program port or in the variable gate above the chip. Set run to 1 or use the switch. Whatever the code prints shows up on log. See the progDebug output in case of issues. It contains 40k+ gates so the game locks up for a bit when copy-pasting it but it seems to work well after placing it. The first program run is a bit slower than the next because it needs to parse the program first. Every input change restarts the program to recompute the outputs automatically except for inStrArr and inNumArr, so they can be used to have a program that keeps running on updated data. Source code: https://github.com/Ldr2451/LuaCPUBrick

Microchip Megabuild
1 likes
6 views
View in game

Published
October 10, 2026 at UTC
Updated
October 10, 2026 at UTC
Version
1
Share code
d0e-v2a-v63

User-submitted content

This page was automatically generated from content submitted by a user. It has not been authored, verified, or endorsed by Brickadia, LLC. Report inappropriate or unlawful content here.

More by Ldr20

Explore more prefabs from this creator.

Formula gate
0
20
Ldr20
Magnet cubes
2
37
Ldr20
Decal suspension
0
14
Ldr20
Decal piston
0
12
Ldr20
Small piston
0
15
Ldr20
Servo controller v2
0
20
Ldr20
Trammel gears chained
1
30
Ldr20

More prefabs to explore

Keep discovering what the Brickadia community is building.

Browse all
Honda Element
1
2
cookingpork_w_ham
ragBOT
1
13
TAPKER
Flying Broomstick (Courier)
2
20
Macgyverthehero
Lunge Spear
1
19
TeamTubeTV
German Police Car
1
12
Moon Wolf
IBM PS/1 Computer
1
15
cet
Venus Midi-Navigator
1
14
HeyItzSwecool
Apple iic
1
22
cet
Simple Hover Module
1
25
PyroNicampt
BMX Stunt Bike
7
65
Stratofortress
Gilbern Invader III
1
25
Lunakibby
70s V6 Engine
1
15
Lunakibby

© 2025 Brickadia, LLC • All rights reserved.
Brickadia is a registered trademark of Brickadia, LLC.

Navigation Search Blog Servers Contact Login
Support Contact Media Kit
Legal Terms Privacy