-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add documentation on NBT data for ingredients
- Loading branch information
IanTapply22
committed
May 22, 2024
1 parent
93e2d69
commit 61c3d95
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
src/main/java/com/iantapply/wynncraft/inventory/crafting/effects/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
## How are these stored as NBT on ingredients? | ||
The effects are stored separately in keys that have UUIDs to differentiate them from each other. The actual NBT data for each | ||
type of effect value is stored as the following: | ||
|
||
**Note:** All NBT keys are stored as random UUIDs | ||
|
||
### Duration Value | ||
```json | ||
{ | ||
"typeId": 0, | ||
"value": 1 | ||
} | ||
``` | ||
|
||
### Percentage Range Value | ||
```json | ||
{ | ||
"typeId": 1, | ||
"min": { | ||
"value": 1, | ||
"effectId": 0 | ||
}, | ||
"max": { | ||
"value": 2, | ||
"effectId": 1 | ||
} | ||
} | ||
``` | ||
|
||
### Fixed Value | ||
```json | ||
{ | ||
"typeId": 2, | ||
"value": 1 | ||
} | ||
``` | ||
|
||
### Range Value | ||
```json | ||
{ | ||
"typeId": 3, | ||
"min": { | ||
"value": 1, | ||
"effectId": 0 | ||
}, | ||
"max": { | ||
"value": 2, | ||
"effectId": 1 | ||
} | ||
} | ||
``` | ||
|
||
### Possible Value | ||
```json | ||
{ | ||
"typeId": 4, | ||
"values": [ | ||
{ | ||
"typeId": 0, | ||
"value": 1, | ||
"effectId": 0 | ||
}, | ||
{ | ||
"typeId": 1, | ||
"value": 2, | ||
"effectId": 1 | ||
} | ||
] | ||
} | ||
``` |