Download Fungecraft - a Minecraft programming language — Minecraft Mods — MetaMods
Fungecraft - a Minecraft programming language

Fungecraft - a Minecraft programming language

Active

Downloads

0

Last update

2 years ago

Versions

1.19 — 1.19.3
Server
Technological

Fungecraft - a Minecraft programming language

Get the ability to code directly in the Minecraft world! Fungecraft is a unique modification that transforms regular game blocks into elements of a real programming language.

How to start programming

To launch your first program, place a stone block on the ground. Then, while looking at this block, execute the command /trigger fungecraft.play. Your program will begin execution one block south of the stone. Execution will continue moving south until the program encounters a direction change operator or hits a bedrock obstacle, which will terminate the program.

Basic operations

The system includes various types of operators to create complete programs:

Direction: Use magenta glazed terracotta, which works as a direction pointer. When reaching this block, the program will continue execution in the direction indicated by the arrow.

Mathematical operations:

  • Addition: Oxidized copper block
  • Subtraction: Jukebox
  • Multiplication: Honeycomb block
  • Division: Light blue glazed terracotta
  • Modulo: Nether quartz ore

Each mathematical operation pops two values from the stack (first b, then a) and returns the result of the operation calculated using a and b. For example, with a subtraction operation, the program will pop 3, then 2 and return the result 2 - 3.

Block encoding system (MSBE)

The table presents the complete block encoding system for working with the language:

Colored wool range (0-15): Black, gray, brown, light gray, white, red, orange, yellow, green, lime, cyan, light blue, blue, purple, pink

Concrete powder colors (16-31): Corresponds to the same colors as wool

Various functional blocks (32-64): Air, bamboo, colored concrete, lava cauldron, nether quartz ore, observer, honeycomb block, oxidized copper block, oak sign, jukebox, warped sign, light blue glazed terracotta, chest, dispenser, purple glazed terracotta (directions), dropper, bedrock, various types of stone and ores

Special mechanisms (65-126): Stone, cobblestone, deepslate, coal ore, copper ore, iron ore, lapis ore, redstone ore, emerald ore, diamond ore, piston, ancient debris, redstone mechanisms, terracotta, note block, sticky piston, carpets, lectern

This encoding system provides everything needed for writing complex programs directly within the Minecraft game world.

Project members
GearsDatapacks

GearsDatapacks

Developer

Created: 10 Jan 2023

ID: 23791