跳到正文

BrainF**k In Minecraft

作者:Sihuai2412

This is a Minecraft mod that adds four new blocks, allowing you to run simple Brainf**k programs — a Turing-complete programming language.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

📦 Mod Description

This mod adds four blocks to help you run _Brainf**k_ programs in Minecraft — a minimalist yet Turing-complete programming language.

🧠 Brainf**k Overview

_Brainf**k_ programs are made up of only 8 symbols:

< and >: Move the pointer left and right across memory. In this mod, this is visualized as the pointer block moving left or right.

+ and -: Increment or decrement the value at the current memory cell.

[ and ]: Create loops. When the program reaches [, if the current cell is 0, it skips to the command after the matching ]. When it reaches ], it jumps back to the matching [.

.: Outputs the value of the current memory cell as an ASCII character.

,: Reads a single character of input and stores its ASCII value in the current memory cell (not yet implemented in this mod).

🔧 Mod Features

Pointer Block
Simulates the pointer in Brainf**k. Right-click to open the GUI and edit the program; Shift + Right-click to run it. The block the pointer is facing represents the current memory unit. Output is displayed above the block. It might explode.

Memory Unit:
The basic memory block. Its value can be modified by the pointer. Supports negative numbers.

Chance Block:
Get random number(1-6 or (-1)-(-6)).

Boolean Unit:
Has two states: True and False. Can be toggled using + and -.

Color Unit:
Displays a color. The + and - commands adjust RGB values. By default, they modify red. Use . to cycle between which color is being modified (e.g., first press affects green, next affects blue, etc.).

🐛 Bug Reports & Suggestions

This mod may contain many bugs. You can report them or suggest new features at Github

The source code is not open yet, but I plan to release it in the future.

常见问题

BrainF**k In Minecraft 支持哪些 Minecraft 版本?

BrainF**k In Minecraft 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

BrainF**k In Minecraft 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分