mcmodwiki
Mods › Block_n_code › Guides › Block_n_code: Physical Programming with Stonecut Logic and Bottled Robots

Block_n_code: Physical Programming with Stonecut Logic and Bottled Robots

A Block_n_code guide. Covers Block_n_code block_n_code-1.2-BETA.jar on Minecraft 1.18.2.

Block_n_code turns programming into tangible architecture, swapping text editors for placed logic blocks, variable tokens, and programmable workers. Instead of memorizing dozens of separate crafting grids, the entire toolkit branches out from two foundational components shaped on a vanilla Stonecutter across 39 stonecutting recipes.

Forging the Core and Base Casings

Every circuit begins at the crafting table with a Code core, assembled from five Black Stained Glass Pane pieces and three Stone blocks. Surrounding a Code core with eight Iron Ingot pieces produces a Code structure, the blank chassis used for all physical instruction nodes.

Feeding a Code core directly into a Stonecutter carves it into typed data tokens rather than structural blocks, yielding a String variable reference, Number variable reference, or Boolean variable reference to track named values across your routine.

Control Flow, Variables, and Type Conversions

Slicing a Code structure on a Stonecutter unlocks the execution backbone of a program. Code start marks the entry point of a physical script, while Code loop repeats connected instruction chains. Data storage relies on Code variable creator to initialize values, Variable writer to update stored states, and String variable reader to pull text data back into active expressions.

Calculation and logic nodes come from the same Code structure stock:

World Interfaces and the Bottled Robot

Programs interact with surrounding builds through dedicated input and display blocks cut from Code structure. Redstone reader and Code redstone output bridge scripts with vanilla redstone lines, while Sign reader, Code sign printer, and Monitor read text from signs or display live output. For hands-on parameter entry, you can cut String manual input, Complex manual input, and Robot instruction manual input.

When stationary redstone and sign displays are not enough, Robot in a bottle packages mobile automation into a portable item. Crafting one combines six Block of Iron blocks, an Eye of Ender, a Code core, and a Glass Bottle, giving your stonecut instruction chains a physical worker to command.

In the data pages: minecraft:stonecutting recipes

Mods › Block_n_code › Guides › Block_n_code: Physical Programming with Stonecut Logic and Bottled Robots