Skip to content

Commit 573146e

Browse files
committed
minecraft: update to 1.21.70 - 2
1 parent 2f51ce5 commit 573146e

19 files changed

Lines changed: 726 additions & 478 deletions

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
afterInstall: node tools/patches.js
1+
afterInstall: node -no-warnings --experimental-strip-types tools/patches.ts
22

33
nodeLinker: node-modules
44

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "./node_modules/vitest/vitest.mjs",
99
"coverage": "./node_modules/vitest/vitest.mjs --coverage",
1010
"cov": "./node_modules/vitest/vitest.mjs --coverage --ui",
11-
"patches": "node tools/patches.js",
11+
"patches": "node --no-warnings --experimental-strip-types tools/patches.ts",
1212
"prepare": "git config core.ignorecase false"
1313
},
1414
"dependencies": {

src/lib/assets/chest-ui-type-ids.ts

Lines changed: 143 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
export const typeIdToID = new Map([
2+
['minecraft:cactus_flower', -1030],
3+
['minecraft:tall_dry_grass', -1029],
4+
['minecraft:short_dry_grass', -1028],
5+
['minecraft:leaf_litter', -1026],
6+
['minecraft:firefly_bush', -1025],
7+
['minecraft:wildflowers', -1024],
8+
['minecraft:bush', -1023],
29
['minecraft:resin_clump', -1022],
310
['minecraft:resin_block', -1021],
411
['minecraft:chiseled_resin_bricks', -1020],
@@ -1518,6 +1525,7 @@ export const typeIdToID = new Map([
15181525
['minecraft:experience_bottle', 542],
15191526
['minecraft:fire_charge', 543],
15201527
['minecraft:writable_book', 544],
1528+
['minecraft:written_book', 545],
15211529
['minecraft:emerald', 546],
15221530
['minecraft:frame', 547],
15231531
['minecraft:flower_pot', 548],
@@ -1719,53 +1727,55 @@ export const typeIdToID = new Map([
17191727
['minecraft:creaking_spawn_egg', 747],
17201728
['minecraft:resin_brick', 748],
17211729
['minecraft:wool', 749],
1722-
['minecraft:carpet', 750],
1723-
['minecraft:log', 751],
1724-
['minecraft:fence', 752],
1725-
['minecraft:stonebrick', 753],
1726-
['minecraft:coral_block', 754],
1727-
['minecraft:stone_block_slab', 755],
1728-
['minecraft:stone_block_slab2', 756],
1729-
['minecraft:stone_block_slab3', 757],
1730-
['minecraft:stone_block_slab4', 758],
1731-
['minecraft:double_stone_block_slab', 759],
1732-
['minecraft:double_stone_block_slab2', 760],
1733-
['minecraft:double_stone_block_slab3', 761],
1734-
['minecraft:double_stone_block_slab4', 762],
1735-
['minecraft:coral_fan', 763],
1736-
['minecraft:coral_fan_dead', 764],
1737-
['minecraft:sapling', 765],
1738-
['minecraft:leaves', 766],
1739-
['minecraft:leaves2', 767],
1740-
['minecraft:wooden_slab', 768],
1741-
['minecraft:red_flower', 769],
1742-
['minecraft:double_plant', 770],
1743-
['minecraft:double_wooden_slab', 771],
1744-
['minecraft:coral', 772],
1745-
['minecraft:tallgrass', 773],
1746-
['minecraft:log2', 774],
1747-
['minecraft:monster_egg', 775],
1748-
['minecraft:concrete', 776],
1749-
['minecraft:concrete_powder', 777],
1750-
['minecraft:stained_glass', 778],
1751-
['minecraft:stained_glass_pane', 779],
1752-
['minecraft:shulker_box', 780],
1753-
['minecraft:wood', 781],
1754-
['minecraft:music_disc_creator', 782],
1755-
['minecraft:music_disc_creator_music_box', 783],
1756-
['minecraft:music_disc_precipice', 784],
1757-
['minecraft:chemistry_table', 785],
1758-
['minecraft:hard_stained_glass', 786],
1759-
['minecraft:hard_stained_glass_pane', 787],
1760-
['minecraft:colored_torch_rg', 788],
1761-
['minecraft:colored_torch_bp', 789],
1762-
['minecraft:light_block', 790],
1763-
['minecraft:boat', 791],
1764-
['minecraft:dye', 792],
1765-
['minecraft:banner_pattern', 793],
1766-
['minecraft:spawn_egg', 794],
1767-
['minecraft:end_crystal', 795],
1768-
['minecraft:glow_berries', 796],
1730+
['minecraft:blue_egg', 750],
1731+
['minecraft:brown_egg', 751],
1732+
['minecraft:carpet', 752],
1733+
['minecraft:log', 753],
1734+
['minecraft:fence', 754],
1735+
['minecraft:stonebrick', 755],
1736+
['minecraft:coral_block', 756],
1737+
['minecraft:stone_block_slab', 757],
1738+
['minecraft:stone_block_slab2', 758],
1739+
['minecraft:stone_block_slab3', 759],
1740+
['minecraft:stone_block_slab4', 760],
1741+
['minecraft:double_stone_block_slab', 761],
1742+
['minecraft:double_stone_block_slab2', 762],
1743+
['minecraft:double_stone_block_slab3', 763],
1744+
['minecraft:double_stone_block_slab4', 764],
1745+
['minecraft:coral_fan', 765],
1746+
['minecraft:coral_fan_dead', 766],
1747+
['minecraft:sapling', 767],
1748+
['minecraft:leaves', 768],
1749+
['minecraft:leaves2', 769],
1750+
['minecraft:wooden_slab', 770],
1751+
['minecraft:red_flower', 771],
1752+
['minecraft:double_plant', 772],
1753+
['minecraft:double_wooden_slab', 773],
1754+
['minecraft:coral', 774],
1755+
['minecraft:tallgrass', 775],
1756+
['minecraft:log2', 776],
1757+
['minecraft:monster_egg', 777],
1758+
['minecraft:concrete', 778],
1759+
['minecraft:concrete_powder', 779],
1760+
['minecraft:stained_glass', 780],
1761+
['minecraft:stained_glass_pane', 781],
1762+
['minecraft:shulker_box', 782],
1763+
['minecraft:wood', 783],
1764+
['minecraft:music_disc_creator', 784],
1765+
['minecraft:music_disc_creator_music_box', 785],
1766+
['minecraft:music_disc_precipice', 786],
1767+
['minecraft:chemistry_table', 787],
1768+
['minecraft:hard_stained_glass', 788],
1769+
['minecraft:hard_stained_glass_pane', 789],
1770+
['minecraft:colored_torch_rg', 790],
1771+
['minecraft:colored_torch_bp', 791],
1772+
['minecraft:light_block', 792],
1773+
['minecraft:boat', 793],
1774+
['minecraft:dye', 794],
1775+
['minecraft:banner_pattern', 795],
1776+
['minecraft:spawn_egg', 796],
1777+
['minecraft:end_crystal', 797],
1778+
['minecraft:glow_berries', 798],
17691779
])
17701780
export const typeIdToDataId = new Map([
17711781
['minecraft:respawn_anchor_charge_0', -272],
@@ -2068,94 +2078,94 @@ export const typeIdToDataId = new Map([
20682078
['minecraft:orange_banner', 600 + 14 / 65536],
20692079
['minecraft:white_banner', 600 + 15 / 65536],
20702080

2071-
['minecraft:compound_salt', 631],
2072-
['minecraft:compound_sodium_oxide', 631 + 1 / 65536],
2073-
['minecraft:compound_sodium_hydroxide', 631 + 2 / 65536],
2074-
['minecraft:compound_magnesium_nitrate', 631 + 3 / 65536],
2075-
['minecraft:compound_iron_sulfide', 631 + 4 / 65536],
2076-
['minecraft:compound_lithium_hydride', 631 + 5 / 65536],
2077-
['minecraft:compound_sodium_hydride', 631 + 6 / 65536],
2078-
['minecraft:compound_calcium_bromide', 631 + 7 / 65536],
2079-
['minecraft:compound_magnesium_oxide', 631 + 8 / 65536],
2080-
['minecraft:compound_sodium_acetate', 631 + 9 / 65536],
2081-
['minecraft:compound_luminol', 631 + 10 / 65536],
2082-
['minecraft:compound_charcoal', 631 + 11 / 65536],
2083-
['minecraft:compound_sugar', 631 + 12 / 65536],
2084-
['minecraft:compound_aluminum_oxide', 631 + 13 / 65536],
2085-
['minecraft:compound_boron_trioxide', 631 + 14 / 65536],
2086-
['minecraft:compound_soap', 631 + 15 / 65536],
2087-
['minecraft:compound_polyethylene', 631 + 16 / 65536],
2088-
['minecraft:compound_garbage', 631 + 17 / 65536],
2089-
['minecraft:compound_blue_jar', 631 + 24 / 65536],
2090-
['minecraft:compound_blue_beaker', 631 + 26 / 65536],
2091-
['minecraft:compound_glue', 631 + 27 / 65536],
2092-
['minecraft:compound_white_beaker', 631 + 28 / 65536],
2093-
['minecraft:compound_black_beaker', 631 + 29 / 65536],
2094-
['minecraft:compound_yellow_beaker', 631 + 31 / 65536],
2095-
['minecraft:compound_clear_beaker', 631 + 35 / 65536],
2096-
['minecraft:compound_blue_bottle', 631 + 38 / 65536],
2081+
['minecraft:compound_salt', 630],
2082+
['minecraft:compound_sodium_oxide', 630 + 1 / 65536],
2083+
['minecraft:compound_sodium_hydroxide', 630 + 2 / 65536],
2084+
['minecraft:compound_magnesium_nitrate', 630 + 3 / 65536],
2085+
['minecraft:compound_iron_sulfide', 630 + 4 / 65536],
2086+
['minecraft:compound_lithium_hydride', 630 + 5 / 65536],
2087+
['minecraft:compound_sodium_hydride', 630 + 6 / 65536],
2088+
['minecraft:compound_calcium_bromide', 630 + 7 / 65536],
2089+
['minecraft:compound_magnesium_oxide', 630 + 8 / 65536],
2090+
['minecraft:compound_sodium_acetate', 630 + 9 / 65536],
2091+
['minecraft:compound_luminol', 630 + 10 / 65536],
2092+
['minecraft:compound_charcoal', 630 + 11 / 65536],
2093+
['minecraft:compound_sugar', 630 + 12 / 65536],
2094+
['minecraft:compound_aluminum_oxide', 630 + 13 / 65536],
2095+
['minecraft:compound_boron_trioxide', 630 + 14 / 65536],
2096+
['minecraft:compound_soap', 630 + 15 / 65536],
2097+
['minecraft:compound_polyethylene', 630 + 16 / 65536],
2098+
['minecraft:compound_garbage', 630 + 17 / 65536],
2099+
['minecraft:compound_blue_jar', 630 + 24 / 65536],
2100+
['minecraft:compound_blue_beaker', 630 + 26 / 65536],
2101+
['minecraft:compound_glue', 630 + 27 / 65536],
2102+
['minecraft:compound_white_beaker', 630 + 28 / 65536],
2103+
['minecraft:compound_black_beaker', 630 + 29 / 65536],
2104+
['minecraft:compound_yellow_beaker', 630 + 31 / 65536],
2105+
['minecraft:compound_clear_beaker', 630 + 35 / 65536],
2106+
['minecraft:compound_blue_bottle', 630 + 38 / 65536],
20972107

2098-
['minecraft:white_balloon', 635],
2099-
['minecraft:red_balloon', 635 + 1 / 65536],
2100-
['minecraft:green_balloon', 635 + 2 / 65536],
2101-
['minecraft:brown_balloon', 635 + 3 / 65536],
2102-
['minecraft:blue_balloon', 635 + 4 / 65536],
2103-
['minecraft:purple_balloon', 635 + 5 / 65536],
2104-
['minecraft:cyan_balloon', 635 + 6 / 65536],
2105-
['minecraft:light_gray_balloon', 635 + 7 / 65536],
2106-
['minecraft:gray_balloon', 635 + 8 / 65536],
2107-
['minecraft:pink_balloon', 635 + 9 / 65536],
2108-
['minecraft:lime_balloon', 635 + 10 / 65536],
2109-
['minecraft:yellow_balloon', 635 + 11 / 65536],
2110-
['minecraft:light_blue_balloon', 635 + 12 / 65536],
2111-
['minecraft:magenta_balloon', 635 + 13 / 65536],
2112-
['minecraft:orange_balloon', 635 + 14 / 65536],
2113-
['minecraft:black_balloon', 635 + 15 / 65536],
2108+
['minecraft:white_balloon', 634],
2109+
['minecraft:red_balloon', 634 + 1 / 65536],
2110+
['minecraft:green_balloon', 634 + 2 / 65536],
2111+
['minecraft:brown_balloon', 634 + 3 / 65536],
2112+
['minecraft:blue_balloon', 634 + 4 / 65536],
2113+
['minecraft:purple_balloon', 634 + 5 / 65536],
2114+
['minecraft:cyan_balloon', 634 + 6 / 65536],
2115+
['minecraft:light_gray_balloon', 634 + 7 / 65536],
2116+
['minecraft:gray_balloon', 634 + 8 / 65536],
2117+
['minecraft:pink_balloon', 634 + 9 / 65536],
2118+
['minecraft:lime_balloon', 634 + 10 / 65536],
2119+
['minecraft:yellow_balloon', 634 + 11 / 65536],
2120+
['minecraft:light_blue_balloon', 634 + 12 / 65536],
2121+
['minecraft:magenta_balloon', 634 + 13 / 65536],
2122+
['minecraft:orange_balloon', 634 + 14 / 65536],
2123+
['minecraft:black_balloon', 634 + 15 / 65536],
21142124

2115-
['minecraft:eye_drops', 636],
2116-
['minecraft:tonic', 636 + 1 / 65536],
2117-
['minecraft:antidote', 636 + 2 / 65536],
2118-
['minecraft:elixir', 636 + 3 / 65536],
2125+
['minecraft:eye_drops', 635],
2126+
['minecraft:tonic', 635 + 1 / 65536],
2127+
['minecraft:antidote', 635 + 2 / 65536],
2128+
['minecraft:elixir', 635 + 3 / 65536],
21192129

2120-
['minecraft:blue_sparkler', 637],
2121-
['minecraft:red_sparkler', 637 + 1 / 65536],
2122-
['minecraft:green_sparkler', 637 + 2 / 65536],
2123-
['minecraft:pink_sparker', 637 + 5 / 65536],
2124-
['minecraft:orange_sparkler', 637 + 14 / 65536],
2125-
['minecraft:lit_blue_sparkler', 637 + 32 / 65536],
2126-
['minecraft:lit_red_sparkler', 637 + 33 / 65536],
2127-
['minecraft:lit_green_sparkler', 637 + 34 / 65536],
2128-
['minecraft:lit_pink_sparker', 637 + 37 / 65536],
2129-
['minecraft:lit_orange_sparkler', 637 + 46 / 65536],
2130+
['minecraft:blue_sparkler', 636],
2131+
['minecraft:red_sparkler', 636 + 1 / 65536],
2132+
['minecraft:green_sparkler', 636 + 2 / 65536],
2133+
['minecraft:pink_sparker', 636 + 5 / 65536],
2134+
['minecraft:orange_sparkler', 636 + 14 / 65536],
2135+
['minecraft:lit_blue_sparkler', 636 + 32 / 65536],
2136+
['minecraft:lit_red_sparkler', 636 + 33 / 65536],
2137+
['minecraft:lit_green_sparkler', 636 + 34 / 65536],
2138+
['minecraft:lit_pink_sparker', 636 + 37 / 65536],
2139+
['minecraft:lit_orange_sparkler', 636 + 46 / 65536],
21302140

2131-
['minecraft:red_glowstick', 638 + 1 / 65536],
2132-
['minecraft:green_glowstick', 638 + 2 / 65536],
2133-
['minecraft:brown_glowstick', 638 + 3 / 65536],
2134-
['minecraft:blue_glowstick', 638 + 4 / 65536],
2135-
['minecraft:purple_glowstick', 638 + 5 / 65536],
2136-
['minecraft:cyan_glowstick', 638 + 6 / 65536],
2137-
['minecraft:red_glowstick', 638 + 7 / 65536],
2138-
['minecraft:gray_glowstick', 638 + 8 / 65536],
2139-
['minecraft:pink_glowstick', 638 + 9 / 65536],
2140-
['minecraft:lime_glowstick', 638 + 10 / 65536],
2141-
['minecraft:yellow_glowstick', 638 + 11 / 65536],
2142-
['minecraft:light_blue_glowstick', 638 + 12 / 65536],
2143-
['minecraft:magenta_glowstick', 638 + 13 / 65536],
2144-
['minecraft:orange_glowstick', 638 + 14 / 65536],
2145-
['minecraft:white_glowstick', 638 + 15 / 65536],
2146-
['minecraft:lit_red_glowstick', 638 + 33 / 65536],
2147-
['minecraft:lit_green_glowstick', 638 + 34 / 65536],
2148-
['minecraft:lit_brown_glowstick', 638 + 35 / 65536],
2149-
['minecraft:lit_blue_glowstick', 638 + 36 / 65536],
2150-
['minecraft:lit_purple_glowstick', 638 + 37 / 65536],
2151-
['minecraft:lit_cyan_glowstick', 638 + 38 / 65536],
2152-
['minecraft:lit_red_glowstick', 638 + 39 / 65536],
2153-
['minecraft:lit_gray_glowstick', 638 + 40 / 65536],
2154-
['minecraft:lit_pink_glowstick', 638 + 41 / 65536],
2155-
['minecraft:lit_lime_glowstick', 638 + 42 / 65536],
2156-
['minecraft:lit_yellow_glowstick', 638 + 43 / 65536],
2157-
['minecraft:lit_light_blue_glowstick', 638 + 44 / 65536],
2158-
['minecraft:lit_magenta_glowstick', 638 + 45 / 65536],
2159-
['minecraft:lit_orange_glowstick', 638 + 46 / 65536],
2160-
['minecraft:lit_white_glowstick', 638 + 47 / 65536],
2141+
['minecraft:red_glowstick', 637 + 1 / 65536],
2142+
['minecraft:green_glowstick', 637 + 2 / 65536],
2143+
['minecraft:brown_glowstick', 637 + 3 / 65536],
2144+
['minecraft:blue_glowstick', 637 + 4 / 65536],
2145+
['minecraft:purple_glowstick', 637 + 5 / 65536],
2146+
['minecraft:cyan_glowstick', 637 + 6 / 65536],
2147+
['minecraft:red_glowstick', 637 + 7 / 65536],
2148+
['minecraft:gray_glowstick', 637 + 8 / 65536],
2149+
['minecraft:pink_glowstick', 637 + 9 / 65536],
2150+
['minecraft:lime_glowstick', 637 + 10 / 65536],
2151+
['minecraft:yellow_glowstick', 637 + 11 / 65536],
2152+
['minecraft:light_blue_glowstick', 637 + 12 / 65536],
2153+
['minecraft:magenta_glowstick', 637 + 13 / 65536],
2154+
['minecraft:orange_glowstick', 637 + 14 / 65536],
2155+
['minecraft:white_glowstick', 637 + 15 / 65536],
2156+
['minecraft:lit_red_glowstick', 637 + 33 / 65536],
2157+
['minecraft:lit_green_glowstick', 637 + 34 / 65536],
2158+
['minecraft:lit_brown_glowstick', 637 + 35 / 65536],
2159+
['minecraft:lit_blue_glowstick', 637 + 36 / 65536],
2160+
['minecraft:lit_purple_glowstick', 637 + 37 / 65536],
2161+
['minecraft:lit_cyan_glowstick', 637 + 38 / 65536],
2162+
['minecraft:lit_red_glowstick', 637 + 39 / 65536],
2163+
['minecraft:lit_gray_glowstick', 637 + 40 / 65536],
2164+
['minecraft:lit_pink_glowstick', 637 + 41 / 65536],
2165+
['minecraft:lit_lime_glowstick', 637 + 42 / 65536],
2166+
['minecraft:lit_yellow_glowstick', 637 + 43 / 65536],
2167+
['minecraft:lit_light_blue_glowstick', 637 + 44 / 65536],
2168+
['minecraft:lit_magenta_glowstick', 637 + 45 / 65536],
2169+
['minecraft:lit_orange_glowstick', 637 + 46 / 65536],
2170+
['minecraft:lit_white_glowstick', 637 + 47 / 65536],
21612171
])

src/lib/assets/custom-entity-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// prettier-ignore
22
/* eslint-disable */
3-
// This file is autogenerated by tools/build.js.
3+
// This file is autogenerated by tools/build.ts.
44
// Do not modify manually.
55

66
export enum CustomEntityTypes {

0 commit comments

Comments
 (0)