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
likes
10 views
View in game

Published
September 27, 2026 at UTC
Updated
September 27, 2026 at UTC
Version
1
Share code
u5t-d27-98k

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
17
Ldr20
Magnet cubes
2
35
Ldr20
Decal suspension
0
13
Ldr20
Decal piston
0
12
Ldr20
Small piston
0
14
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
Flung A100 Green
4
20
Radio BR BRASILEIRO
Casa Brasileira antiga
1
18
Radio BR BRASILEIRO
2x2 Modified Plate with Octagonal Bar Frame Lego 30033
1
6
MattLan
Abe
1
12
nyhobo75
Reg
1
8
nyhobo75
Blocky Trees
1
13
html
Baby Grand Piano (Black)
4
41
RadRooster
Baby Grand Piano (Brown)
3
24
RadRooster
Functional Bong V.2 (FIXED)
4
43
SaturnSol14
RES-Q Jet Ski
1
16
getsetbuild
Wire-rope
1
23
La Creatura Chaos
Baby with Removable Pacifier
1
17
RadRooster

© 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