Skip to content

Instantly share code, notes, and snippets.

View MrJCraft's full-sized avatar

MrJay MrJCraft

View GitHub Profile
@MrJCraft
MrJCraft / gen_mc_anim_script.d
Created May 25, 2026 01:17
animated minecraft builds. I use blender to export a model as an every seperate obj file as a seperate frame I solidify and remesh it using blender to use voxel, then I take each of those frames and compare them to get an optimized datapack of only the necessary setblocks of air and whatever block, I also set the limit for command chains to be t…
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;
import std.file;
enum GRID_SIZE = 800;
enum WORLD_HEIGHT = 360;
@MrJCraft
MrJCraft / gen_mc_anim_script.d
Created May 25, 2026 01:14
animated minecraft builds.
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;
import std.file;
enum GRID_SIZE = 800;
enum WORLD_HEIGHT = 360;