? 模组说明
本模组添加了四个方块,帮助你在 Minecraft 中运行 Brainf**k 程序——一种极简但图灵完备的编程语言。
? Brainf**k 概述
Brainf**k 程序仅由 8 个符号组成:
< 和 >:在内存中左右移动指针。在本模组中,这表现为指针方块向左或向右移动。
+ 和 -:增加或减少当前内存单元的值。
[ 和 ]:创建循环。当程序到达 [ 时,如果当前单元为 0,则跳过至匹配 ] 之后的命令;当到达 ] 时,跳回匹配的 [。
.:将当前内存单元的值输出为 ASCII 字符。
,:读取单个输入字符,并将其 ASCII 值存储到当前内存单元中(本模组尚未实现此功能)。
? 模组特性
指针方块 (Pointer Block)
模拟 Brainf**k 中的指针。右键点击打开 GUI 并编辑程序;Shift + 右键点击以运行它。指针所面向的方块代表当前内存单元。输出内容显示在方块上方。该方块可能会爆炸。
内存单元 (Memory Unit):
基本内存方块。其值可被指针修改。支持负数。
随机方块 (Chance Block):
生成随机数(1-6 或 (-1)-(-6))。
布尔单元 (Boolean Unit):
具有两种状态:True 和 False。可通过 + 和 - 切换。
颜色单元 (Color Unit):
显示一种颜色。+ 和 - 命令用于调整 RGB 值。默认情况下,它们修改红色。使用 . 可在正在修改的颜色之间循环(例如,第一次按下影响绿色,下一次影响蓝色,依此类推)。
? Bug 报告与建议
本模组可能包含许多错误。你可以在 Github 上报告错误或提出新功能建议。
源代码尚未公开,但我计划在未来发布。
? 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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