A simple mod that makes ChatGPT generate structures on command
Find a file
2024-11-19 20:29:50 +01:00
.github/workflows 1.20.5 2024-04-23 16:24:51 +01:00
gradle/wrapper 1.21.2 2024-10-22 17:12:41 +01:00
src Added mod 2024-11-19 06:12:06 +01:00
.gitattributes Update Loom 2024-06-18 09:29:41 +01:00
.gitignore Add files the JVM may generate under certain conditions to .gitignore (#159) 2022-11-22 15:08:37 +00:00
build.gradle 1.21.2 2024-10-22 17:12:41 +01:00
gradle.properties Added mod 2024-11-19 06:12:06 +01:00
gradlew Update with latest template changes 2024-08-24 21:21:27 +01:00
gradlew.bat Update with latest template changes 2024-08-24 21:21:27 +01:00
LICENSE Update to Loom 1.3 and Gradle 8.2 2023-07-05 19:47:49 +01:00
README.md Added README.md documentation 2024-11-19 20:29:50 +01:00
settings.gradle Update to Loom 1.3 and Gradle 8.2 2023-07-05 19:47:49 +01:00

This mod adds a /buildgpt command that allows the player to place AI generated structures into the world with a customizable prompt.

Setup

An OpenAI Key is required for this mod in order to work.

create a file .openaikey in the config folder or run the /buildbpt command with valid parameters once to generate the file and then place your API Key in there.

The command should now work!

Command

The command has 2 modes:

Bound

/buildgpt bound <x> <y> <z> <x> <y> <z> <prompt> This mode allows the user to set a bounding box outside of which the mod won't place any blocks.

The prompt is directing ChatGPT to generate a structure within those bounds but the mod also has a check after the response, that filters out any blocks outside the bounding box.

Unbound

/buildgpt unbound <x> <y> <z> <prompt> This mode only has a starting point from which the AI will (in most cases) generate the structure towards increasing coordinates.

Of course this is not always the case as ChatGPT can sometimes return funny responses with unexpected behaviour, which is why the bound mode exists and the unbound mode should by used with caution, since placed blocks cannot be undone. During testing, I noticed that structures will usually not exceed a 20x20x20 block cube unless prompted to do otherwhise.

Prompt

There is a predefined prompt in the Mod, meaning that the user is only required to input the building name or description into the <prompt> field of the command, since the mod requires the response to be formatted a certain way.

The prompt can also be overwritten by inputting a custom prompt into the <prompt> field of the command.