Fix JSON formatting

This commit is contained in:
Camotoy authored and GitHub committed 2022-09-19 13:16:32 -04:00
1 parent b0eb22bbaa
commit 6f493d7759
1 file changed
+5 -1
+5 -1
View File
@@ -21,12 +21,14 @@ To setup custom items in geyser, you have to choose how you are going to registe
} }
``` ```
3. Inside the `items` entry, you can add your java item to extend: 3. Inside the `items` entry, you can add your java item to extend:
```json ```json
"minecraft:JAVA_ITEM": [ "minecraft:JAVA_ITEM": [
] ]
``` ```
4. Inside this java item, goes an array of all your custom items. 4. Inside this java item, goes an array of all your custom items.
```json ```json
{ {
"name": "my_item" "name": "my_item"
@@ -130,6 +132,7 @@ public void onGeyserPreInitializeEvent(GeyserDefineCustomItemsEvent event) {
1. Setup a basic bedrock resource pack. If you need help, you can find it [here](https://wiki.bedrock.dev/guide/project-setup.html#rp-manifest). 1. Setup a basic bedrock resource pack. If you need help, you can find it [here](https://wiki.bedrock.dev/guide/project-setup.html#rp-manifest).
2. Make a `textures` folder. 2. Make a `textures` folder.
3. Create `item_texture.json` in the `textures`, and put this in it: 3. Create `item_texture.json` in the `textures`, and put this in it:
```json ```json
{ {
"resource_pack_name": "MY_PACK_NAME_HERE", "resource_pack_name": "MY_PACK_NAME_HERE",
@@ -140,6 +143,7 @@ public void onGeyserPreInitializeEvent(GeyserDefineCustomItemsEvent event) {
} }
``` ```
4. Inside texture data, you can add your items. The texture name and path must match the name that you set in your mappings. 4. Inside texture data, you can add your items. The texture name and path must match the name that you set in your mappings.
```json ```json
"my_item": { "my_item": {
"textures": [ "textures": [
@@ -147,4 +151,4 @@ public void onGeyserPreInitializeEvent(GeyserDefineCustomItemsEvent event) {
] ]
} }
``` ```
5. Then you need to put your textures inside the `textures/items`. Make sure to have it match the texture path that you specified in `item_texture.json`! 5. Then you need to put your textures inside the `textures/items`. Make sure to have it match the texture path that you specified in `item_texture.json`!