Skip to content

Commit

Permalink
Fix university in 1.21 (#10142)
Browse files Browse the repository at this point in the history
Fixes the research window not opening at all in 1.21.
Sorts the Item NBT datagen keys so that they stop swapping around each datagen.
Breaking: modifies the research data format to use SizedIngredient rather than our own hand-rolled types, producing simpler code and JSON.
  • Loading branch information
uecasm authored Aug 20, 2024
1 parent 179c19a commit f97fb99
Show file tree
Hide file tree
Showing 222 changed files with 1,600 additions and 2,848 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"parentResearch": "minecolonies:civilian/reflective",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:book"
]
},
"quantity": 128
"items": {
"count": 128,
"item": "minecraft:book"
}
}
],
"researchLevel": 6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 4
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:rabbit_foot"
]
},
"quantity": 10
"items": {
"count": 10,
"item": "minecraft:rabbit_foot"
}
}
],
"researchLevel": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"parentResearch": "minecolonies:civilian/ambition",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:heart_of_the_sea"
]
},
"quantity": 1
"items": {
"count": 1,
"item": "minecraft:heart_of_the_sea"
}
}
],
"researchLevel": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@
"icon": "minecolonies:blockhutmysticalsite",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:diamond"
]
},
"quantity": 1
"items": {
"count": 1,
"item": "minecraft:diamond"
}
}
],
"researchLevel": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"parentResearch": "minecolonies:civilian/swift",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:rabbit_foot"
]
},
"quantity": 64
"items": {
"count": 64,
"item": "minecraft:rabbit_foot"
}
}
],
"researchLevel": 6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:bookshelf"
]
},
"quantity": 12
"items": {
"count": 12,
"item": "minecraft:bookshelf"
}
}
],
"researchLevel": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 4
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"quantity": 16
"items": {
"count": 16,
"item": "minecraft:golden_carrot"
}
}
],
"researchLevel": 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"quantity": 1
"items": {
"count": 1,
"item": "minecraft:golden_carrot"
}
}
],
"researchLevel": 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"parentResearch": "minecolonies:civilian/growth",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cooked_chicken"
]
},
"quantity": 512
"items": {
"count": 512,
"item": "minecraft:cooked_chicken"
}
}
],
"researchLevel": 6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:bookshelf"
]
},
"quantity": 6
"items": {
"count": 6,
"item": "minecraft:bookshelf"
}
}
],
"researchLevel": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"parentResearch": "minecolonies:civilian/compress",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"quantity": 64
"items": {
"count": 64,
"item": "minecraft:golden_carrot"
}
}
],
"researchLevel": 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cake"
]
},
"quantity": 1
"items": {
"count": 1,
"item": "minecraft:cake"
}
}
],
"researchLevel": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cooked_beef"
]
},
"quantity": 512
"items": {
"count": 512,
"item": "minecraft:cooked_beef"
}
}
],
"researchLevel": 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"quantity": 32
"items": {
"count": 32,
"item": "minecraft:golden_carrot"
}
}
],
"researchLevel": 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:book"
]
},
"quantity": 6
"items": {
"count": 6,
"item": "minecraft:book"
}
}
],
"researchLevel": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cookie"
]
},
"quantity": 256
"items": {
"count": 256,
"item": "minecraft:cookie"
}
}
],
"researchLevel": 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cake"
]
},
"quantity": 9
"items": {
"count": 9,
"item": "minecraft:cake"
}
}
],
"researchLevel": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
"level": 1
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:hay_block"
]
},
"quantity": 8
"items": {
"count": 8,
"item": "minecraft:hay_block"
}
}
],
"researchLevel": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 2
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:hay_block"
]
},
"quantity": 16
"items": {
"count": 16,
"item": "minecraft:hay_block"
}
}
],
"researchLevel": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 5
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_apple"
]
},
"quantity": 32
"items": {
"count": 32,
"item": "minecraft:golden_apple"
}
}
],
"researchLevel": 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"parentResearch": "minecolonies:civilian/epicure",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cookie"
]
},
"quantity": 512
"items": {
"count": 512,
"item": "minecraft:cookie"
}
}
],
"researchLevel": 6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
"level": 3
},
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:cookie"
]
},
"quantity": 64
"items": {
"count": 64,
"item": "minecraft:cookie"
}
}
],
"researchLevel": 3,
Expand Down
Loading

0 comments on commit f97fb99

Please sign in to comment.