我的世界二维码生成器:方块、指令和指南

在我的世界里搭出能用的二维码:方块数量、含 /fill 和 /setblock 指令的 .mcfunction 文件,以及逐行指南。免费,在浏览器中生成。

免费无需注册无水印在浏览器中运行

工具本身的按钮和标签目前仍为英文。

Error correction
L makes the smallest build. M is the usual choice; the build is clean, so higher levels only add blocks.
Build it
Replaces the ground layer under your feet, starting one block east and one block south of where you stand. Row 1 is the north edge.

Viewing it

Flat: fly up and look straight down with north at the top of the screen, so the whole code and its border fit on screen. Wall: stand back and face it head on. Keep the light border clear of grass, water and torches. Then scan your screen with a phone; turn off shaders and raise the brightness if it struggles.

Scans in the preview33 × 33 blocks1,089 blocks in all162 commands

Want scan counts and a destination you can change after it is built? Make it a free dynamic code; its short link also keeps the grid small. Want the code to be your artwork? Make a picture code.

BlockIDCountStacks of 64
Black concreteblack_concrete3245 + 4
White concretewhite_concrete76511 + 61

Java Edition

Cheats (or operator) on. Put the file in a datapack in your world folder at datapacks/qr/data/qr/function/qr_code.mcfunction (the folder is functions before 1.21), next to the pack’s pack.mcmeta. Run /reload, stand where the build should start, then /function qr:qr_code.

Bedrock Edition

The commands are the same in current Bedrock (1.21 and later). Function files live in a behavior pack: functions/qr_code.mcfunction, run with /function qr_code, up to 10,000 commands per file. Older Bedrock versions used data values (such as concrete 15) instead of these block names. You can also paste the copied commands into chat or command blocks one at a time.

Row-by-row guide (33 rows)

Survival build: row 1 is the north edge, each row runs west to east. Numbers are runs of the same block.

Minecraft is a trademark of Mojang; this tool is not affiliated.

1

输入链接或文本,选择深色和浅色的方块。

2

选择平铺在地面,或者像墙一样竖起来。预览、方块数量和指令会随你的输入更新。

3

运行 .mcfunction 文件、粘贴指令,或者照着逐行指南手工搭建。

常见问题

在我的世界里搭的二维码能扫出来吗?+

能。让手机对着屏幕,把整个二维码连同边距一起放进取景框。黑色和白色混凝土的对比度最强。光影、雾气和昏暗的光线会让它更难扫,扫码时请把它们调低。

哪些方块效果最好?+

白色混凝土配黑色混凝土:纯色,没有纹理。羊毛和石英也可以。避免纹理复杂的方块,以及亮度相近的搭配。

怎么运行 .mcfunction 文件?+

在 Java 版里,把它放进你世界的数据包,运行 /reload,再运行 /function。在基岩版里,把它放进行为包的 functions 文件夹。两者都需要开启作弊。指令是相对于你所站位置(~ ~ ~)的。

基岩版的指令不一样吗?+

在当前版本中不会:使用这些方块名称的 /fill 和 /setblock 在两者中都可用。不同的是函数文件的加载方式,而且基岩版一个文件最多运行 10,000 条指令。旧版基岩版用数据值而不是方块名称。

需要多少个方块?+

最短的链接是 21 × 21 的二维码;加上标准的 4 个方块的边距就是 29 × 29,共 841 个方块。二维码版本每升一级,每个方向增加 4 个方块。每种方块的数量,工具会替你数好。

更多免费工具

更多3D、AR 与艺术工具全部工具

下一步

让二维码本身成为作品。

这些工具用来制作和检测常规二维码。AriaQR 则能把你的照片、Logo 或插画直接变成二维码本身,下载前已在真实解码器上验证,还支持修改链接和统计扫码数据。

《戴珍珠耳环的少女》被还原成可扫描的二维码,由 AriaQR 制作