logoalt Hacker News

romeinadayyesterday at 9:14 PM4 repliesview on HN

Where are we with scripting Minecraft worlds? I don't mean in a programmatic sense, but in the sense of saying to an AI "make me a worlds with a clearing in a giant forest where skeletons are attacking creepers" and it would make the world?


Replies

aliasxneotoday at 2:03 AM

I play heavily modded Minecraft and have always dreaded endgame where you're often building out massive infrastructure. Would be amazing to have a little embedded ChatGPT that could generate modded structures with a prompt. The factory must grow :)

jamiltonyesterday at 11:59 PM

As of about a month ago there’s https://github.com/soapantelope/mindcraft. You can give it a prompt like “A Minecraft world of beautiful flower-filled meadows abruptly changing into swamps.” and get that. As far as I can tell it’s using Minecraft’s existing world generator, the readme notes “As of now, Mindcraft can only generate worlds that are feasible natural overworld biomes in Minecraft 1.21.11. Keep this in mind when thinking of prompts!”.

And I’ve seen people hook up LLMs more directly with some scripting tools to place blocks/spawn entities, they do okay.

rchard2scoutyesterday at 10:22 PM

There are mods that affect world generation, so I guess it should be possible to write a mod that exposes that functionality to an AI agent.

PcChipyesterday at 9:16 PM

a world has a seed as well, so when you walked past the generated portion it would start randomly generating from that seed, which wouldn't match the portion that was sculpted

you would have to make the AI search for seeds that generate what you want at the starting point I think

show 1 reply