Skip to content

blendi-remade/falcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ falcraft - AI-Powered 3D Generation for Minecraft

A Fabric mod for Minecraft 1.21.1 that brings AI-powered 3D model generation directly into your game.

GitHub stars Minecraft Version Fabric API

๐Ÿ“บ Quick Demo

Watch the demo

โ–ถ๏ธ Watch on YouTube - See falcraft in action!

๐Ÿš€ Quick Start

  1. โฌ‡๏ธ Download Falcraft
  2. โฌ‡๏ธ Download Fabric API
  3. Drop both JARs in .minecraft/mods/
  4. Run /fal setkey "YOUR_KEY" (get key here)

๐Ÿ“– Full installation guide | Requires Minecraft 1.21.1 + Fabric Loader

๐ŸŽฎ Commands

Generate 3D Structures

/fal generate <size> <prompt>

Examples:

/fal generate 48 medieval castle
/fal generate 64 spongebob squarepants
/fal generate 96 ancient temple

Controls in preview mode:

  • Right-click - Place the structure
  • G - Rotate 90ยฐ

Size guide: 16-32 (small), 48-64 (recommended), 96-128 (large/detailed)

Generation takes ~30 seconds using Z-Image + SAM-3D pipeline.

Legacy Mode (Meshy-6)

For UV-textured models (~7 minutes):

/fal generate legacy <size> <prompt>

Remix Block Textures (Coming soon)

AI-powered texture remixing with undo/reset functionality - stay tuned!

โš™๏ธ Setup Details

  1. Install Fabric Loader + Fabric API for MC 1.21.1

  2. Drop the mod JAR in .minecraft/mods/

  3. Launch Minecraft and run:

    /fal setkey "YOUR_API_KEY"
    

    Get your API key at fal.ai/dashboard/keys

    Note: Wrap your API key in quotes to handle the special characters.

That's it! Your key is saved to config/falcraft/api-key.txt.

Check Status

/fal status

Shows if your API key is configured.

๐Ÿ’ฐ API Cost

This mod uses fal.ai's cloud APIs. You'll need to add credits to your account.

Cost Breakdown (Per Structure)

Step Model Cost
1. Text โ†’ Image Z-Image Turbo ~$0.005-0.008
2. Image โ†’ 3D SAM-3D Objects $0.02 (flat)
3. Prompt fix* OpenRouter Vision ~$0.001

Total: ~$0.025-0.03 per generation (regardless of Minecraft size)

*Only triggered when the 3D segmentation fails on complex/abstract prompts

๐Ÿง  How It Works

  1. Z-Image Turbo generates a 2D image from your prompt
  2. SAM-3D converts the image to a 3D GLB model with vertex colors
  3. Voxelizer converts the mesh to Minecraft blocks using triangle-voxel intersection
  4. Block Mapper matches colors using CIE-LAB perceptual color space (100+ block palette)
  5. Ghost Preview shows the structure before placement
  6. Animated Build places blocks layer-by-layer

๐Ÿ› Troubleshooting

  • "API key not configured" - Run /fal setkey "YOUR_KEY" (with quotes) or check with /fal status
  • 403 error - Your fal.ai account needs credits. Add billing here
  • Structure not visible - Look where you want to place (up to 200 blocks away)
  • Colors look off - The 100+ block palette maps colors as close as Minecraft allows

๐Ÿ“œ License

CC0 1.0 - Public domain. Use freely!

Built with Fabric and fal.ai.

About

AI-powered texture remixing for Minecraft using fal

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages