Skip to content

Commit

Permalink
feat: Add documentation on NBT data for ingredients
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed May 22, 2024
1 parent 93e2d69 commit 61c3d95
Showing 1 changed file with 70 additions and 0 deletions.
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
}
]
}
```

0 comments on commit 61c3d95

Please sign in to comment.