介绍
Blocky C lets you write and run C styled code directly inside Minecraft.
Write programs using familiar syntax like int, char, printf, fgets, arrays, sizeof, and basic pointers, then use Blocky C’s Minecraft API to control the game.
You can:
- move the player;
- break, punch, place, and interact with blocks;
- use items;
- work with inventory actions;
- smoothly rotate the player’s camera;
- run actions one after another in sequence.
Example:
#include <stdio.h>#include <blockyc.h>
int main(){
printf("started!\n");player.rotate(90.0, 0.0, 90.0); player.move("forward", 10); printf("done!\n"); return 0;
}
Blocky C includes an in game editor with features inspired by VS Code:
- live syntax errors;
- code warnings;
- autocomplete suggestions;
- problems panel with line and column numbers;
- adjustable sidebar, editor, and output sizes;
- built-in example projects.
“why should I even use it??”
Blocky C is made for players who want to learn coding in C, experiment with C styled code, or automate minecraft using actual programming concepts instead of only commands.
Write code and see what it does in minecraft, find mistakes directly in the editor and experiment without constantly leaving the game!
for modrinth mods: the delay for player actions is 1 seconds so players can’t do impossible movements.
Copyright disclaimer:
This mod is the intellectual property of FedrilloMC.
© Blocky C. All rights reserved.
You may use this mod for personal purposes only, but you may not redistribute, reupload, sell, sublicense, modify and redistribute, or include this mod or any part of its files or source code in another project without prior permission from the copyright holder.
常见问题
Blocky C 支持哪些 Minecraft 版本?
Blocky C 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Blocky C 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分