Skip to content

Commit 2449748

Browse files
authored
Merge pull request #9 from Zhou-Shilin/beta-1.1-dev
Update README.md
2 parents d0c264d + bd2490b commit 2449748

File tree

1 file changed

+63
-24
lines changed

1 file changed

+63
-24
lines changed

README.md

Lines changed: 63 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,56 +15,95 @@
1515
> Developers and translators are welcome to join the CubeGPT Team!
1616
1717
## Introduction
18-
> A simple template for CubeGPT projects.
18+
> Give GPT your idea, AI generates customized Minecraft server plugins with one click, which is suitable for Bukkit, Spigot, Paper, Purpur, Arclight, CatServer, Magma, Mohist and other Bukkit-based servers.
1919
20-
CubeAgents is a template for CubeGPT's projects like [BuilderGPT](https://github.com/CubeGPT/BuilderGPT). It provides a simple and clean interface for users to interact with the program.
20+
BukkitGPT is an open source, free, AI-powered Minecraft Bukkit plugin generator. It was developed for minecraft server owners who are not technically savvy but need to implement all kinds of customized small plugins. From code to build, debug, all done by gpt.
2121

22-
# Showcase
23-
...
22+
## WebApp
23+
Don't want to prepare the Python & Maven environment? Try our [WebApp](http://cubegpt.org/), designed for non-developers, just enter the plugin name and description, and you can get the plugin jar file.
24+
25+
*The service is paid since the API key we are using is not free. You can get 1 key for 5 generations for $1 [here](https://buymeacoffee.com/baimoqilin/e/293180) or [here (for Chinese users)](https://afdian.com/item/b839835461e311efbd1252540025c377)
2426

2527
## Partner
2628
[![](https://www.bisecthosting.com/partners/custom-banners/c37f58c7-c49b-414d-b53c-1a6e1b1cff71.webp)](https://bisecthosting.com/cubegpt)
2729

2830
## Features
2931

30-
- [x] Feature 1
31-
- [x] Feature 2
32-
- [x] Feature 3
33-
- [ ] Feature 4
32+
### Core
33+
- Automatically generate code
34+
- Automatically fix bugs
35+
- AI `Better Description`
36+
37+
### GUI
38+
- Creating projects
39+
- Projects management
40+
41+
## Plans and TODOs
42+
43+
Moved to [Projects Tab](https://github.com/orgs/CubeGPT/projects/4).
3444

3545
### Other projects of CubeGPT Team
36-
- [x] Bukkit plugin generator. {*.jar} ([BukkitGPT](https://github.com/CubeGPT/BukkitGPT))
37-
- [x] Structure generator. {*.schem} ([BuilderGPT](https://github.com/CubeGPT/BuilderGPT))
46+
- [x] Bukkit plugin generator. {*.jar} ([BukkitGPT-v3](https://github.com/CubeGPT/BukkitGPT-v3))
47+
- [ ] Structure generator. {*.schem} (BuilderGPT, or something?)
3848
- [ ] Serverpack generator. {*.zip} (ServerpackGPT or ServerGPT, or..?)
3949
- [ ] Have ideas or want to join our team? Send [us](mailto:admin@baimoqilin.top) an email!
4050

4151
## How it works
42-
43-
...
52+
When the user types the plugin description, the program lets `gpt-3.5-turbo` optimize the prompt, and then gives the optimized prompt to `gpt-4-turbo-preview`. `gpt-4-turbo-preview` will return it in json format, for example:
53+
```
54+
{
55+
"output": [
56+
{
57+
"file": "%WORKING_PATH%/Main.java",
58+
"code": "package ...;\nimport org.bukkit.Bukkit;\npublic class Main extends JavaPlugin implements CommandExecutor {\n..."
59+
},
60+
{
61+
"file": "src/main/resources/plugin.yml",
62+
"code": "name: ...\nversion: ...\n..."
63+
},
64+
{
65+
"file\": "src/main/resources/config.yml",
66+
"code\": "..."
67+
},
68+
{
69+
"file": "pom.xml",
70+
"code": "..."
71+
}
72+
]
73+
}
74+
```
75+
The program parses this prompt, copies the entire `projects/template` folder and names it `artifact_name`, and puts the code from the prompt into the each file. Finally the program builds the jar using maven.
4476

4577
## Requirements
78+
You can use BukkitGPT on any computer with [Java](https://www.azul.com/downloads/), [Maven](https://maven.apache.org/), [Python 3+](https://www.python.org/).
4679

47-
### Plan A. Windows/Linux (executable edition)
48-
49-
Nothing. Just download the executable file and run it.
50-
51-
### Plan B. Python (Any operating systems; Recommend if possible)
52-
53-
You can use BukkitGPT on any device with [Python 3+](https://www.python.org/).
54-
55-
And you need to install the depencies with this command:
80+
And you need to install this package:
5681
```
57-
python -m pip install -U -r requirements.txt
82+
pip install openai
5883
```
5984

6085
## Quick Start
6186

6287
*(Make sure you have the [Python](https://www.python.org) environment installed on your computer)*
6388

64-
...
89+
90+
### Python/UI
91+
92+
1. Download `Source Code.zip` from [the release page](https://github.com/CubeGPT/BukkitGPT-v3/releases) and unzip it.
93+
2. Edit `config.yaml`, fill in your OpenAI Apikey. If you don't know how, remember that [Google](https://www.google.com/) and [Bing](https://www.bing.com/) are always your best friends.
94+
3. Install dependencies by running `pip install -r requirements.txt`.
95+
4. Run `ui.py` (bash `python console.py`).
96+
5. Enter the artifact name & description & package id as instructed to generate your plugin.
97+
6. Copy your plugin from `projects/<artifact_name>/target/<artifact_name>-<version>.jar` to your server `plugins/` folder.
98+
7. Restart your server and enjoy your AI-powered-plugin.
99+
100+
## Troubleshooting
101+
102+
### The POM for org.spigotmc:spigot:jar:1.13.2-R0.1-SNAPSHOT is missing
103+
Solution: [Download BuildTools](https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar), place it in an empty folder, double-click it, choose "1.13.2" in `Settings/Select Version`, click `Compile` in the bottom right corner and let it finish. And then go to your BukkitGPT folder, in `projects/<artifact_name_of_your_plugin>`, double-click `build.bat`. You'll find your plugin in `projects/<artifact_name_of_your_plugin>/target` folder.
65104

66105
## Contributing
67-
If you like the project, you can give the project a star, or [submit an issue](https://github.com/CubeGPT/CubeAgents/issues) or [pull request](https://github.com/CubeGPT/CubeAgents/pulls) to help make it better.
106+
If you like the project, you can give the project a star, or [submit an issue](https://github.com/CubeGPT/BukkitGPT-v3/issues) or [pull request](https://github.com/CubeGPT/BukkitGPT-v3/pulls) to help make it better.
68107

69108
## License
70109
```

0 commit comments

Comments
 (0)