Skip to content
2-Pyramid-StudioPublic

Latest commit

ย 

History

523 Commits

Folders and files

Repository files navigation

2-Pyramid logo

2-Pyramid

่ทจไปปๆ„็‰ˆๆœฌ่ฝฌๆข Minecraft ่ต„ๆบๅŒ… ยท Modern Universal Multi-Version Resource Pack Converter

Version Platform License Tauri Vue Rust


ไธญๆ–‡

2-Pyramid ๆ˜ฏไธ€ๆฌพ Windows ๆกŒ้ข็ซฏ็š„ Minecraft ่ต„ๆบๅŒ…็‰ˆๆœฌ่ฝฌๆขๅ™จ๏ผŒ่ฆ†็›–ไปŽ 1.6 ๅˆฐๆœ€ๆ–ฐ 26.3 ็š„ Java ็›ฎๆ ‡็‰ˆๆœฌๅŒบ้—ด๏ผŒๆ”ฏๆŒไปปๆ„ไธคไธช็‰ˆๆœฌไน‹้—ด็›ธไบ’่ฝฌๆข๏ผŒๅนถๆ”ฏๆŒ Java โ†” Bedrock๏ผˆๅŸบๅฒฉ๏ผ‰ ็ป“ๆž„ไบ’่ฝฌ๏ผˆๅฎž้ชŒๆ€ง๏ผ‰ใ€‚

ใ€Œ็›ธไบ’่ฝฌๆขใ€็š„่พน็•Œ๏ผš็ปๅคง้ƒจๅˆ†่ต„ๆบๆ˜ฏๅŒๅ‘็š„๏ผŒไฝ†ๆœ‰ๅ››้กนๅชๅšๆญฃๅ‘ใ€้™็บงๆ—ถไธ่ฟ˜ๅŽŸ โ€”โ€” GUI ๅ›พ้›†ๅˆ‡ๅˆ†๏ผˆcut_gui๏ผ‰ใ€้ฉฌๅŒน็•Œ้ข๏ผˆfix_horse_ui๏ผ‰ใ€ๅ ๅŠ ๅ›พๆ ‡๏ผˆoverlay_icons๏ผ‰ใ€ๅ‰ฏๆ‰‹ๆงฝ๏ผˆfix_ui_sub_hand๏ผ‰ใ€‚ๅฎƒไปฌ็š„ๅๅ‘ไปปๅŠกๅœจไปฃ็ ้‡Œๆ˜ฏๆ˜พๅผ็ฉบๆ“ไฝœ๏ผˆnatives/reverse/reverse_trivial.rs ็š„ noop_pilot!๏ผ‰๏ผŒๅ› ไธบๆ— ๆณ•ไปŽไบง็‰ฉๅๆŽจๅŽŸ็Šถใ€‚่ทจ 1.20.2 ่พน็•Œ้™็บง็š„ๅŒ…๏ผŒ่ฟ™ๅ‡ ๅค„ไผšไฟ็•™ๆ–ฐ็‰ˆๅฝขๆ€ใ€‚

