@ -1,7 +1,10 @@
|
|||||||
## Updating `data`
|
## Updating `data`
|
||||||
|
|
||||||
1. Go to [https://github.com/PrismarineJS/minecraft-data/tree/master/data/pc/{version}](https://github.com/PrismarineJS/minecraft-data/tree/master/data/pc)
|
1. Go to [https://github.com/PrismarineJS/minecraft-data/tree/master/data/pc/{version}](https://github.com/PrismarineJS/minecraft-data/tree/master/data/pc)
|
||||||
2. Update the URL (if appropriate) in [gen_block.go](block/gen_block.go), [gen_entity.go](entity/gen_entity.go),
|
2. Update the URL in the following files if there is a new corresponding JSON file available:
|
||||||
[gen_item.go](item/gen_item.go), and [gen_packetid.go](packetid/gen_packetid.go)
|
- [gen_block.go](block/gen_block.go) - `blocks.json`
|
||||||
3. Update the `URL` in [gen_soundid.go](soundid/gen_soundid.go)
|
- [gen_entity.go](entity/gen_entity.go) - `entities.json`
|
||||||
|
- [gen_item.go](item/gen_item.go) - `items.json`
|
||||||
|
- [gen_packetid.go](packetid/gen_packetid.go) - `protocol.json`
|
||||||
|
3. Update the `URL` in [gen_soundid.go](soundid/gen_soundid.go) (verify the URL returns a response first)
|
||||||
4. Run `go generate ./...`
|
4. Run `go generate ./...`
|
Reference in New Issue
Block a user