Skip to content

Commit 192b98e

Browse files
Update README.md
1 parent 9af517e commit 192b98e

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

README.md

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,55 @@
1-
# Minecraft-Be-Proud-API
2-
API for the "be proud" Minecraft Mod
1+
## Be Proud API
2+
3+
This is a relatively simple API wrapper for the [be proud](https://modrinth.com/mod/be-proud) mod. You can install this alongside be proud, and use it to add your own custom flags using the foundations they put in place!
4+
5+
Please do not put issues relating to the original mod on this github page - I am not the original author of be proud.
6+
7+
This mod requires be proud installed to work.
8+
9+
## Developer Documentation
10+
11+
Add the mod to build.gradle:
12+
13+
```gradle
14+
repositories { // Add modrinth's maven
15+
exclusiveContent {
16+
forRepository {
17+
maven {
18+
name = "Modrinth"
19+
url = "https://api.modrinth.com/maven"
20+
}
21+
}
22+
filter {
23+
includeGroup "maven.modrinth"
24+
}
25+
}
26+
}
27+
28+
dependencies { // Add the mod as a dependency
29+
modImplementation "maven.modrinth:be-proud-api:DYeuzHlr" // Make sure to change the version to the one you want!
30+
modImplementation "maven.modrinth:be-proud:xOU4yztG" // Add be proud too
31+
}
32+
```
33+
34+
Now to add your custom flags, simply add this line of code
35+
36+
```java
37+
public static final Flag TEST_FLAG = createFlag("test", false);
38+
```
39+
40+
This will create a new flag, with the id "test" - The flag is not an LGBT flag so it is not added to the book (the bool value)
41+
42+
To finish off - you need some json files.
43+
44+
```java
45+
resources/data/beproud/recipes/printer/test/large.json // Recipes, example from the mod author - https://github.com/Duqueeee/be-proud/tree/1.20.1/src/main/resources/data/beproud/recipes/printer/lesbian
46+
resources/data/beproud/recipes/printer/test/standard.json
47+
resources/data/beproud/recipes/printer/test/small.json
48+
```
49+
Now you have your flag! To add textures, they should go in:
50+
51+
```java
52+
resources/assets/beproud/textures/block/flag/test/large.json // Textures, example from the mod author - https://github.com/Duqueeee/be-proud/tree/1.20.1/src/main/resources/assets/beproud/textures/block/flag/trans
53+
resources/assets/beproud/textures/block/flag/test/standard.json
54+
resources/assets/beproud/textures/block/flag/test/small.json
55+
```

0 commit comments

Comments
 (0)