This mod allows you to spawn and interact with digital twins from your web app directly in Minecraft.
- Minecraft 1.20.1
- Fabric Loader 0.15.0+
- Fabric API 0.92.0+
- Fabric Language Kotlin 1.10.0+
- Install Fabric Loader for Minecraft 1.20.1
- Download required mods:
- Fabric API
- Fabric Language Kotlin
- Place the Digital Twins mod JAR in your
.minecraft/modsfolder - Launch Minecraft
Import a digital twin from the web app.
Examples:
/twinimport https://yourapp.com/api/minecraft/export/user-id-here
/twinimport /path/to/twin-data.json
List all imported twins.
Spawn a twin NPC in the world.
Example:
/twinspawn Alex
Send a message to a spawned twin.
Example:
/twin Alex Hey, what's your favorite food?
The twin will respond based on their personality from the web app!
Despawn a twin NPC.
- Twin data is imported from your web app
- When you spawn a twin, an armor stand NPC appears
- When you send a message, the mod:
- Sends your message to the web app API
- Gets a response generated by Claude AI
- Displays the response in chat
- Response time: 3-5 seconds (API processing)
./gradlew buildThe JAR will be in build/libs/
- Uses OkHttp for HTTP requests
- Stores twin data in
.minecraft/config/digitaltwins/twins.json - NPCs are armor stands with custom name tags
- Text-only for MVP (voice support coming later)
"Twin not found": Run /twinimport first
"Connection failed": Check your internet connection
"Timeout": API is slow, try again
MIT License - See main repository