跳到正文

BF Interpreter

作者:4tubborn

A datapack that implements a interpreter of BF

收藏

截图

介绍

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

It is just a BF interpreter.

BF is an esolang, an esoteric programming language, which means it is not designed for actual development, but only for fun. Besides, it also indicates that BF is fully Turing-complete.

Usage

Run

  • Press G to open the dialog screen.
  • Type BF code into the “Code” panel.
  • Type input into the “Input” panel if needed.
  • You can change the length of tape of memory cells by sliding “Array Length” silder.(Default: 100). Some programs require a longer tape, which probably influences performance.
  • Click “save” button to save the code and input.
  • Press G again and click “run” to run the interpreter.

Stop

  • Use /scoreboard players set #cmd_stop brainfuck.re 1 to stop the program.

Modification

  • Use /function brainfuck:debug/panel to config.

Link

  • Implementation Detail. https://cr-019.github.io/datapack-index/feature/archive/202602/6/content.html.
  • Video. https://www.bilibili.com/video/BV1TLzqBLEEZ/.

常见问题

BF Interpreter 支持哪些 Minecraft 版本?

BF Interpreter 支持 Minecraft Java 版 1.21.5–26.1.2,共 10 个版本。下载时注意选择和你游戏版本一致的文件。

BF Interpreter 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

4tubborn 的其他作品

查看全部 →