promotional bannermobile promotional banner

cc wasm

add wasm support for computer craft

Description

this mod add wasm support for CC: Tweaked.

this mod uses chicory runtime, and includes wasi support

Usage

  • put .wasm file in wasm folder.
  • in lua in computer craft, run wasm.load_wasm function to load a module. Note that the argument does not contains a .wasm extend name.

Wasm development

use this crate

see the example here

Example

minesweeper example

wasm file,

  • download this file and put it in ./wasm/
  • place a monitor on top of a computer
  • in computer craft's shell run exec_wasm_auto_reload minesweeper

there is a python interpreter example, download this file and put it in ./wasm/, and then in computer craft lua run:

py = wasm.load_wasm("python")

py.init()

py.exec("import time as t")

print(py.eval("t.time()"))

The cc wasm Team

profile avatar
  • 2
    Followers
  • 3
    Projects
  • 16.1K
    Downloads

More from iunggognsoinr

  • fpv20 project image

    fpv20

    • 15.3K
    • Mods

    a new fpv mod in 1.20.1 fabric

    • 15.3K
    • January 3, 2026
    • Mods
    • +2
  • simply snow project image

    simply snow

    • 576
    • Mods

    A mod that changes the behavior of vanilla snow.

    • 576
    • February 11, 2024
    • Mods
  • fpv20 project image

    fpv20

    • 15.3K
    • Mods

    a new fpv mod in 1.20.1 fabric

    • 15.3K
    • January 3, 2026
    • Mods
    • +2
  • simply snow project image

    simply snow

    • 576
    • Mods

    A mod that changes the behavior of vanilla snow.

    • 576
    • February 11, 2024
    • Mods