ๅฆๅค–๏ผŒ1.21.4+ ็š„็‰ฉๅ“ๅฎšไน‰็”ŸๆˆไธŽ OptiFine CIT ่ฟ็งปไนŸๆฒกๆœ‰ๅๅ‘ไปปๅŠก๏ผš้™็บงๆ—ถไธไผšๅˆ ้™คๅทฒ็”Ÿๆˆ็š„ assets/<ns>/items/*.jsonใ€models/cit/ ไธŽ textures/cit/๏ผˆๆ—งๅฎขๆˆท็ซฏไผšๅฟฝ็•ฅ่ฟ™ไบ›็›ฎๅฝ•๏ผ‰๏ผŒไนŸไธไผšไธบๅฎƒไปฌ็”Ÿๆˆๅๅ‘็š„ models/item overridesใ€‚

โœจ ็‰นๆ€ง

  • ๅนฟ่ฆ†็›– โ€” 26 ไธช Java ็›ฎๆ ‡็‰ˆๆœฌๅŒบ้—ด๏ผŒๅ…ญไธชๆ—ถไปฃ๏ผˆClassic / Modern / Caves & Cliffs / Trails & Tales / Tricky Trials / Bundles of Bravery๏ผ‰
  • Java โ†” Bedrock๏ผˆๅฎž้ชŒๆ€ง๏ผ‰
    • j2b๏ผšไปปๆ„ Java ๅŒ… โ†’ ๅ…ˆ่ฝฌๅˆฐๆœ€ๆ–ฐ Java 26.3๏ผˆpack_format 97๏ผ‰ โ†’ ็ป“ๆž„้‡็ป„ โ†’ .mcpack
    • b2j๏ผšๆฃ€ๆต‹ .mcpack / ๅŸบๅฒฉ zip โ†’ ๅ…ˆ่ฝๅˆฐ Java 26.3 ๆ ‘ โ†’ ๅ†่ฝฌๅˆฐๆ‰€้€‰ Java ็›ฎๆ ‡ โ†’ .zip
    • ่ดดๅ›พๅˆซๅๅฏน้ฝ vanilla Bedrock๏ผˆ่ฏๆฐด็“ถใ€ๅบŠใ€ๆกถใ€ๆœจๆฟ/ๅŽŸๆœจใ€็›”็”ฒๅฑ‚็ญ‰๏ผ‰
    • ็”Ÿๆˆ gui/icons.png HUD ๅ›พ้›†ใ€textures_list.jsonใ€ๅฎนๅ™จ็•Œ้ขๆ‰ๅนณๅŒ–ไธŽ POT ้€‚้…
    • ๅนณๅฐ็‹ฌๆœ‰ๅ†…ๅฎนๆŒ‰ๆ–นๅ‘ๅ‰ฅ็ฆป๏ผˆไธไบ’่ฝฌ Java model โ†” Bedrock geometry๏ผ‰
  • ็€่‰ฒๅ™จๆŒ‰็›ฎๆ ‡็‰ˆๆœฌ้€‚้… โ€” natives/surgeon/shader_adapt.rs ็›ดๆŽฅๆ”นๅ†™ GLSL ไธŽ JSON๏ผŒไธๅชๆ˜ฏๅˆ‡ๆขๆˆ–ๅœ็”จ๏ผš
    • core ็€่‰ฒๅ™จๆˆ็ป„ๆ”นๅ๏ผˆ.json/.vsh/.fsh ไธ‰ไปถๅฅ—๏ผ‰๏ผŒๆŒ‰็›ฎๆ ‡ๆ ผๅผๅœจ็Žฐไปฃ็™ฝๅๅ•ไธŽๆ—ง็‰ˆ็™ฝๅๅ•ไน‹้—ด่ฃๅ‰ช๏ผŒๅนถๆธ…็†ๅทฒ็งป้™ค็š„ stem๏ผ›็ผบๅคฑ็š„ .json ไผš่กฅๆœ€ๅฐ้ชจๆžถ
    • ๅฏผๅ…ฅๆŒ‡ไปค่ฟ็งป๏ผš#moj_import ๅ‘ฝๅ็ฉบ้—ดๅŒ–๏ผ›็›ฎๆ ‡ๆ ผๅผ โ‰ฅ97๏ผˆ26.3+๏ผ‰ๆ”นๆˆ #include๏ผ›globals.glsl ๅผ•็”จๆŒ‰้œ€ๆณจๅ…ฅ
    • JSON ไพงๆ”นๅ†™๏ผš็Ÿฉ้˜ต็ฑปๅž‹ๅ‡็บงใ€ๆŒ‰ UBO ้œ€่ฆๅ‰ฅ็ฆป uniformsใ€post ่ทฏๅพ„่ฟ็งป
    • ่ตฐๆŸฅๆ—ถ่ทณ่ฟ‡ include/ ็›ฎๅฝ• โ€”โ€” ๅผ„ๅๅฎƒไผšๅฏผ่‡ดๆ•ดๅŒ…้‡่ฝฝๅคฑ่ดฅ
    • ็›ฎๆ ‡ๆ ผๅผ็”ฑไปปๅŠก่‡ชๅทฑไปŽ pack.mcmeta ่ฏปๅ–๏ผŒไธไพ่ต–่ฐƒ็”จๆ–นไผ ๅ‚
  • ๅฎŒๅ…จๆœฌๅœฐ โ€” ๆ— ไบ‘็ซฏใ€ๆ— ่ดฆๅทใ€ๆ— ้ฅๆต‹๏ผŒ่ฝฌๆขๅ…จ็จ‹ไธ่”็ฝ‘๏ผˆๆ›ดๆ–ฐๆฃ€ๆŸฅไธŽๅฏ้€‰็š„ Foray AI ๅˆ†ๆžไผš่”็ฝ‘๏ผŒ่ฏฆ่งใ€Œๅทฒ็Ÿฅ้™ๅˆถใ€๏ผ‰
  • ๆ‰น้‡ๅค„็† โ€” ไธ€ๆฌกๆ‹–ๅ…ฅๅคšไธช่ต„ๆบๅŒ…๏ผ›ๆ€ง่ƒฝๆกฃไฝ๏ผˆ่ฎพ็ฝฎ้‡ŒไบŒ้€‰ไธ€๏ผ‰๏ผšๅนณ่กก็”จไธ€ๅŠๆ ธๅฟƒ๏ผˆไธ‹้™ 2ใ€ไธŠ้™ 8๏ผ‰ๅนถๅŒๆ—ถ่ฝฌๆข 2 ไธชๅŒ…๏ผŒๆœบๅ™จๅฏ็ปง็ปญๆญฃๅธธไฝฟ็”จ๏ผ›ๆ€ง่ƒฝๅƒๆปกๆ ธๅฟƒ๏ผˆไธŠ้™ 32๏ผ‰ๅนถๅŒๆ—ถๆœ€ๅคš 6 ไธชๅŒ…๏ผˆๅฏ็”จๅ†…ๅญ˜ไฝŽไบŽ 1500 MB ๆ—ถ่‡ชๅŠจ้™ไธบ 1 ไธชๅŒ…๏ผ‰ใ€‚่ฎพ็ฝฎ้กนไธ‹ๆ–นๅฎžๆ—ถๆ˜พ็คบๆœฌๆœบ่งฃๆž็ป“ๆžœ๏ผˆๆ ธๆ•ฐ ยท ็บฟ็จ‹้ข„็ฎ— ยท ๅนถๅ‘ๅŒ…ๆ•ฐ๏ผ‰
  • ็›ฎๅฝ•่ง„ๆ•ด้˜ฒๅ‘† โ€” ่‡ชๅŠจๆŠŠๅตŒๅฅ—็š„ pack.mcmeta ๆๅ‡ๅˆฐๅŽ‹็ผฉๅŒ…ๆ น็›ฎๅฝ•๏ผ›pack.mcmeta.txt ไน‹็ฑปๅคšๆ‰ฉๅฑ•ๅๆ–‡ไปถๅช่ฆๅ†…ๅฎนๆ˜ฏๅˆๆณ• mcmeta๏ผˆ่ƒฝ่งฃๆžๅ‡บ format ๆ•ฐๅ€ผ๏ผ‰ไนŸไผš็ปŸไธ€ๆ”นๅไธบ pack.mcmeta
  • ๅŠจๆ€่ดดๅ›พ่ฝฌๆข โ€” ่€็‰ˆ {"animation": {}} ็š„ .png.mcmeta ่‡ชๅŠจๆŒ‰่ดดๅ›พๅฐบๅฏธๆŽจๅฏผๅธงๆ•ฐ๏ผŒๆ”นๅ†™ไธบ้ซ˜็‰ˆๆœฌ frametime + interpolate ๆ ผๅผ
  • ็บน็†่‡ชๆฃ€ โ€” ่ฝฌๆขๆ—ถ่‡ชๅŠจไฟฎๅคไธค็ฑปๅธธ่งๅๅ›พ๏ผšๅ†…ๅฎนๆ˜ฏ JPEG ๅดๅ‘ฝๅไธบ .png ็š„่ดดๅ›พไผš่ขซ่งฃ็ ๅนถ้‡็ผ–็ ไธบ็œŸ PNG๏ผˆๆญฃๅธธ PNG ้€ๅญ—่Š‚ไธๅŠจ๏ผ‰๏ผ›1.6โ€“1.8 ๆ—งๅŒ…ๅ‡ 1.9+ ๆ—ถๆธ…็†ๅคง้ข็งฏใ€่งฆ่พนใ€alpha=1โ€“2 ็š„ๅ‡้€ๆ˜Ž่ƒŒๆ™ฏ๏ผŒ้ฟๅ…็‰ฉๅ“ไพง้ขๆฒฟๅ‡็Ÿฉๅฝข็”Ÿๆˆใ€‚่ฝฌๆข้กตใ€Œๅ›พๅฑ‚ไฟฎๅคใ€ๅผ€ๅ…ณไนŸ่Žทๅพ—็œŸๅฎžๅฎž็Žฐ๏ผˆๆขๅคๅކๅฒ 9 ๆกๅƒ็ด ่ง„ๅˆ™๏ผ›้ป˜่ฎคๅ…ณ๏ผŒๅผ€ๅฏๆ‰ๆ”นๅ†™ๅƒ็ด ๏ผ‰ใ€‚
  • ๆ—งๅŽŸ็‰ˆๆจกๅž‹่‡ชๅŠจ่ฎฉไฝ โ€” 1.9โ€“1.12๏ผˆpack_format 2/3๏ผ‰ๆ—งๅŒ…ๅ‡็บงๅˆฐ 1.13+ ๆ—ถ๏ผŒๅŒ…้‡Œๆœช็ปไฟฎๆ”น็š„ๆ—งๅŽŸ็‰ˆ models/**ใ€blockstates/** ไผš่ขซ่ฏ†ๅˆซๅนถๅœ็”จ๏ผŒ่ฎฉ็›ฎๆ ‡็‰ˆๆœฌๅŠ ่ฝฝ่‡ชๅทฑ็š„ๆจกๅž‹ไธŽๆ–นๅ—็Šถๆ€๏ผŒ็ณป็ปŸๆ€งๆถˆ้™คใ€Œๆ—งๅŒ…ๅ‡็บงๅŽ็ดซ้ป‘ๆ–นๅ—ใ€ๅ‡ ไฝ•้”™ไนฑใ€ๆ‰‹ๆŒๅคงๅฐๅผ‚ๅธธใ€็š„ๆ นๅ› ใ€‚ไฝœ่€…ๆ”น่ฟ‡็š„ๆ–‡ไปถใ€ไปฅๅŠ็›ฎๆ ‡็‰ˆๆœฌๆฒกๆœ‰ๅŽŸ็”Ÿๆ›ฟไปฃ็š„่ทฏๅพ„ไผšไฟ็•™ๅนถๅœจๆ—ฅๅฟ—ไธญ่ฏดๆ˜Žใ€‚ๆŒ‡็บน็”ฑ tools/gen-mc-reference.py ไปŽๅฎ˜ๆ–นๅฎขๆˆท็ซฏ jar ็”Ÿๆˆ๏ผˆไป“ๅบ“ๅชๆไบค่ทฏๅพ„ไธŽ่ง„่ŒƒๅŒ– JSON ็š„ SHA-256๏ผŒไธๅซไปปไฝ•ๅฎ˜ๆ–น่ต„ๆบ๏ผ‰ใ€‚
  • ่พ“ๅ‡บๅฝขๆ€ๅฏ้€‰ โ€” ่ฝฌๆขไบง็‰ฉๅฏไฟๅญ˜ไธบ ZIP ๅŽ‹็ผฉๅŒ…ๆˆ–่งฃๅŽ‹ๆ–‡ไปถๅคน๏ผˆ่ฎพ็ฝฎ โ†’ ่พ“ๅ‡บๅฝขๆ€๏ผ›CLI --folder๏ผ‰ใ€‚็›ฎๅฝ•ๅๆฒฟ็”จ่พ“ๅ‡บๅ‘ฝๅๆจกๆฟ๏ผˆ= ๅŒๅ zip ๅŽป .zip๏ผ‰๏ผŒpack.mcmeta ไธŽ 2pyr-gen.json ไธ€ๅนถไฟ็•™๏ผ›ๅŒๅ็›ฎๅฝ•ๅทฒๅญ˜ๅœจๆ—ถ็›ดๆŽฅๆŠฅ้”™ใ€ไธ่ฆ†็›–๏ผ›Bedrock ็›ฎๆ ‡ไธๆ”ฏๆŒๆ–‡ไปถๅคน่พ“ๅ‡บใ€‚ZIP ่พ“ๅ‡บไฝฟ็”จๆœ€้ซ˜ DEFLATE ็บงๅˆซ๏ผˆๆ–‡ๆœฌ็ฑปไบง็‰ฉไฝ“็งฏๆ›ดๅฐ๏ผ‰ใ€‚
  • 1.21.4+ ็‰ฉๅ“ๅฎšไน‰ไธŽ OptiFine CIT โ€” ๆ—งๅŒ… models/item/*.json ้‡Œ็š„ overrides + CustomModelData ไผš่ฟๆˆ assets/<ns>/items/<name>.json ็š„ๅŽŸ็”Ÿ็‰ฉๅ“ๅฎšไน‰๏ผ›OptiFine CIT๏ผˆoptifine/cit/**ใ€mcpatcher/cit/**๏ผ‰ไธ€ๅนถ่ฟ็งป๏ผŒๆ”ฏๆŒ CMDใ€้™„้ญ”ๅ + ็ญ‰็บง๏ผˆ็›ฎๆ ‡ โ‰ฅ 1.21.5๏ผ‰ใ€hand= ๅŒๆ‰‹ไธŠไธ‹ๆ–‡ไธŽๅผ“็š„ๅคš็Šถๆ€่ดดๅ›พ๏ผ›ๆ— ๆณ•็ฒพ็กฎ่กจ่พพ็š„ๆกไปถๅฆ‚ๅฎž่ทณ่ฟ‡ๅนถ่ฎฐๅฝ•ใ€‚CIT ่ฝฌๆข้ป˜่ฎคๅ…ณ้—ญ๏ผš็”จๆˆทๅฎžๆœบๆŠฅๅ‘Š่ฟ‡ๅผ“ / ้’ป็Ÿณๅ‰‘็ดซ้ป‘ๆ ผ๏ผŒ็ฆป็บฟ codec ๅคๆ ธๆ˜พ็คบไฟฎๅคๅŽ็š„้™„้ญ”ๆกไปถๅฝข็Šถๅœจ่กฅ้ฝๆณจๅ†Œ่กจๅŽๅฏไปฅ้€š่ฟ‡ใ€ไฝ†ๅฎžๆœบๆธฒๆŸ“ๆœช้ชŒ่ฏใ€่ฏฅๆŠฅๅ‘ŠๅŽŸๅ› ๅฐšๆœชๅค็Žฐ๏ผŒๆ‰€ไปฅๅ…ˆ้ป˜่ฎคไธ็”Ÿๆˆ๏ผ›้œ€่ฆ็š„็”จๆˆทๅœจ่ฝฌๆข้กตๆ‰‹ๅŠจๆ‰“ๅผ€ๅนถๅ…ˆๅœจๆธธๆˆๅ†…้ชŒ่ฏใ€‚
  • ไบง็‰ฉๅฏ่ฟฝๆบฏ๏ผˆ2pyr-gen๏ผ‰ โ€” Java ็‰ˆ่ต„ๆบๅŒ…่ฝฌๆขไบง็‰ฉๆ น็›ฎๅฝ•ไผšๅ†™ๅ…ฅไธ€ไปฝ 2pyr-gen.json๏ผˆBedrock ็›ฎๆ ‡ไธๅ†™๏ผ‰๏ผš่ฎฐๅฝ•ๆบ / ็›ฎๆ ‡ pack_formatใ€็จ‹ๅบ็‰ˆๆœฌไธŽ BUILDใ€ๆœฌๆฌก่ฝฌๆขๅผ€ๅ…ณไธŽ UTC ๆ—ถ้—ด๏ผ›ไธๅซ่ทฏๅพ„ใ€็”จๆˆทๅ็ญ‰ไธชไบบไฟกๆฏ๏ผŒMinecraft ๅฎขๆˆท็ซฏไธ่ฏปๅ–่ฏฅๆ–‡ไปถใ€‚้ป˜่ฎคๅผ€ๅฏ๏ผŒ่ฝฌๆข้กตๅฏๅ…ณ้—ญ๏ผˆ่ฎพ็ฝฎ้š้…็ฝฎไฟๅญ˜๏ผ‰๏ผ›EULA ไธŽ้š็งๅฃฐๆ˜ŽๅทฒๅŒๆญฅๆŠซ้œฒใ€‚
  • ่พ“ๅ‡บๅ‘ฝๅๆจกๆฟ โ€” [Ver] / [Name] / [Time] / [Date] ๅ ไฝ็ฌฆ่‡ช็”ฑ็ป„ๅˆ๏ผŒๅ†่ฝฌๆขๆ—ถ่‡ชๅŠจๆ›ฟๆขๅ็งฐไธญ็š„ๆ—ง็‰ˆๆœฌๅ‰็ผ€
  • Overlay ๆฏๅŒ…ๅ ๅŠ  โ€” ๅœจไธไฟฎๆ”นๅŽŸๅŒ…็š„ๅ‰ๆไธ‹๏ผŒๆŠŠ่‡ชๅฎšไน‰่ฆ†็›–ๅŒ…ๅ ๅŠ ๅˆฐไปปๆ„ๆฏๅŒ…ไธŠ
  • ็•Œ้ขๅŠจ็”ป โ€” ้กต้ขๅˆ‡ๆขไบคๅ‰ๆทกๅ…ฅๆทกๅ‡บ + ๆจก็ณŠ่ก”ๆŽฅ๏ผ›่ฎพ็ฝฎๅฏ้€‰ๅผ€ๅฏ / ่ทŸ้š็ณป็ปŸ / ๅ…ณ้—ญ๏ผ›้€Ÿ็އไธ‰ๆกฃไฝœ็”จไบŽๅฎŒๆ•ด้กตๅˆ‡ๆข
  • ๆทฑๅบฆๅฎšๅˆถ UI โ€” ่‡ชๅฎšไน‰่ƒŒๆ™ฏ๏ผˆ่‡ชๅŠจๆๅ–ไธป้ข˜่‰ฒ๏ผ‰ใ€็Žป็’ƒ / ็ฃจ็ ‚ๆŽงไปถ็šฎ่‚คใ€ๆต…่‰ฒ / ๆทฑ่‰ฒ / ่ทŸ้š็ณป็ปŸไธ‰ๆกฃไธป้ข˜ใ€ไธญ่‹ฑๅŒ่ฏญ
  • ่‡ช็ ”ๅฎ‰่ฃ…ๅ™จ โ€” ๆ— ้œ€็ฎก็†ๅ‘˜ๆƒ้™็š„ HKCU ๅฎ‰่ฃ…๏ผŒOOBE ๅˆ†ๆญฅๅ‘ๅฏผ๏ผŒๅฏ้€‰ๆกŒ้ข / ๅผ€ๅง‹่œๅ•ๅฟซๆทๆ–นๅผ๏ผ›ๅบ”็”จๅ†…ๆ›ดๆ–ฐๆ—ถ่ฟ›ๅ…ฅ่ฆ†็›–ๆ›ดๆ–ฐๆต๏ผˆ้”ๅฎšๅŽŸ็›ฎๅฝ•ใ€ไฟ็•™็”จๆˆทๆ•ฐๆฎ๏ผ‰๏ผ›้‡่ฃ…ๆ—ถๅฎ‰่ฃ…็›ฎๅฝ•่‡ชๅŠจๅฏน้ฝ็Žฐๆœ‰ไฝ็ฝฎ
  • ๆ™บ่ƒฝๆ›ดๆ–ฐ โ€” ็‹ฌ็ซ‹ๆ›ดๆ–ฐ้กต๏ผˆไธ‹่ฝฝ้€Ÿๅบฆ / ๅ‰ฉไฝ™ๆ—ถ้—ดใ€ๅคฑ่ดฅๅฏ็›ดๆŽฅ้‡่ฏ•๏ผ‰๏ผ›ๆŒ‰ major.minor.patch ๅˆคๅฎš๏ผšmajor ไธŽ Safe-* ๅผบๅˆถๆ›ดๆ–ฐ๏ผŒminor / patch ๅฏ้€‰
  • ๆ—ฅๅฟ—่„ฑๆ• โ€” ๅฏผๅ‡บๆ—ฅๅฟ—๏ผˆไผš่ฏๆ—ฅๅฟ—ๆˆ–็ฃ็›˜ๆ—ฅๅฟ—๏ผ‰้ป˜่ฎค่‡ชๅŠจ้š่— Windows ็”จๆˆทๅใ€ๆœบๅ™จๅใ€IPใ€้‚ฎ็ฎฑใ€API Key/token๏ผŒๅนถๆŠŠๅŒ…่ทฏๅพ„็›ฎๅฝ•ๅŽ‹ๆˆ <path>\ๆ–‡ไปถๅ๏ผ›ไป…ๅฏผๅ‡บๆ–‡ไปถ่„ฑๆ•๏ผŒๅฏๅœจๅผ€ๅ‘่€…้€‰้กนไธญๅ…ณ้—ญ
  • Beta ๅŒๆธ ้“ โ€” ๆญฃๅผ็‰ˆไธŽ Beta ็‰ˆๅฏๅนถๅญ˜ๅฎ‰่ฃ…๏ผˆ็‹ฌ็ซ‹ๆณจๅ†Œ่กจใ€็‹ฌ็ซ‹็›ฎๅฝ•ใ€Beta ๆ ‡่ฏ†๏ผ‰๏ผŒbetabuild ไธ€้”ฎๆž„ๅปบ

โš ๏ธ ๅทฒ็Ÿฅ้™ๅˆถ๏ผˆ่ฏทๅ…ˆ่ฏป๏ผ‰

2-Pyramid ๆ˜ฏ็ป“ๆž„่ฝฌๆขๅ™จ๏ผŒไธๆ˜ฏๅŽŸ็‰ˆ็ด ๆๅบ“ใ€‚ไปฅไธ‹ๅ‡ ็‚นๆ˜ฏ่ฎพ่ฎกๅ–่ˆ๏ผŒไธๆ˜ฏๅพ…ไฟฎ bug๏ผš

  • ็›ฎๆ ‡็‰ˆๆœฌ็š„ๆ–ฐๅขžๅ†…ๅฎนไธบใ€Œ่ฟ‘ไผผ็”Ÿๆˆใ€๏ผšๅ‡็บงๆ—ถ่‹ฅ็›ฎๆ ‡็‰ˆๆœฌๅผ•ๅ…ฅไบ†ๅŽŸๅŒ…ไธๅญ˜ๅœจ็š„ๆ–ฐๆ–นๅ— / ๆ–ฐ็‰ฉๅ“๏ผˆไพ‹ๅฆ‚ netheriteใ€copperใ€breezeใ€pale / poplar ๆœจๆฟใ€้ƒจๅˆ†ๆ ‘ๅถ๏ผ‰๏ผŒ็จ‹ๅบไผšไปŽๆœ€ๆŽฅ่ฟ‘็š„็Žฐๆœ‰่ดดๅ›พๆŒ‰ๆ‰‹ๅทฅๆ ‡ๅฎš็š„่‰ฒ็›ธ/้ฅฑๅ’Œๅบฆ/ๆ˜Žๅบฆๅ‚ๆ•ฐๆดพ็”Ÿไธ€ๅผ ่ฟ‘ไผผ่ดดๅ›พ๏ผˆ้ƒจๅˆ†ๆ ‘ๅถ้ขๅค–้’‰ไฝ่‰ฒ็›ธไปฅ้ฟๅ…ๆผ‚่‰ฒ๏ผ‰ใ€‚่ฟ™ไบ›่ดดๅ›พไธๆ˜ฏๅŽŸ็‰ˆ่ต„ๆบ๏ผŒไธŽๅŽŸ็‰ˆ่ง†่ง‰ๅญ˜ๅœจๅทฎๅผ‚ โ€”โ€” ๆƒณ่ฆ 1:1 ๅŽŸ็‰ˆ่ง‚ๆ„Ÿ๏ผŒ่ฏทๅœจ่ฝฌๆขๅŽ่‡ช่กŒๆ›ฟๆข่ฟ™ไบ›ๆ–‡ไปถใ€‚
  • ็ป“ๆž„่ฝฌๆขไผ˜ๅ…ˆ๏ผŒไธๅšๅƒ็ด ้‡็ป˜๏ผš็‰ฉๅ“ / ๆ–นๅ—่ดดๅ›พๅˆ†่พจ็އใ€GUI ๅธƒๅฑ€ใ€ๆจกๅž‹ไธŽๅŠจ็”ปๆŒ‰็‰ˆๆœฌ่ง„ๅˆ™ๆ”นๅ†™๏ผˆๅซไนๅฎซๆ ผ็ญ‰ๅŽšใ€sprite ๅˆ‡ๅ‰ฒใ€ๅ›พ้›†็”Ÿๆˆ็ญ‰๏ผ‰๏ผŒไฝ†ไธไผš้‡็”ป็พŽๆœฏ่ต„ๆบใ€‚
  • Bedrock ๅŒๅ‘่ฝฌๆขไธบๅฎž้ชŒๆ€ง๏ผšj2b / b2j ๆœชๅฎŒๆˆไธ”ๅญ˜ๅœจไธฅ้‡้—ฎ้ข˜๏ผŒไป…็”จไบŽๆต‹่ฏ•๏ผ›้€‰ไธญ่ฏฅ็›ฎๆ ‡ไผšๅผนๅ‡บ่ญฆ็คบ๏ผˆ.mcpack ๅฏ็›ดๆŽฅไฝœไธบ b2j ็š„่พ“ๅ…ฅ๏ผ‰ใ€‚
  • OptiFine CIT ่ฝฌๆข้ป˜่ฎคๅ…ณ้—ญ๏ผˆๅพ…ๅฎžๆœบ้ชŒ่ฏ๏ผ‰๏ผš็”จๆˆทๅฎžๆœบๆŠฅๅ‘Š่ฟ‡ 1.20.1 โ†’ 1.21.9โ€“1.21.10 ่ฝฌๆขๅŽๅผ“ / ้’ป็Ÿณๅ‰‘็ดซ้ป‘๏ผ›็ฆป็บฟ codec ๅคๆ ธๆ˜พ็คบไฟฎๅคๅŽ็š„้™„้ญ”ๆกไปถๅฝข็Šถๅœจ่กฅ้ฝ้™„้ญ”ๆณจๅ†Œ่กจๅŽๅฏไปฅ้€š่ฟ‡๏ผŒไฝ†ๆœฌๅทฅๅ…ทๆฒกๆœ‰ๅฎžๆœบๆธฒๆŸ“้ชŒ่ฏใ€่ฏฅๆŠฅๅ‘ŠๅŽŸๅ› ๅฐšๆœชๅค็Žฐ๏ผŒๆ•…ๅ…ˆ้ป˜่ฎคไธ็”Ÿๆˆใ€‚ๅผ€ๅฏๅ‰่ฏท่‡ช่กŒๅœจๆธธๆˆๅ†…้ชŒ่ฏ๏ผ›ๅ…ณ้—ญๆ—ถ CIT ๆบๆ–‡ไปถๅŽŸๆ ทไฟ็•™๏ผŒOptiFine ๅฎขๆˆท็ซฏไปไผš่ฏปๅ–ใ€‚
  • Java ็›ฎๆ ‡็š„ไบง็‰ฉๆ น็›ฎๅฝ•ไผšๅคšๅ‡บไธ€ไธช 2pyr-gen.json๏ผšๅฎƒๆ˜ฏ่ฝฌๆขๅ‚ๆ•ฐ่ฎฐๅฝ•๏ผˆๅฏ่ฟฝๆบฏ / ๆŽ’้šœ็”จ๏ผ‰๏ผŒไธๆ˜ฏๅŽŸๅŒ…ๅ†…ๅฎน๏ผ›Minecraft ๅฎขๆˆท็ซฏไธไผš่ฏปๅ–ๅฎƒ๏ผŒๅฏๅœจ่ฝฌๆข้กตๅ…ณ้—ญๅ†™ๅ…ฅ๏ผˆBedrock ็›ฎๆ ‡ไธๅ†™๏ผ‰ใ€‚
  • ็บน็†่‡ชๆฃ€ๆ˜ฏ้ป˜่ฎค่‡ชๅŠจ่กŒไธบ๏ผšๅ‡้€ๆ˜Ž่ƒŒๆ™ฏๆธ…็†ๅชๅœจๆบๅŒ…่‡ช็งฐ pack_format ไธบ 1๏ผˆ1.6โ€“1.8๏ผ‰ไธ”็›ฎๆ ‡ โ‰ฅ2 ๆ—ถ่งฆๅ‘๏ผŒ้˜ˆๅ€ผไฟๅฎˆ๏ผˆ่งฆ่พน + ้ข็งฏ โ‰ฅmax(64px, 5%) + ๅซ alpha 1/2๏ผ‰๏ผ›่‹ฅไฝ ็š„ๅŒ…ๅชๆ˜ฏๆŠŠ pack_format ๅกซ้”™๏ผˆๅ†…ๅฎนๅ…ถๅฎžๆ˜ฏๆ–ฐ็‰ˆ๏ผ‰๏ผŒ่ฝฌๆขๅ‰่ฏทๅ…ˆๆŠŠ็‰ˆๆœฌๅทๆ”นๅฏน๏ผŒๅฆๅˆ™ๅฐ‘้‡ alpha 1โ€“2 ่พน็ผ˜ๅฏ่ƒฝ่ขซๆธ…ๆˆ้€ๆ˜Žใ€‚
  • ๆ—งๅŽŸ็‰ˆๆจกๅž‹ๅœ็”จๅช่ฆ†็›– 1.9โ€“1.12 โ†’ 1.13+๏ผšๆบ pack_format 1๏ผˆ1.6โ€“1.8๏ผ‰ไปๆฒฟ็”จๆ—ขๆœ‰ๅค„็†๏ผ›่ฏ†ๅˆซๆ•ฐๆฎ่ฆ†็›–ๅฝ“ๅ‰ 23 ไธช Java ็›ฎๆ ‡ๆกฃไฝ๏ผŒๆ–ฐๅขž็›ฎๆ ‡ๆ ผๅผ้œ€้‡ๆ–ฐ่ฟ่กŒ tools/gen-mc-reference.pyใ€‚่ขซๅœ็”จ็š„ๆ–‡ไปถไปๅœจไฝ ็š„ๆบๅŒ…้‡Œ๏ผˆๆบๅŒ…ไธ่ขซไฟฎๆ”น๏ผ‰๏ผŒ้œ€่ฆๆ—ถๅฏ็›ดๆŽฅไปŽๆบๅŒ…ๅ–ๅ›žใ€‚
  • ๆ–‡ไปถๅคน่พ“ๅ‡บไธ่ฆ†็›–ๅทฒๆœ‰็›ฎๅฝ•๏ผšๅŒๅ็›ฎๅฝ•ๅทฒๅญ˜ๅœจๆ—ถ็›ดๆŽฅๆŠฅ้”™๏ผˆไธๅˆ ้™ค็”จๆˆทๆ•ฐๆฎ๏ผ‰๏ผ›้‡ๅค่ฝฌๆข่ฏทๅ…ˆๆ”นๅๆˆ–ๆข่พ“ๅ‡บ็›ฎๅฝ•ใ€‚Bedrock ็›ฎๆ ‡๏ผˆ.mcpack๏ผ‰ไธๆ”ฏๆŒๆ–‡ไปถๅคน่พ“ๅ‡บใ€‚
  • ZIP ๅŽ‹็ผฉๅญ—่Š‚ไธๆ˜ฏ็จณๅฎšๆŒ‡็บน๏ผš่พ“ๅ‡บๆ”น็”จๆœ€้ซ˜ DEFLATE ็บงๅˆซๅŽ๏ผŒๅŒไธ€ๅ†…ๅฎนๅœจไธๅŒ็‰ˆๆœฌไบง็‰ฉ้‡Œ็š„ zip ๅŽ‹็ผฉๅญ—่Š‚ๅฏ่ƒฝไธๅŒ๏ผˆๆก็›ฎๅ†…ๅฎน้€ๆกไธ€่‡ด๏ผ‰๏ผ›--pack-diff --strict ไผšๆŒ‰ๅญ—่Š‚็บงๆŠฅๅŽ‹็ผฉๅทฎๅผ‚๏ผŒๅฑž้ข„ๆœŸ่กŒไธบใ€‚
  • ๅ‘่กŒ็‰ˆ้ป˜่ฎคๅช่ฎฐๅฝ• Warn / Error ๆ—ฅๅฟ—๏ผšrelease ๆž„ๅปบไธ‹ Info ็บงๆ—ฅๅฟ—๏ผˆๅซ่ฝฌๆข่ฟ›ๅบฆไธŽ OKAY ๆ˜Ž็ป†๏ผ‰้ป˜่ฎคไธๅ†™ๅ…ฅๆ—ฅๅฟ—ๆ–‡ไปถ๏ผ›่‹ฅ้œ€ๅฎŒๆ•ดๆ—ฅๅฟ—็”จไบŽๆŽ’ๆŸฅ๏ผŒ่ฏทๅœจ่ฎพ็ฝฎ โ†’ ๅผ€ๅ‘่€…ๆจกๅผไธญๅผ€ๅฏๅŽๅ†ๅค็Žฐ้—ฎ้ข˜ใ€‚
  • ๆ›ดๆ–ฐๆฃ€ๆŸฅไผš่ฎฟ้—ฎ็ฝ‘็ปœ๏ผšไป…่ฎฟ้—ฎ GitHub ๅฎ˜ๆ–นๆบ๏ผˆๆญคๅ‰็š„็ฌฌไธ‰ๆ–น้•œๅƒๅทฒๅœๆญข็ปดๆŠคใ€ๅทฒ็งป้™ค๏ผ‰๏ผ›่ฝฌๆข่ฟ‡็จ‹ๆœฌ่บซๅ…จ็จ‹็ฆป็บฟใ€‚
  • Editor Mode / Foray ็š„ AI ๅŠŸ่ƒฝไผšๆŠŠๅ†…ๅฎนๅ‘็ป™็ฌฌไธ‰ๆ–น๏ผš่ฏฅๅŠŸ่ƒฝไฝฟ็”จไฝ ่‡ชๅทฑๅกซๅ†™็š„ OpenAI ๅ…ผๅฎน endpoint ไธŽๅฏ†้’ฅ๏ผŒไฝ ้€‰ๆ‹ฉๅˆ†ๆž็š„่ดดๅ›พ/ๆ–‡ๆœฌไผš่ขซๅ‘้€ๅˆฐ่ฏฅ endpointใ€‚้ป˜่ฎคๅ…ณ้—ญใ€‚

๐Ÿš€ ๅฟซ้€Ÿๅผ€ๅง‹

็”จๆˆท๏ผˆ็›ดๆŽฅไฝฟ็”จ๏ผ‰

  1. ๅ‰ๅพ€ Releases ไธ‹่ฝฝ 2-Pyramid-Installer-{็‰ˆๆœฌ}.exe๏ผˆBeta ็‰ˆไธบ 2-Pyramid-Installer-{็‰ˆๆœฌ}-beta.{BUILD}.exe๏ผ‰
  2. ๆˆ–ไปŽ Microsoft Store ๅฎ‰่ฃ…๏ผˆ2-Pyramid-{็‰ˆๆœฌ}.msix๏ผŒไธŽๅบ”็”จๅ†…ๆ›ดๆ–ฐไบ’ไธๅฝฑๅ“๏ผ‰
  3. ๅฎ‰่ฃ…ๅŽๅฏๅŠจ๏ผŒ้ฆ–ๆฌก่ฟ่กŒ่ทŸ้š OOBE ๅผ•ๅฏผ้…็ฝฎๅณๅฏ

ๅผ€ๅ‘่€…๏ผˆๆœฌๅœฐ่ฟ่กŒ๏ผ‰

git clone [email protected]:2-Pyramid-Studio/2-Pyramid.git
cd 2-Pyramid

npm install        # ๅ‰็ซฏไพ่ต–
npm run 2pyr       # Tauri dev ๆจกๅผ๏ผˆRust ๅŽ็ซฏ + Vite ๅ‰็ซฏ๏ผ‰

ๅธธ็”จ่„šๆœฌ๏ผš

ๅ‘ฝไปค ไฝœ็”จ
npm run dev ไป…ๅฏๅŠจ Vite ๅ‰็ซฏ๏ผˆๆ—  Rust ๅŽ็ซฏ๏ผ‰
npm run 2pyr Tauri dev ๆจกๅผ
npm run build ไป…ๆž„ๅปบๅ‰็ซฏ
npm run buildrelease ๆญฃๅผ็‰ˆๅฎŒๆ•ดๆž„ๅปบ๏ผˆๅ‰็ซฏ + ไธป็จ‹ๅบ + ่‡ช็ ”ๅฎ‰่ฃ…ๅ™จ โ†’ release/๏ผ‰
npm run betabuild Beta ๆธ ้“ๆž„ๅปบ๏ผˆ่พ“ๅ‡บ -beta.{BUILD}.exe๏ผŒไธŽๆญฃๅผ็‰ˆๅฏๅนถๅญ˜๏ผ‰
npm run buildrelease:nobump / npm run betabuild:nobump ๅކๅฒๅˆซๅ๏ผŒไธŽไธๅธฆ :nobump ็š„ๅ‘ฝไปค็›ธๅŒ๏ผˆๆž„ๅปบไธๅ†้€’ๅขž BUILD๏ผ‰
npm run test / npm run test:offline ่ฟ่กŒ Rust ๅ•ๆต‹๏ผˆtest:offline ๅผบๅˆถ็ฆป็บฟ๏ผ‰
npm run buildrelease:noinstaller ่ทณ่ฟ‡่‡ช็ ”ๅฎ‰่ฃ…ๅ™จ EXE๏ผ›ไฝ†้ป˜่ฎคไปไผšไธบ MSIX ๅ†็ผ–่ฏ‘ไธ€ๆฌก๏ผˆ--features store๏ผ‰ๅนถๆ‰“ๅŒ…๏ผŒๆ‰€ไปฅๆƒณ็œŸๆญฃๅชๆž„ๅปบไธป็จ‹ๅบ้œ€ๅŒๆ—ถ่ทณ่ฟ‡ MSIX๏ผšpython tools/build_release.py --skip-installer --skip-msix
python tools/build_release.py --skip-msix / --sign-msix ่ทณ่ฟ‡ MSIX / ็ญพๅ MSIX๏ผˆsideload ๆต‹่ฏ•๏ผ‰
npm run bump:build:show / bump:build:set ๆŸฅ็œ‹ / ๆ‰‹ๅŠจ่ฎพ็ฝฎ BUILD ๆž„ๅปบๅท

ๆž„ๅปบๅท่ฏดๆ˜Ž๏ผšBUILD ๆ˜ฏๆไบค้‡Œ็š„ไธ€ไธชๅ€ผ๏ผŒๆž„ๅปบๅช่ฏปไธๅ†™ใ€‚CI ๅ‡บ็š„ EXE ไธŽๆœฌๅœฐๅ‡บ็š„ MSIX ๅ› ๆญค็ผ–ๅทไธ€่‡ด โ€”โ€” ๅฎƒไปฌๆ˜ฏๅŒไธ€ไธช็‰ˆๆœฌ็š„ไธคๅŠ๏ผŒ็ผ–ๅทไธๅŒๅฐฑๆ— ๆณ•ๅ›ž็ญ”ใ€Œ่ฟ™ไธช MSIX ๅฏนๅบ”ๅ“ชๆฌกๆž„ๅปบใ€ใ€‚่ฆๆŽจ่ฟ›็ผ–ๅท็”จ tools/bump_build.py๏ผŒๅ’Œ็‰ˆๆœฌๅทไธ€ๆ ทๆ˜ฏๆ˜พๅผๅŠจไฝœใ€‚

๐Ÿ”„ ๆ›ดๆ–ฐๆœบๅˆถ

ๅบ”็”จๅ†…็š„ใ€Œๆฃ€ๆŸฅๆ›ดๆ–ฐใ€่ฏปๅ–ๆœฌไป“ๅบ“็š„ Releases๏ผˆไป… GitHub ๅฎ˜ๆ–น API๏ผ‰ใ€‚Release tag ็บฆๅฎš๏ผš

Tag ๅ‰็ผ€ ๅซไน‰ ๅฏ่ง้€š้“
Safe-{็‰ˆๆœฌ} ้‡่ฆๅฎ‰ๅ…จๆ›ดๆ–ฐ๏ผˆๅผบๅˆถๆ้†’๏ผ‰ ๅ…จ้ƒจ
Stable-{็‰ˆๆœฌ} ็จณๅฎš็‰ˆ ็จณๅฎš้€š้“ / ๅ…จ้ƒจ
v{็‰ˆๆœฌ} ็จณๅฎš็‰ˆ๏ผˆๆ— ๅ‰็ผ€๏ผ‰ ็จณๅฎš้€š้“ / ๅ…จ้ƒจ
UnStable-{็‰ˆๆœฌ} / Beta-{็‰ˆๆœฌ} ๆต‹่ฏ•็‰ˆๆ›ดๆ–ฐ ๆต‹่ฏ•้€š้“ / ๅ…จ้ƒจ

ๆ›ดๆ–ฐ้€š้“ไธบไธ‰ๆ€๏ผš็จณๅฎš็‰ˆ๏ผˆไป…็จณๅฎšๅ‘ๅธƒ๏ผ‰/ ๆต‹่ฏ•็‰ˆ๏ผˆไป…ๆต‹่ฏ•ๅ‘ๅธƒ๏ผ‰/ ๅ…จ้ƒจ๏ผˆๅŒๆ—ถๆŽฅๅ—ไธคไธช้€š้“็š„ๆ›ดๆ–ฐๅ†…ๅฎน๏ผŒๅ–ๆœ€้ซ˜็‰ˆๆœฌ๏ผ‰ใ€‚ ๆ›ดๆ–ฐๆบ๏ผšไป… GitHub ๅฎ˜ๆ–นโ€”โ€”็ฌฌไธ‰ๆ–น้•œๅƒ cdn.5eggpack.top ๅทฒไบŽ 2026-10 ๅฝปๅบ•็งป้™ค๏ผˆ้•œๅƒไฝœ่€…ๅœๆญข็ปดๆŠค๏ผ‰๏ผŒ่ฎพ็ฝฎ้‡Œไธๅ†ๆœ‰ใ€Œๆ›ดๆ–ฐๆบใ€้€‰้กน๏ผŒไนŸๆฒกๆœ‰ๆต‹้€Ÿ / ๅˆ‡ๆขๅ…ฅๅฃใ€‚

ๅ‘ๅธƒๅทฅไฝœๆตๅช็”ฑ Safe- / Stable- / Beta- / UnStable- ๅ››ไธชๅ‰็ผ€่งฆๅ‘๏ผ›ๆ— ๅ‰็ผ€็š„ v{็‰ˆๆœฌ} ไธๅœจ่งฆๅ‘ๅˆ—่กจ้‡Œ๏ผˆๆ›ดๆ–ฐๅ™จไป่ƒฝ่งฃๆž่ฟ™็ฑป tag๏ผŒไฝ†ไธไผš่‡ชๅŠจๆž„ๅปบ๏ผ‰ใ€‚

ๅ‘็‰ˆ่ฆๆฑ‚๏ผš

  1. Release ้™„ๅธฆ .exe ๅฎ‰่ฃ…ๅŒ…๏ผˆ่‡ช็ ”ๅฎ‰่ฃ…ๅ™จ๏ผ‰ๅŠๅŒๅ .sha256 ๆ ก้ชŒๆ–‡ไปถ๏ผˆbuild_release.py ่‡ชๅŠจ็”Ÿๆˆ๏ผ‰ใ€‚ๅ“ˆๅธŒไธๅŒน้…ไธ€ๅพ‹ๆ‹’็ป๏ผ›.sha256 ็ผบๅคฑๆˆ–ๆ‹‰ๅ–ๅคฑ่ดฅๆ—ถ้ป˜่ฎคๅŒๆ ทๆ‹’็ป๏ผŒ็”จๆˆทๅฏๅœจ็•Œ้ขไธŠๆ˜พๅผ้€‰ๆ‹ฉ่ทณ่ฟ‡ๆ ก้ชŒ็ปง็ปญๅฎ‰่ฃ…๏ผˆไป…ๅฝ“ๆฌกๆœ‰ๆ•ˆใ€ไธ่ฎฐๅฟ†ใ€่ฎฐๅ…ฅๆ—ฅๅฟ—๏ผŒไธ”ๅฎ‰่ฃ…ๅŒ…ๆ–‡ไปถๅไธ็ฌฆ็‰ˆๆœฌๅทๆ—ถไธๅ…่ฎธ่ทณ่ฟ‡๏ผ‰๏ผ›
  2. ๅบ”็”จๅ†…ๆ›ดๆ–ฐๆ—ถ๏ผŒๆ›ดๆ–ฐๅ™จไปฅ --from-app ๆ‹‰่ตทๅฎ‰่ฃ…ๅ™จ็š„่ฆ†็›–ๆ›ดๆ–ฐๅ‘ๅฏผ๏ผˆไฟ็•™็”จๆˆทๆ•ฐๆฎใ€้”ๅฎšๅŽŸๅฎ‰่ฃ…็›ฎๅฝ•๏ผ‰๏ผŒ่€Œไธๆ˜ฏๅ…จๆ–ฐๅฎ‰่ฃ…ๆต็จ‹๏ผ›
  3. ่ตฐ Microsoft Store ๆ—ถๅฆ้™„ release/2-Pyramid-{็‰ˆๆœฌ}.msix๏ผˆbuild_release.py ้ป˜่ฎคไบงๅ‡บ๏ผŒๅฏ็”จ --skip-msix ่ทณ่ฟ‡๏ผ‰ใ€‚

๐Ÿ—๏ธ ๆžถๆž„

2-Pyramid ็š„ๆ ธๅฟƒๆ˜ฏ่‡ช็ ”็š„ DTD Pipeline ไธŽ BFS Scheduler๏ผš

        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚          Resource Pack (zip / folder)                โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ  ็›ฎๅฝ•่ง„ๆ•ด๏ผˆๆœ€ๅ…ˆๆ‰ง่กŒใ€ไผ˜ๅ…ˆ็บงๆœ€้ซ˜๏ผ‰
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚     ๅฎšไฝ / ๆๅ‡ pack.mcmeta ๅˆฐๅŽ‹็ผฉๅŒ…ๆ น็›ฎๅฝ•            โ”‚
        โ”‚     ๏ผˆๅซ pack.mcmeta.txt ๅคšๆ‰ฉๅฑ•ๅ้˜ฒๅ‘†๏ผ‰               โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚              DTD Pipeline (Scheduler)                โ”‚
        โ”‚      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”‚
        โ”‚      โ”‚  Eraser  โ”‚ โ†’ โ”‚ Architectโ”‚ โ†’ โ”‚ Surgeon  โ”‚      โ”‚
        โ”‚      โ”‚ ๆ‹†่งฃๅŒ…,  โ”‚   โ”‚ BFS ่ง„ๅˆ’ โ”‚   โ”‚ ๅบ”็”จๆจกๅ— โ”‚      โ”‚
        โ”‚      โ”‚ ๆๅ–็บน็† โ”‚   โ”‚ ่ฝฌๆข่ทฏๅพ„ โ”‚   โ”‚ ๆ”นๅ†™่พ“ๅ‡บ โ”‚      โ”‚
        โ”‚      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚            Target Version (1.6 โ†’ 26.3)                โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  • ็›ฎๅฝ•่ง„ๆ•ด โ€” ๆœ€ๅ…ˆๆ‰ง่กŒ๏ผšๅฎšไฝ็œŸๆญฃ็š„ pack.mcmeta๏ผˆๅซๅคšๆ‰ฉๅฑ•ๅ้˜ฒๅ‘†๏ผ‰ๅนถๆๅ‡ๅˆฐๆ น็›ฎๅฝ•
  • Eraser โ€” ๆ‹†่งฃๆบ่ต„ๆบๅŒ…๏ผŒ็ปŸไธ€ไธญ้—ด่กจ็คบ
  • Architect โ€” ๅœจโ€œ็›ฎๆ ‡็‰ˆๆœฌๅ›พโ€ไธŠ BFS ่ง„ๅˆ’ๆœ€็Ÿญ่ฝฌๆข่ทฏๅพ„
  • Surgeon โ€” ๆŒ‰ๅบๆ‰ง่กŒๆฏไธช converter๏ผˆๅ„ๅซ reverse ้…ๅฏน๏ผ‰๏ผŒ่พ“ๅ‡บ็›ฎๆ ‡่ต„ๆบๅŒ…

Bedrock ่ทฏๅพ„๏ผˆๅฎž้ชŒๆ€ง๏ผ‰ ๅœจๅŒไธ€ Scheduler ไธŠไปฅ็‰ˆๆœฌ่พนๆŒ‚่ฝฝ๏ผš

  • src-tauri/src/bedrock_convert/ ๆจกๅ—๏ผšmapping / textures / ui / potions / metadata / shaders / skybox / j2b / b2j
  • ไปปๅŠก bedrock_java_to_bedrock / bedrock_bedrock_to_java๏ผˆExclusive + Surgeon๏ผ‰
  • ่พน๏ผšj2b (84|88|97 โ†’ 1000)ใ€b2j (1000 โ†’ 97|88|84)๏ผŒๅ‡ๅœจ arom/engine/conversion_maps.rs ๅฃฐๆ˜Ž๏ผ›Java ไธญ้—ดๆ€็ปŸไธ€ format 97๏ผˆ26.3๏ผ‰

๐Ÿงช ๅ‘ฝไปค่กŒๅทฅๅ…ท๏ผˆๆŽ’ๆŸฅ / ๅŽ‹ๆต‹ / ่ดจ้‡้—ธ้—จ๏ผ‰

ไธป็จ‹ๅบๆ”ฏๆŒๅ››ไธชๆ— ็•Œ้ขๆจกๅผ๏ผŒๅ…จ้ƒจๅช่ฏปๆˆ–็‹ฌ็ซ‹่ฟ่กŒใ€ไธๅฏๅŠจ GUI๏ผš

ๅ‘ฝไปค ไฝœ็”จ
2-pyramid.exe --convert <ๅŒ…|็›ฎๅฝ•> [--to 26.3] [--out <็›ฎๅฝ•>] [--report <ๆŠฅๅ‘Š.json>] [--folder] [--fast] [--cit] [--no-gen-metadata] ่ท‘ๅฎŒๆ•ด่ฝฌๆข็ฎก็บฟๅนถ่พ“ๅ‡บ็ป“ๆž„ๅŒ–ๆŠฅๅ‘Š๏ผš็ป“ๆž„ๅˆ†ๆž + ็บฏ่ฝฌๆข/ๆ€ปๆ—ถ้—ด๏ผˆๅซ IO ๅˆ†่งฃ๏ผ‰+ ้€ไปปๅŠก่€—ๆ—ถ + ไฝ“็งฏๅ˜ๅŒ–ใ€‚็›ฎๅฝ•ไผš้€’ๅฝ’ๅค„็†ๅ…ถไธญๆ‰€ๆœ‰ .zip/.mcpackใ€‚--fast ๅ…ณ้—ญ GUI sprite ๆ‰‹ๆœฏ๏ผˆrun_gui_surgeon๏ผ‰๏ผŒ็”จไบŽ้š”็ฆป"ๆ‰‹ๆœฏ"้‚ฃ้ƒจๅˆ†็š„่€—ๆ—ถใ€‚--folder ่พ“ๅ‡บ่งฃๅŽ‹็›ฎๅฝ•๏ผˆไป… Java ็›ฎๆ ‡๏ผ›ๅŒๅ็›ฎๅฝ•ๅทฒๅญ˜ๅœจไผšๆŠฅ้”™๏ผ‰ใ€‚CIT ่ฝฌๆข้ป˜่ฎคๅ…ณ๏ผˆ--cit ๆ‰“ๅผ€๏ผ‰๏ผ›ไบง็‰ฉๅ…ƒๆ•ฐๆฎ 2pyr-gen.json ้ป˜่ฎคๅ†™๏ผˆ--no-gen-metadata ๅ…ณ้—ญ๏ผ‰ใ€‚
2-pyramid.exe --versions ๅˆ—ๅ‡บๅ…จ้ƒจ็›ฎๆ ‡็‰ˆๆœฌๆ ‡็ญพไธŽ pack_format๏ผˆTAB ๅˆ†้š”๏ผŒๆ ผๅผ spec<TAB>format<TAB>label๏ผŒๅ‰ 2 ่กŒๆ˜ฏ # ๆณจ้‡Šๅคด๏ผ›spec ๅฏ็›ดๆŽฅไฝœไธบ --to ็š„ๅ€ผไบค็ป™่„šๆœฌ๏ผ‰ใ€‚
2-pyramid.exe --analyze <ๅŒ…|็›ฎๅฝ•> ๅช่ฏป็ป“ๆž„ๅˆ†ๆž๏ผšๅฎ˜ๆ–นๅˆ†ๅฑ‚๏ผˆoverlays๏ผ‰ใ€supported_formats ๅŒบ้—ดใ€้žๆ ‡ๅ‡†็‰ˆๆœฌๆŠ˜ๅ ็›ฎๅฝ•ใ€ไธ€ๅŒ…ๅคšๆ น๏ผŒๅซๆฏๅฑ‚ๆ–‡ไปถๆ•ฐไธŽ่ฆ†็›–่ฎกๆ•ฐใ€‚
2-pyramid.exe --pack-diff <A> <B> [--strict] [--json <ๆŠฅๅ‘Š>] ่ดจ้‡้—ธ้—จ๏ผšPNG ๅƒ็ด ็บงใ€JSON ่ฏญไน‰็บงใ€ๅ…ถไฝ™ๅญ—่Š‚็บงๆฏ”ๅฏน๏ผ›้ป˜่ฎคๅ…่ฎธ"ๅƒ็ด ็›ธๅŒไป…็ผ–็ ไธๅŒ"๏ผŒ--strict ่ฆๆฑ‚ๅญ—่Š‚ไธ€่‡ดใ€‚้€€ๅ‡บ็  0/1๏ผŒๅฏ็”จไบŽๆ้€Ÿๆ”นๅŠจ็š„ๅ›žๅฝ’้ชŒ่ฏใ€‚

ๆ‹–ๆ”พๅณ่ฝฌๆข๏ผšๆŠŠ่ต„ๆบๅŒ…๏ผˆๆˆ–ๅซๅŒ…็š„ๆ–‡ไปถๅคน๏ผ‰ๆ‹–ๅˆฐ tools/convert-report.bat ไธŠโ€”โ€”่„šๆœฌไผšๆ‰พๅˆฐๆ”ฏๆŒ --convert ็š„็จ‹ๅบ๏ผˆไป“ๅบ“ๆž„ๅปบไผ˜ๅ…ˆ๏ผŒๅ…ถๆฌกๅทฒๅฎ‰่ฃ…็‰ˆๆœฌ๏ผ‰ใ€่ฎฉไฝ ้€‰็›ฎๆ ‡็‰ˆๆœฌใ€่ท‘่ฝฌๆขใ€ๆ‰“ๅฐไธคไธช่€—ๆ—ถๅฃๅพ„ไธŽๆ…ขไปปๅŠก๏ผŒๅนถๆŠŠ JSON ๆŠฅๅ‘Šๅญ˜ๅˆฐ่ต„ๆบๅŒ…ๆ—่พนๅŒๆ—ถๆ‰“ๅผ€ๆ‰€ๅœจๆ–‡ไปถๅคนใ€‚

ไนŸๅฏ่„šๆœฌๅŒ–่ฐƒ็”จ๏ผˆ.bat ๅชๆ˜ฏ็บฏ ASCII ๅฏๅŠจๅ™จ๏ผŒ้€ป่พ‘ๅœจ convert-report.ps1 ้‡Œ๏ผ‰๏ผš

.\tools\convert-report.bat "D:\packs\my.zip" -Target 1.21.4      # ๆŒ‡ๅฎš็‰ˆๆœฌ
.\tools\convert-report.bat "D:\packs"        -MenuChoice 7 -Yes  # ่œๅ•ๅบๅท 7 = 1.21.4๏ผŒ่ทณ่ฟ‡็กฎ่ฎค

ๅ‚ๆ•ฐ๏ผš-Target๏ผˆ็‰ˆๆœฌๆˆ– pack_format๏ผ‰ใ€-MenuChoice๏ผˆ่œๅ• 1โ€“16๏ผ‰ใ€-Yes๏ผˆ่ทณ่ฟ‡็กฎ่ฎคไธŽ็ป“ๅฐพ็ญ‰ๅพ…๏ผ‰ใ€-NoOpen๏ผˆไธ่‡ชๅŠจๆ‰“ๅผ€ๆ–‡ไปถๅคน๏ผ‰ใ€‚

ๆ€ง่ƒฝๅŸบๅ‡†้กต๏ผštools/benchmark/index.html๏ผˆๅ•ๆ–‡ไปถใ€้›ถไพ่ต–๏ผ‰โ€”โ€”ๆจชๅ‘ๅฏนๆฏ”ๅ„ไผ˜ๅŒ–่Š‚็‚น็š„่€—ๆ—ถๆž„ๆˆ๏ผŒๅซๅŒ่ฎกๆ—ถๅฃๅพ„ๅˆ‡ๆขไธŽ่ดจ้‡ๆ ก้ชŒ็ป“่ฎบ๏ผ›ๆ•ฐๆฎๆ›ดๆ–ฐๆ–นๅผ่ง tools/benchmark/README.mdใ€‚

็ปดๆŠค่€…ๆ–‡ๆกฃ๏ผšๅ‘ๅธƒๆธ…ๅ• tools/release/README.md๏ผ›ๅ•†ๅบ—ๆไบคๆ–‡ๆกˆ tools/store/ใ€‚

๐Ÿงฐ ๆŠ€ๆœฏๆ ˆ

ๅฑ‚ ๆŠ€ๆœฏ
ๆกŒ้ขๅฃณ Tauri 2๏ผˆไป… Windows๏ผŒ่‡ช็ป˜ๆ— ่พนๆก†็ช—ๅฃ๏ผ‰
ๅ‰็ซฏ Vue 3.5 + TypeScript 5 + Vite + vue-i18n 10
ๅŽ็ซฏ Rust + image + zip + winreg + reqwest๏ผˆๆ›ดๆ–ฐๆฃ€ๆŸฅ๏ผ‰
ๅฎ‰่ฃ…ๅ™จ installer-app/๏ผˆTauri 2 + Vue 3๏ผŒๅ†…ๅตŒ payload.zip ็š„ HKCU ๅ…็ฎก็†ๅ‘˜ๅฎ‰่ฃ…ๅ™จ๏ผ‰
ๅ‘ๅธƒๆตๆฐด็บฟ tools/build_release.py๏ผˆๆ— ็ฌฌไธ‰ๆ–นๆ‰“ๅŒ…ๅทฅๅ…ท๏ผ‰
่ต„ๆบ src-tauri/UImage/๏ผˆๆจกๆฟ่ดดๅ›พ๏ผ‰+ src-tauri/overlay/๏ผˆOverlay ๆจกๆฟ๏ผ‰

๐Ÿ“ ้กน็›ฎ็ป“ๆž„

2-Pyramid/
โ”œโ”€โ”€ src/                       Vue 3 ๅ‰็ซฏ
โ”‚   โ”œโ”€โ”€ components/            ้กต้ข็ป„ไปถ๏ผˆHome / Conversion / Settings / Overlay โ€ฆ๏ผ‰
โ”‚   โ”œโ”€โ”€ composables/           useAppInfo / useUpdater / useI18n โ€ฆ
โ”‚   โ””โ”€โ”€ locales/               zh-CN.json / en-US.json
โ”œโ”€โ”€ src-tauri/                 Rust ๅŽ็ซฏ๏ผˆไธป็จ‹ๅบ๏ผ‰
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ arom/              A-ROM ๅฏน่ฑกๆจกๅž‹ + ๆ‰ง่กŒๅผ•ๆ“Ž๏ผˆengine/๏ผš็‰ˆๆœฌๆ˜ ๅฐ„ไธŽๆŒ‰้˜ถๆฎต่ฐƒๅบฆ๏ผ‰
โ”‚   โ”‚   โ”œโ”€โ”€ natives/           ๅŽŸ็”ŸไปปๅŠกๅฎž็Žฐ๏ผˆeraser / architect / surgeon / reverse ๅˆ†็ป„๏ผ‰
โ”‚   โ”‚   โ”œโ”€โ”€ pack/              ่ต„ๆบๅŒ… I/O ไธŽๅˆ†ๆžๅทฅๅ…ท๏ผˆio / diff / analysis / version_converter๏ผ‰
โ”‚   โ”‚   โ”œโ”€โ”€ bedrock_convert/   ๅŸบๅฒฉ โ†” Java ็ป“ๆž„่ฝฌๆข๏ผˆj2b / b2j๏ผ‰
โ”‚   โ”‚   โ”œโ”€โ”€ commands/          Tauri ๅ‘ฝไปค๏ผˆconfig / background / overlay / misc โ€ฆ๏ผ‰
โ”‚   โ”‚   โ”œโ”€โ”€ foray/             ่ต„ๆบๅŒ…็ป“ๆž„ๅˆ†ๆžไธŽ่ฝป้‡็ผ–่พ‘๏ผˆ็ผ–่พ‘ๅฏๅฐฑๅœฐๅ†™ๅ›ž๏ผŒๅ†™ๅ…ฅๅ‰่‡ชๅŠจๅค‡ไปฝ๏ผ‰
โ”‚   โ”‚   โ”œโ”€โ”€ overlay/           Overlay ๆจกๆฟ็”Ÿๆˆ
โ”‚   โ”‚   โ””โ”€โ”€ lib.rs             ๅ…ฅๅฃ๏ผš็ช—ๅฃๅˆ›ๅปบ / ๅ•ๅฎžไพ‹ / ้€€ๅ‡บ็ญ–็•ฅ
โ”‚   โ”œโ”€โ”€ UImage/                ๅ†…็ฝฎ่ดดๅ›พๆจกๆฟ
โ”‚   โ”œโ”€โ”€ overlay/               Overlay ๆจกๆฟ๏ผˆๆจกๅž‹ / shader / lang๏ผ‰
โ”‚   โ””โ”€โ”€ tauri.conf.json
โ”œโ”€โ”€ installer-app/             ่‡ช็ ”ๅฎ‰่ฃ…ๅ™จ้กน็›ฎ๏ผˆๅ†…ๅตŒ payload.zip๏ผŒHKCU ๆณจๅ†Œ่กจ๏ผ‰
โ”œโ”€โ”€ brand/                     ๅ“็‰Œๆบ SVG๏ผˆPrecision Geometry๏ผ‰+ ๆๆกˆๅŽŸๆ–‡ + ่ฏ„ๅฎก่ฎฐๅฝ•
โ”œโ”€โ”€ tools/                     ๆž„ๅปบไธŽๅ‘ๅธƒๅทฅๅ…ท๏ผˆ่งไธ‹๏ผ‰
โ”‚   โ”œโ”€โ”€ build_release.py       ๅ‘ๅธƒๆตๆฐด็บฟ๏ผˆ็‰ˆๆœฌๆ ก้ชŒ / ๅฎ‰่ฃ…ๅ™จ / MSIX / .sha256๏ผ‰
โ”‚   โ”œโ”€โ”€ set_version.py         ็‰ˆๆœฌๅท 10 ๅค„็ปŸไธ€่ฎพ็ฝฎไธŽ --check ๅฎˆ้—จ
โ”‚   โ”œโ”€โ”€ generate-logos.mjs     ๅ“็‰Œ PNG ็”Ÿๆˆ๏ผˆbrand/ SVG โ†’ src/assets + public/๏ผ‰
โ”‚   โ”œโ”€โ”€ generate-icons.mjs     OS ๅ›พๆ ‡็”Ÿๆˆ๏ผˆICO / MSIX / ๅฎ‰่ฃ…ๅ™จๅ›พๆ ‡๏ผ‰
โ”‚   โ”œโ”€โ”€ gen-mc-reference.py    ๅฎ˜ๆ–นๅฎขๆˆท็ซฏ jar โ†’ ๆ—งๅŽŸ็‰ˆๆจกๅž‹ๆŒ‡็บน / ็›ฎๆ ‡่ทฏๅพ„ๅ‚่€ƒๆ•ฐๆฎ
โ”‚   โ”œโ”€โ”€ convert-report.bat/.ps1 ๆ‹–ๆ”พๅณ่ฝฌๆข็š„ๅฏๅŠจๅ™จไธŽ้€ป่พ‘
โ”‚   โ”œโ”€โ”€ benchmark/             ๆ€ง่ƒฝๅŸบๅ‡†้กต๏ผˆๅ•ๆ–‡ไปถ HTML๏ผŒ้›ถไพ่ต–๏ผ‰
โ”‚   โ”œโ”€โ”€ release/  store/       ๅ‘ๅธƒๆธ…ๅ• / ๅ•†ๅบ—ๆไบคๆ–‡ๆกˆ
โ”‚   โ”œโ”€โ”€ msi/  msix/            MSI ไธŽ MSIX ๆ‰“ๅŒ…่ต„ๆบไธŽๅŒ…่บซไปฝ
โ”‚   โ”œโ”€โ”€ gen-task-registry.ps1  ๆ—งๆ ก้ชŒ่„šๆœฌ๏ผˆREGISTRY ็Žฐไธบ 94 ้กน๏ผŒๆ”น็”ฑ `registry_shape_is_pinned` ็”จไพ‹้’‰ไฝ๏ผ‰
โ”‚   โ””โ”€โ”€ arom-baseline.txt      2.201.0 ๆ—ถๆœŸ็š„ๅ†…ๅฎนๅŸบ็บฟๅฟซ็…ง๏ผˆ4018 ่กŒ๏ผŒไป…ไฝœๅ‚่€ƒ๏ผŒไธๅ†ๆ–ญ่จ€๏ผ‰
โ”œโ”€โ”€ BUILD                      ๆž„ๅปบๅท๏ผˆๆไบค้‡Œ็š„ๅ›บๅฎšๅ€ผ๏ผŒๆž„ๅปบๅช่ฏป๏ผ‰
โ”œโ”€โ”€ CHANGELOG.md               ๆ›ดๆ–ฐๆ—ฅๅฟ—
โ”œโ”€โ”€ legal/                     EULA / ้š็ง / ๅ…่ดฃ / ็ฌฌไธ‰ๆ–นๅฃฐๆ˜Ž / ๅฎ‰ๅ…จ / ่ดก็Œฎ๏ผˆไธญ่‹ฑๅŒ่ฏญ๏ผ‰
โ””โ”€โ”€ release/                   ๆž„ๅปบไบง็‰ฉ๏ผˆๅทฒ gitignore๏ผ‰

๐Ÿค ่ดก็Œฎ

ๆฌข่ฟŽ PR โ€”โ€” ่ง legal/CONTRIBUTING.mdใ€‚ๆŽจ้€ๅ‰่ฏทๅ…ˆ่ท‘๏ผš

npm test                                                    # Rust ๅ•ๆต‹
npm run build                                               # ๅ‰็ซฏๆž„ๅปบ

โš–๏ธ ๆณ•ๅพ‹

ๆ–‡ไปถ ็”จ้€”
LICENSE MIT โ€”โ€” ๆบไปฃ็ 
legal/EULA.md ๆœ€็ปˆ็”จๆˆท้กป็Ÿฅ๏ผ›ไธ้™ๅˆถ MIT ๆƒๅˆฉ
legal/DISCLAIMER.md ๅ…่ดฃๅฃฐๆ˜Ž๏ผ›้ž Mojang / Microsoft ๅฎ˜ๆ–นๅทฅๅ…ท
legal/PRIVACY.md ๆœฌๅœฐไผ˜ๅ…ˆ้š็ง๏ผ›ๆ— ้ฅๆต‹
legal/THIRD-PARTY-NOTICES.md ๅผ€ๆบไพ่ต–ๅฃฐๆ˜Ž
legal/SECURITY.md ๆผๆดžๆŠฅๅ‘Š
legal/CONTRIBUTING.md ่ดก็ŒฎๆŒ‡ๅ—

่‡ด่ฐข๏ผš 2-Pyramid ๆ˜ฏ็‹ฌ็ซ‹้กน็›ฎใ€‚Minecraft ่ต„ๆบๅŒ…่ฝฌๆข้ข†ๅŸŸ็š„ๆ—ฉๆœŸๅŽŸๅž‹ไธŽ็คพๅŒบๅทฅๅ…ทไธบ้ƒจๅˆ†่ฎพ่ฎกๆไพ›ไบ†ๅ‚่€ƒ๏ผŒๆˆ‘ไปฌๆ„Ÿ่ฐข้‚ฃไบ›ไฝœ่€…็š„ๅทฅไฝœใ€‚ๆญค็ฑปๅผ•็”จไธไปฃ่กจๅ…ฑๅŒ่‘—ไฝœๆƒใ€้›‡ไฝฃๅ…ณ็ณปๆˆ–่ƒŒไนฆใ€‚ๅบ”็”จๅ†…่‡ด่ฐข่ง ่ฎพ็ฝฎ โ†’ ็‰ˆๆœฌไฟกๆฏใ€‚ๆณ•ๅพ‹ๆ–‡ๆœฌ้šๅŒ…ๅ†…็ฝฎไบŽ legal/๏ผŒๅฏๅœจ ่ฎพ็ฝฎ โ†’ ๆณ•ๅพ‹ๅฃฐๆ˜Ž ไธญ้˜…่ฏป๏ผˆ็•Œ้ข่ฏญ่จ€ไธบ่‹ฑๆ–‡ๆ—ถไผ˜ๅ…ˆ่ฏปๅ– legal/en/๏ผŒ็ผบๅคฑ่‡ชๅŠจๅ›ž่ฝไธญๆ–‡๏ผ‰ใ€‚


English

2-Pyramid is a Windows desktop Minecraft resource-pack version converter. It covers 26 Java target version ranges from 1.6 to the latest 26.3, with conversion between any two versions, plus experimental Java โ†” Bedrock structural conversion.

What "between any two versions" excludes: almost everything converts in both directions, but four operations run forward only and are not restored when downgrading โ€” GUI atlas cutting (cut_gui), the horse UI (fix_horse_ui), overlay icons (overlay_icons) and the off-hand slot (fix_ui_sub_hand). Their reverse tasks are explicit no-ops (noop_pilot! in natives/reverse/reverse_trivial.rs) because the original state cannot be reconstructed from the output. A pack downgraded across the 1.20.2 boundary keeps the newer layout in those four places.

Separately, 1.21.4+ item-definition generation and OptiFine CIT migration have no reverse task: downgrading neither deletes the generated assets/<ns>/items/*.json, models/cit/ and textures/cit/ (older clients ignore those directories) nor generates reverse overrides under models/item.

โœจ Features

  • Wide coverage โ€” 26 Java target ranges across six eras
  • Java โ†” Bedrock (experimental)
    • j2b: any Java pack โ†’ latest Java 26.3 (pack_format 97) โ†’ restructure โ†’ .mcpack
    • b2j: detects .mcpack / Bedrock zip โ†’ Java 26.3 tree โ†’ chosen Java target โ†’ .zip
    • Vanilla-aligned texture aliases (potions, beds, buckets, planks/logs, armor layers)
    • Builds gui/icons.png HUD atlas, textures_list.json; flattens container UI and pads to power-of-two
    • Platform-exclusive assets are dropped per direction (no Java model โ†” Bedrock geometry conversion)
  • Shaders adapted to the target version โ€” natives/surgeon/shader_adapt.rs rewrites GLSL and JSON rather than only switching or disabling them:
    • Core shaders renamed as a group (.json/.vsh/.fsh), pruned against the modern or legacy allowlist for the target format, with removed stems cleaned up; a minimal .json is synthesized when one is missing
    • Import directives migrated: #moj_import namespaced, switched to #include at format โ‰ฅ 97 (26.3+), and the globals.glsl reference injected where needed
    • JSON side: matrix types upgraded, uniforms stripped where UBO requires it, post paths migrated
    • The walk skips include/ โ€” breaking it makes the whole pack fail to reload
    • The target format is read from pack.mcmeta by the task itself rather than passed in
  • Fully local โ€” No cloud, no account, no telemetry; conversion never touches the network (update checks and the optional Foray AI analysis do โ€” see Known Limitations)
  • Batch processing โ€” Multiple packs at once, with a performance tier (choose one in Settings): Balanced uses half the cores (min 2, max 8) and converts 2 packs at a time so the machine stays usable; Performance uses all cores (cap 32) and up to 6 packs at once (auto-reduced to 1 when available memory drops below 1500 MB). Settings show the resolved numbers for your machine (cores ยท thread budget ยท concurrent packs) below the option
  • Directory normalization โ€” Nested pack.mcmeta is promoted to the zip root; pack.mcmeta.txt-style files are renamed to pack.mcmeta when they contain a valid format value
  • Animated texture conversion โ€” Legacy {"animation": {}} mcmeta files are upgraded to explicit frametime + interpolate (frame count derived from texture dimensions)
  • Texture self-healing โ€” Two common kinds of broken textures are fixed during conversion: a file whose content is JPEG but whose name is .png is decoded and re-encoded as a real PNG (genuine PNGs stay byte-identical); legacy 1.6โ€“1.8 packs converted to 1.9+ get large border-touching alpha 1โ€“2 fake-transparency backgrounds cleared so item sides are no longer generated along a fake rectangle. The conversion page's "Layer fix" switch also got its real implementation back (the historical 9 pixel rules; off by default, pixels only change when enabled).
  • Legacy vanilla models step aside โ€” when a 1.9-1.12 pack (pack_format 2/3) is upgraded to 1.13+, unmodified legacy vanilla models/** / blockstates/** files are recognised and disabled so the target version loads its own models and block states. This removes the root cause of "purple/black blocks, broken geometry and wrong held-item scale" after upgrading old packs. Files edited by the author, and paths the target version has no native replacement for, are kept and reported. Fingerprints are generated by tools/gen-mc-reference.py from official client jars; the repository only commits paths and SHA-256 digests of canonical JSON, never official assets.
  • Selectable output format โ€” Converted output can be saved as a ZIP archive or an extracted folder (Settings โ†’ Output Format; CLI --folder). The folder name follows the output naming template (= the zip name without .zip) and keeps pack.mcmeta plus 2pyr-gen.json; an existing same-name directory is rejected, never overwritten; Bedrock targets do not support folder output. ZIP output uses the highest DEFLATE level (smaller text-heavy artifacts).
  • 1.21.4+ item definitions and OptiFine CIT โ€” old overrides + CustomModelData in models/item/*.json become native item definitions under assets/<ns>/items/<name>.json; OptiFine CIT (optifine/cit/**, mcpatcher/cit/**) migrates too, covering CMD, enchantment names + levels (target โ‰ฅ 1.21.5), hand= display contexts and bow state textures; conditions that cannot be expressed exactly are skipped and reported. CIT conversion is off by default: a user measured purple-black bow / diamond-sword models; offline codec review shows the fixed enchantment-condition shape parses once the enchantment registry is supplied, but in-game rendering is unverified and that report is not reproduced yet, so the path is not generated by default. Enable it in the conversion page only after verifying in-game.
  • Traceable output (2pyr-gen) โ€” Java Edition conversion output gets a 2pyr-gen.json at the pack root (not written for Bedrock targets): source / target pack_format, app version and BUILD, the conversion switches, and a UTC timestamp. It contains no paths, user names or other personal data, and Minecraft clients do not read it. On by default; it can be turned off in the conversion page (the setting is persisted with the config), and the EULA and privacy notice disclose it.
  • Output naming template โ€” [Ver] / [Name] / [Time] / [Date] placeholders; old version prefixes are replaced on re-conversion
  • Overlay parent packs โ€” Layer custom content on top of any base pack without modifying it
  • Interface motion โ€” Crossfade page swaps with soft blur; settings for on / follow system / off; speed tiers scale the full page transition
  • Deep UI customization โ€” Custom background with auto theme color, glass / frosted control skins, light / dark / follow-system themes, zh / en
  • Self-owned installer โ€” No-admin HKCU install, OOBE wizard, optional desktop / start-menu shortcuts; in-app updates enter an overwrite-update flow (locks the original dir, keeps user data); install dir auto-aligns to the existing location on reinstall
  • Smart updates โ€” A dedicated update page (download speed / ETA, one-click retry on failure); compared by major.minor.patch: major and Safe-* force the update; minor / patch are optional
  • Redacted log export โ€” exporting logs (session or on-disk) hides the Windows user name, machine name, IPs, e-mails and API keys/tokens, and collapses pack paths to <path>\file.ext; only the exported file is redacted, and it can be turned off in developer options
  • Beta channel โ€” Stable and Beta installs coexist (separate registry, directory and badges); built with betabuild

โš ๏ธ Known Limitations (read first)

2-Pyramid is a structure converter, not a vanilla asset library. The following are design trade-offs, not bugs to be fixed:

  • New content in newer target versions is approximated: when upgrading, blocks/items introduced by the target version but absent from your pack (e.g. netherite, copper, breeze, pale / poplar planks, some leaves) are derived from the closest existing texture using hand-calibrated hue/saturation/value parameters (some leaves additionally pin hue to avoid drifting). These are not vanilla assets and will differ visually โ€” replace them manually if you need a 1:1 vanilla look.
  • Structure first, no pixel repainting: item/block resolutions, GUI layout, models and animations are rewritten per version rules (nine-slice equalization, sprite slicing, atlas generation, โ€ฆ), but art is never redrawn.
  • Bedrock conversion is experimental: j2b / b2j are incomplete and known to be broken โ€” testing only; selecting that target shows a warning (.mcpack is accepted directly as b2j input).
  • OptiFine CIT conversion is off by default (pending in-game verification): a user measured purple-black bow / diamond-sword models after a 1.20.1 โ†’ 1.21.9โ€“1.21.10 conversion; offline codec review shows the fixed enchantment-condition shape parses once the enchantment registry is supplied, but this tool has no in-game rendering verification and the cause of that report is not reproduced yet, so the path is not generated by default. Verify in-game before enabling; when off, the CIT source files stay as they are and OptiFine clients still read them.
  • Java-target output pack roots gain a 2pyr-gen.json: a conversion-parameter record for traceability / support, not original pack content; Minecraft clients do not read it, and writing it can be turned off in the conversion page (Bedrock targets do not get the file).
  • Texture self-healing runs automatically: fake-background clearing only triggers when the source pack claims pack_format 1 (1.6โ€“1.8) and the target is โ‰ฅ2, with conservative thresholds (touches the border + area โ‰ฅmax(64px, 5%) + contains alpha 1/2). If your pack only has a wrong pack_format (its content is actually modern), fix the version number before converting โ€” otherwise a few alpha 1โ€“2 edges may be cleared.
  • Legacy vanilla model disabling only covers 1.9โ€“1.12 โ†’ 1.13+: format-1 (1.6โ€“1.8) sources keep their existing handling; the fingerprint data covers the current 23 Java target formats, so a newly added target format needs tools/gen-mc-reference.py to be re-run. Disabled files still exist in your source pack (the source is never modified), so they can be copied back if needed.
  • Folder output never overwrites an existing directory: a same-name directory is rejected instead of deleted; rename it or pick another output directory before re-converting. Bedrock targets (.mcpack) do not support folder output.
  • ZIP bytes are not a stable fingerprint: with the highest DEFLATE level the compressed bytes may differ between versions even though every entry's content is identical; --pack-diff --strict will report this as a byte-level difference โ€” expected behaviour.
  • Release builds log Warn / Error only: Info-level logs (conversion progress and OKAY details) are not written in release builds; enable Settings โ†’ Developer Mode first if you need full logs for a bug report.
  • Update checks reach the network: official GitHub only (the former third-party mirror is retired and has been removed). Conversion itself is fully offline.
  • Editor Mode / Foray AI sends content to a third party: it uses the OpenAI-compatible endpoint and key you provide, and the textures/text you choose to analyze are sent there. Off by default.

๐Ÿš€ Quick Start

Users

  1. Download 2-Pyramid-Installer-{version}.exe (or ...-beta.{BUILD}.exe for Beta) from Releases
  2. Or install from the Microsoft Store (2-Pyramid-{version}.msix; independent of in-app updates)
  3. Install, launch, and follow the OOBE setup on first run

Developers

git clone [email protected]:2-Pyramid-Studio/2-Pyramid.git
cd 2-Pyramid

npm install        # frontend deps
npm run 2pyr       # Tauri dev mode (Rust backend + Vite frontend)

Common scripts:

Script Purpose
npm run dev Vite-only (no Rust backend)
npm run 2pyr Tauri dev mode
npm run build Build frontend only
npm run buildrelease Full stable release build (frontend + app + self-owned installer โ†’ release/)
npm run betabuild Beta channel build (-beta.{BUILD}.exe, coexists with stable)
npm run buildrelease:nobump / npm run betabuild:nobump Historical aliases; identical to the commands without :nobump (builds no longer bump BUILD)
npm run test / npm run test:offline Run the Rust unit tests (test:offline forces offline)
npm run buildrelease:noinstaller Skips the self-owned installer EXE, but still compiles a second time for MSIX (--features store) and packs it. To build only the app, skip both: python tools/build_release.py --skip-installer --skip-msix
python tools/build_release.py --skip-msix / --sign-msix Skip MSIX / sign MSIX (sideload testing)
npm run bump:build:show / bump:build:set Show / manually set the BUILD number

BUILD is a committed value that builds read but never write, so the CI-built EXE and the locally-built MSIX carry the same number -- they are two halves of one release. Advance it with tools/bump_build.py, as an explicit act.

๐Ÿ”„ Updates

In-app update checks read this repository's Releases (official GitHub API only). Tag conventions:

Tag prefix Meaning Visible to
Safe-{version} Important security update All channels
Stable-{version} Stable Stable / Both
v{version} Stable (no prefix) Stable / Both
UnStable-{version} / Beta-{version} Test / Beta update Test / Both

The update channel has three states: Stable (stable releases only) / Pre-Release (test releases only) / Both (accepts updates from both channels at once, highest version wins). Update source: official GitHub only โ€” the third-party mirror cdn.5eggpack.top was fully removed in 2026-10 (its maintainer stopped maintaining it); Settings no longer offers an update-source option, speed test or switch.

The release workflow is triggered only by the Safe- / Stable- / Beta- / UnStable- prefixes; an unprefixed v{version} is not in the trigger list (the updater can still parse such tags, but no build is started).

Release requirements:

  1. Attach the .exe installer plus a matching .sha256 file (build_release.py writes it). A hash mismatch is always refused; a missing or unfetchable checksum is refused by default, but the user may explicitly opt to skip verification for that one download (not remembered, logged, and not permitted when the installer filename does not match the release version);
  2. For in-app updates the updater launches the installer with --from-app, which opens the overwrite-update wizard (keeps user data, locks the existing install dir) instead of the fresh-install flow;
  3. For Microsoft Store, attach release/2-Pyramid-{version}.msix as well (produced by default; skip with --skip-msix).

๐Ÿ—๏ธ Architecture

The core is a hand-rolled DTD Pipeline driven by a BFS Scheduler, built on the in-house A-ROM object model (Pack / Tx / Layer / PackView):

        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚          Resource Pack (zip / folder)                โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ  directory normalization (runs first, highest priority)
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚     locate / promote pack.mcmeta to the zip root      โ”‚
        โ”‚     (multi-extension foolproofing)                    โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚              DTD Pipeline (Scheduler)                โ”‚
        โ”‚      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”‚
        โ”‚      โ”‚  Eraser  โ”‚ โ†’ โ”‚ Architectโ”‚ โ†’ โ”‚ Surgeon  โ”‚      โ”‚
        โ”‚      โ”‚ tear the โ”‚   โ”‚ BFS the  โ”‚   โ”‚ run the  โ”‚      โ”‚
        โ”‚      โ”‚ pack downโ”‚   โ”‚ path     โ”‚   โ”‚ rewrites โ”‚      โ”‚
        โ”‚      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚            Target Version (1.6 โ†’ 26.3)                โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  • Directory normalization โ€” runs first: locate the real pack.mcmeta (multi-extension foolproofing) and promote it to the root
  • Eraser โ€” tear down the source pack into one intermediate representation
  • Architect โ€” BFS the shortest conversion path over the target-version graph
  • Surgeon โ€” run each converter in order (each with its reverse pair) and emit the target pack

Bedrock path (experimental) mounts on the same scheduler as version edges:

  • Module: src-tauri/src/bedrock_convert/ (mapping / textures / ui / potions / metadata / shaders / skybox / j2b / b2j)
  • Tasks bedrock_java_to_bedrock / bedrock_bedrock_to_java (Exclusive + Surgeon)
  • Edges: j2b (84|88|97 โ†’ 1000), b2j (1000 โ†’ 97|88|84), both declared in arom/engine/conversion_maps.rs; the Java intermediate is always format 97 (26.3)

๐Ÿงช Command-line tools (diagnostics / benchmarking / quality gate)

The binary has four headless modes; all are read-only or self-contained and never start the GUI:

Command Purpose
2-pyramid.exe --convert <pack|dir> [--to 26.3] [--out <dir>] [--report <report.json>] [--folder] [--fast] [--cit] [--no-gen-metadata] Runs the full conversion pipeline and writes a structured report: structure analysis + pure/total timings (with the IO split) + per-task profile + size delta. A directory is walked recursively for every .zip / .mcpack. --fast turns off the GUI sprite surgery (run_gui_surgeon) to isolate its cost. --folder writes an extracted directory (Java targets only; an existing same-name directory is an error). CIT conversion is off by default (--cit enables it); the 2pyr-gen.json output metadata is written by default (--no-gen-metadata disables it).
2-pyramid.exe --versions Lists every target version label with its pack_format (tab-separated: spec<TAB>format<TAB>label; the first 2 lines are # comment headers; spec is accepted directly by --to, so scripts can enumerate targets).
2-pyramid.exe --analyze <pack|dir> Read-only structure analysis: official overlays, supported_formats range, non-standard version-folded directories, multi-root packs, with per-layer file counts and override counts.
2-pyramid.exe --pack-diff <A> <B> [--strict] [--json <report>] Quality gate: PNG compared per pixel, JSON semantically, everything else byte-wise; by default "same pixels, different encoding" is allowed, --strict demands identical bytes. Exit code 0/1, usable as a regression check for speed work.

Drag-and-drop conversion: drop a pack (or a folder of packs) onto tools/convert-report.bat โ€” the script finds a binary that supports --convert (repo build first, then an installed release), asks for the target version, converts, prints both timing figures and the slowest tasks, and saves the JSON report next to the pack while opening its folder.

It can also be scripted (the .bat is a pure-ASCII launcher; the logic lives in convert-report.ps1):

.\tools\convert-report.bat "D:\packs\my.zip" -Target 1.21.4      # explicit version
.\tools\convert-report.bat "D:\packs"        -MenuChoice 7 -Yes  # menu 7 = 1.21.4, skip confirmation

Arguments: -Target (version or pack_format), -MenuChoice (menu 1โ€“16), -Yes (skip confirmation and the final pause), -NoOpen (do not open the folder).

Performance baseline page: tools/benchmark/index.html (single file, zero dependencies) compares the timing breakdown across optimisation steps, with a switch between the two timing methods and the quality-check verdict; how to update the data is in tools/benchmark/README.md.

Maintainer docs: release checklist tools/release/README.md; Store listing copy tools/store/.

๐Ÿงฐ Tech Stack

Layer Tech
Shell Tauri 2 (Windows-only, custom frameless window)
Frontend Vue 3.5 + TypeScript 5 + Vite + vue-i18n 10
Backend Rust + image + zip + winreg + reqwest (update checks)
Installer installer-app/ (Tauri 2 + Vue 3, embeds payload.zip, no-admin HKCU)
Release pipeline tools/build_release.py (no third-party packagers)
Resources src-tauri/UImage/ + src-tauri/overlay/

๐Ÿ“ Project Layout

2-Pyramid/
โ”œโ”€โ”€ src/                       Vue 3 frontend
โ”‚   โ”œโ”€โ”€ components/            Pages & dialogs
โ”‚   โ”œโ”€โ”€ composables/           useAppInfo / useUpdater / useI18n โ€ฆ
โ”‚   โ””โ”€โ”€ locales/               zh-CN.json / en-US.json
โ”œโ”€โ”€ src-tauri/                 Rust backend (main app)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ arom/              A-ROM object model plus the execution engine (engine/: version maps and tier bucketing)
โ”‚   โ”‚   โ”œโ”€โ”€ natives/           Native task implementations (eraser / architect / surgeon / reverse)
โ”‚   โ”‚   โ”œโ”€โ”€ pack/              Pack I/O and analysis tools (io / diff / analysis / version_converter)
โ”‚   โ”‚   โ”œโ”€โ”€ bedrock_convert/   Bedrock <-> Java structure conversion (j2b / b2j)
โ”‚   โ”‚   โ”œโ”€โ”€ commands/          Tauri commands
โ”‚   โ”‚   โ”œโ”€โ”€ foray/             Pack structure analysis and light editing (in-place writes are backed up first)
โ”‚   โ”‚   โ”œโ”€โ”€ overlay/           Overlay template generation
โ”‚   โ”‚   โ””โ”€โ”€ lib.rs             Entry: window / single-instance / exit policy
โ”‚   โ”œโ”€โ”€ UImage/                Built-in texture templates
โ”‚   โ”œโ”€โ”€ overlay/               Overlay templates
โ”‚   โ””โ”€โ”€ tauri.conf.json
โ”œโ”€โ”€ installer-app/             Self-owned installer (embeds payload.zip)
โ”œโ”€โ”€ brand/                     Brand source SVGs (Precision Geometry), proposal PDF, review notes
โ”œโ”€โ”€ tools/                     Build & release tooling (see below)
โ”‚   โ”œโ”€โ”€ build_release.py       Release pipeline (version check / installer / MSIX / .sha256)
โ”‚   โ”œโ”€โ”€ set_version.py         Sets all 10 version sites; `--check` gate
โ”‚   โ”œโ”€โ”€ generate-logos.mjs     Brand PNG generation (brand/ SVG โ†’ src/assets + public/)
โ”‚   โ”œโ”€โ”€ generate-icons.mjs     OS icon generation (ICO / MSIX / installer icons)
โ”‚   โ”œโ”€โ”€ gen-mc-reference.py    Official client jars -> legacy model fingerprints / target path data
โ”‚   โ”œโ”€โ”€ convert-report.bat/.ps1 Drag-and-drop convert launcher and its logic
โ”‚   โ”œโ”€โ”€ benchmark/             Perf baseline page (single-file HTML, zero deps)
โ”‚   โ”œโ”€โ”€ release/  store/       Release checklist / Store listing copy
โ”‚   โ”œโ”€โ”€ msi/  msix/            MSI & MSIX packaging resources and package identity
โ”‚   โ”œโ”€โ”€ gen-task-registry.ps1  Legacy checker (REGISTRY is now 94 entries; `registry_shape_is_pinned` pins it)
โ”‚   โ””โ”€โ”€ arom-baseline.txt      2.201.0-era content-baseline snapshot (4018 lines; reference only, no longer asserted)
โ”œโ”€โ”€ BUILD                      Build number (committed; builds only read it)
โ”œโ”€โ”€ CHANGELOG.md               Changelog
โ”œโ”€โ”€ legal/                     EULA / Privacy / Disclaimer / Notices / Security / Contributing
โ””โ”€โ”€ release/                   Build artifacts (gitignored)

๐Ÿค Contributing

PRs welcome โ€” see legal/CONTRIBUTING.md. Before pushing, please run:

npm test                                                    # Rust unit tests
npm run build                                               # frontend build

โš–๏ธ Legal

File Purpose
LICENSE MIT โ€” source code
legal/EULA.md End-user notice; does not restrict MIT rights
legal/DISCLAIMER.md Warranty disclaimer; unofficial Mojang/Microsoft tool
legal/PRIVACY.md Local-first privacy; no telemetry
legal/THIRD-PARTY-NOTICES.md Open-source dependency notices
legal/SECURITY.md Vulnerability reporting
legal/CONTRIBUTING.md Contribution guide

Credits: 2-Pyramid is an independent project. Early prototypes and community tools in the Minecraft pack-conversion space informed parts of the design; we thank those authors for their work. Such references do not imply joint copyright, employment, or endorsement. In-app credits live in Settings โ†’ Version Info. Legal texts are bundled under legal/ and readable in Settings โ†’ Legal Notices (when the UI language is English the legal/en/ copy is preferred, falling back to the Chinese original).


License / ่ฎธๅฏ

MIT ยฉ 2025โ€“2026 2-Pyramid Studio

ไฝฟ็”จๅฏๆ‰ง่กŒ็จ‹ๅบๆ—ถๅฆ่ง EULA ไธŽ DISCLAIMERใ€‚่ฏทๅŒๆ—ถ้ตๅฎˆ Minecraft EULA ไธŽ่ต„ๆบๅŒ…ๅŽŸไฝœ่€…ๆŽˆๆƒใ€‚

ๅ…ถๅฎƒ / Misc

  • Foray๏ผˆEditor Mode๏ผ‰๏ผšๅœจ ่ฎพ็ฝฎ โ†’ ๅผ€ๅ‘่€…้€‰้กน ๅผ€ๅฏ Editor Mode ๅŽ๏ผŒไธป้กตๆ‹–ๅ…ฅ zip ่ฟ›ๅ…ฅ่ต„ๆบๅŒ…ๅˆ†ๆžๅทฅไฝœๅฐ๏ผˆ็ป“ๆž„ๆŽข้’ˆ / ่ฝป้‡ๅƒ็ด ็ผ–่พ‘ / ๅฏ้€‰ AI ๅˆ†ๆž๏ผ‰ใ€‚้ป˜่ฎคๅ…ณ้—ญ๏ผŒ่ฏดๆ˜Ž่ง docs/compose/spec/foray.mdใ€‚
  • ้™้ป˜ๅฎ‰่ฃ…๏ผš2-Pyramid-Installer.exe --silent [--dir <่ทฏๅพ„>] [--relaunch] [--shortcuts]ใ€‚
  • ๅ‘่กŒๅฝขๅผ๏ผš็‰ˆๆœฌๅŒ– EXE โ†’ GitHub Releases๏ผ›MSIX โ†’ Microsoft Storeใ€‚ไธๅ†ไบงๅ‡บ MSIใ€‚
  • ๅฏๅค็Žฐๆ€ง่ƒฝ้ชŒ่ฏ๏ผšๆต‹้‡ๆ–นๆณ•ไธŽๅทฒ่ฏไผช็š„ๆ–นๅ‘่ง docs/compose/spec/perf-verification.mdใ€‚

Misc โ€” the same points in English:

  • Foray (Editor Mode): enable Editor Mode in Settings โ†’ Developer options, then drop a zip on the home page to open the pack-analysis workbench (structure probes / light pixel editing / optional AI). Off by default; see docs/compose/spec/foray.md.
  • Silent install: 2-Pyramid-Installer.exe --silent [--dir <path>] [--relaunch] [--shortcuts].
  • Distribution: versioned EXE โ†’ GitHub Releases; MSIX โ†’ Microsoft Store. No MSI is produced any more.
  • Reproducible performance verification: the measurement method and the directions already disproved are in docs/compose/spec/perf-verification.md.