Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 66 additions & 74 deletions data/pc/1.21.11/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,61 +447,87 @@
]
],
"attribute_modifiers": [
"container",
[
{
"name": "attributes",
"type": [
"array",
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"countType": "varint",
"name": "typeId",
"type": "varint"
},
{
"name": "name",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "operation",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "add",
"1": "multiply_base",
"2": "multiply_total"
}
}
]
},
{
"name": "slot",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "any",
"1": "main_hand",
"2": "off_hand",
"3": "hand",
"4": "feet",
"5": "legs",
"6": "chest",
"7": "head",
"8": "armor",
"9": "body",
"10": "saddle"
}
}
]
},
{
"name": "display",
"type": [
"container",
[
{
"name": "typeId",
"type": "varint"
},
{
"name": "name",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "operation",
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "add",
"1": "multiply_base",
"2": "multiply_total"
"0": "default",
"1": "hidden",
"2": "override"
}
}
]
},
{
"name": "slot",
"name": "component",
"type": [
"mapper",
"switch",
{
"type": "varint",
"mappings": {
"0": "any",
"1": "main_hand",
"2": "off_hand",
"3": "hand",
"4": "feet",
"5": "legs",
"6": "chest",
"7": "head",
"8": "armor",
"9": "body",
"10": "saddle"
"compareTo": "type",
"fields": {
"override": "anonymousNbt"
}
}
]
Expand All @@ -510,42 +536,8 @@
]
}
]
},
{
"name": "display",
"type": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "default",
"1": "hidden",
"2": "override"
}
}
]
},
{
"name": "component",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"override": "anonymousNbt"
}
}
]
}
]
]
}
]
]
}
],
"custom_model_data": [
"container",
Expand Down
42 changes: 20 additions & 22 deletions data/pc/1.21.5/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,28 +185,26 @@
level: varint
if can_place_on or can_break:
predicates: ItemBlockPredicate[]varint
if attribute_modifiers:
attributes: []varint
typeId: varint
name: string
value: f64
operation: varint =>
- add
- multiply_base
- multiply_total
slot: varint =>
- any
- main_hand
- off_hand
- hand
- feet
- legs
- chest
- head
- armor
- body
- saddle
showTooltip: bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erroneously removed?

if attribute_modifiers: []varint
typeId: varint
name: string
value: f64
operation: varint =>
- add
- multiply_base
- multiply_total
slot: varint =>
- any
- main_hand
- off_hand
- hand
- feet
- legs
- chest
- head
- armor
- body
- saddle
if custom_model_data:
floats: f32[]varint
flags: bool[]varint
Expand Down
114 changes: 51 additions & 63 deletions data/pc/1.21.5/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,75 +345,63 @@
]
],
"attribute_modifiers": [
"container",
[
{
"name": "attributes",
"type": [
"array",
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"countType": "varint",
"name": "typeId",
"type": "varint"
},
{
"name": "name",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "operation",
"type": [
"container",
[
{
"name": "typeId",
"type": "varint"
},
{
"name": "name",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "operation",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "add",
"1": "multiply_base",
"2": "multiply_total"
}
}
]
},
{
"name": "slot",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "any",
"1": "main_hand",
"2": "off_hand",
"3": "hand",
"4": "feet",
"5": "legs",
"6": "chest",
"7": "head",
"8": "armor",
"9": "body",
"10": "saddle"
}
}
]
"mapper",
{
"type": "varint",
"mappings": {
"0": "add",
"1": "multiply_base",
"2": "multiply_total"
}
]
}
]
},
{
"name": "slot",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "any",
"1": "main_hand",
"2": "off_hand",
"3": "hand",
"4": "feet",
"5": "legs",
"6": "chest",
"7": "head",
"8": "armor",
"9": "body",
"10": "saddle"
}
}
]
}
]
},
{
"name": "showTooltip",
"type": "bool"
}
]
]
}
],
"custom_model_data": [
"container",
Expand Down
41 changes: 20 additions & 21 deletions data/pc/1.21.6/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,27 +185,26 @@
level: varint
if can_place_on or can_break:
predicates: ItemBlockPredicate[]varint
if attribute_modifiers:
attributes: []varint
typeId: varint
name: string
value: f64
operation: varint =>
- add
- multiply_base
- multiply_total
slot: varint =>
- any
- main_hand
- off_hand
- hand
- feet
- legs
- chest
- head
- armor
- body
- saddle
if attribute_modifiers: []varint
typeId: varint
name: string
value: f64
operation: varint =>
- add
- multiply_base
- multiply_total
slot: varint =>
- any
- main_hand
- off_hand
- hand
- feet
- legs
- chest
- head
- armor
- body
- saddle
display:
type: varint =>
- default
Expand Down
Loading