Skip to content

Commit 66ef0fa

Browse files
committed
Added social.png
1 parent c74f44d commit 66ef0fa

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ If your mod is written in Java (and is, hence, a Jar mod), use this method.
2020
   JSON:
2121
```json
2222
"dependencies": [
23-
"pyguy.jsonlib"
24-
]
23+
"pyguy.jsonlib"
24+
]
2525
```
2626
   HJSON:
2727
```
@@ -49,15 +49,15 @@ Copy the file into a directory called `lib/` you must create on your mod's root
4949
Assuming you're using Gradle as your build system, add the Jar file as a dependency in your mod's `build.gradle.kts`:
5050
```kotlin
5151
project(":"){
52-
// ...
52+
// ...
53+
54+
dependencies{
55+
// ...
56+
compileOnly(files(layout.projectDirectory.dir("lib").file("CustomJsonLib.jar")))
57+
}
5358

54-
dependencies{
5559
// ...
56-
compileOnly(files(layout.projectDirectory.dir("lib").file("CustomJsonLib.jar")))
5760
}
58-
59-
// ...
60-
}
6161
```
6262
If you are using other build systems, ensure that you are adding the library as a Compile Only dependency. This is VERY important and your mod will not work properly otherwise.
6363

@@ -72,12 +72,12 @@ Now the library is part of your project. This does NOT mean it will be shipped w
7272
The content table for JSON tags is created and ready to be used from your mod's `init()` method onward. If you plan on checking all content for custom JSON tags, it is recommended to do so after the client loads, like so:
7373
```java
7474
@Override
75-
public void init()
76-
{
77-
Events.on(EventType.ClientLoadEvent.class, event -> {
78-
// Your code here
79-
});
80-
}
75+
public void init()
76+
{
77+
Events.on(EventType.ClientLoadEvent.class, event -> {
78+
// Your code here
79+
});
80+
}
8181
```
8282

8383
To know what methods this library supports, see [Using the Library](#using-the-library) below.
@@ -94,8 +94,8 @@ If your mod is written in JavaScript and [H]JSON (and is, hence, a standard Mind
9494
   JSON:
9595
```json
9696
"dependencies": [
97-
"pyguy.jsonlib"
98-
]
97+
"pyguy.jsonlib"
98+
]
9999
```
100100
   HJSON:
101101
```
@@ -151,15 +151,15 @@ In your content's [h]json file you'd add the following:
151151
   JSON (weightedBomb.json):
152152
```json
153153
{
154-
"type": "Block",
154+
"type": "Block",
155155

156-
...
156+
...
157157

158-
"customJson": [
159-
"physics-mod-weight": 45,
160-
"super-explosions-explosionSize": "huge"
161-
]
162-
}
158+
"customJson": [
159+
"physics-mod-weight": 45,
160+
"super-explosions-explosionSize": "huge"
161+
]
162+
}
163163
```
164164
   HJSON (weightedBomb.hjson):
165165
```

social.png

8.18 KB
Loading

0 commit comments

Comments
 (0)