Commit graph

24 commits

Author SHA1 Message Date
Vitaly
9b72cdb8f0
feat: migrate to mc-assets & Rsbuild better resource pack support (#164)
The complete migration from `minecraft-assets` to [`mc-assets`](https://npmjs.com/mc-assets).

Now all block states & block models are processed dynamically! So it is now easily possible to implement custom models

- no post-install work anymore: the building is now 3x faster and 4x faster in docker
- drop 10x total deploy size
- display world ~1.5x faster
- fix snow & repeater state parser (they didn't render correctly)

rsbuild pipeline!

- the initial app load is faster ~1.2
- much fewer requests are made & cached
- dev reloads are fast now

Resource pack changes:

- now textures are reloaded much more quickly on the fly
- add hotkey to quickly reload textures (for debugging) assigned to F3+T (open dev widget is now assigned to F3+Y)
- add a way to disable resource pack instead of uninstalling it
- items render from resource pack are now support
- resource pack widgets & icons are now supported
2024-07-26 13:12:28 +03:00
Vitaly Turovsky
2c3a38a678 add gzip size logging which is actually more important than regular size for prod build 2024-07-19 06:08:37 +03:00
Vitaly Turovsky
c7a8c34d89 improve fps in some scenarios by not spamming with setTimeout calls 2024-06-24 06:31:04 +03:00
Vitaly Turovsky
0d8beef65c feat: add gamemode selector in create world screen. always use creative with ?singleplayer=1 2024-05-26 18:58:46 +03:00
Vitaly
93e9cf877b fix project build on windows 2024-05-20 06:01:14 +03:00
Vitaly
5e94239091
feat: big fix: rendering blocks for preflat versions (<1.13)! (#125) 2024-05-20 05:47:53 +03:00
Vitaly
26dacc9c47 restore full source map uploading to prod for better error stacks 2024-05-10 05:06:05 +03:00
Vitaly
976f6cab2b add mesher HMR!
fix: fix all colored glass rendering!
2024-04-20 15:28:31 +03:00
Vitaly
d17e1b2acb make bundle smaller and debugger run faster 2024-04-20 13:22:26 +03:00
Vitaly
2cc524a4ab
rewrite renderers to allow custom ones! worker -> mesher (#102) 2024-04-16 09:12:16 +03:00
Vitaly
7884b5cffc
three shake three.js (#94) 2024-03-25 13:47:01 +03:00
Vitaly
a95f257e65 feat: basic support for 1.20.2 2024-01-22 02:07:52 +05:30
Vitaly Turovsky
b20d99261f allow to use linked deps such as flying-squid 2023-11-04 06:40:33 +03:00
Vitaly
41cea43846 esbuild: don't reload when JS output file is not changed
todo restore for css
2023-10-26 01:16:36 +03:00
Vitaly Turovsky
9351732d09 feat: new scalable options GUI. Refactored options & main menu to React
chore: added storybook!
fixed too big ts language service memory consumption (json mc-data)
2023-10-11 19:38:16 +03:00
Vitaly
2455c63925 refactor plugins: better mc-data support 2023-09-30 11:23:35 +03:00
Vitaly Turovsky
92d66e4a19 fix build 2023-09-09 23:59:15 +03:00
Vitaly
bbb3c13a27 fix autoversion (download data on demand) 2023-09-04 11:24:34 +03:00
Vitaly
d6824aad2e do not bundle large assets package, cleanup esbuildPlugins 2023-09-03 17:27:20 +03:00
Vitaly
ac0170b146 download minecraft-data on demand 2023-09-03 09:21:34 +03:00
Vitaly
ad0b545301 copy only entity textures, inline others! it reduces copy time and deploy size 2023-08-30 10:53:58 +03:00
Vitaly
9c403f9a12 use custom mc loader to drop a few mb of bundle & allow to specify allowlist for faster dev builds (will be cached in future) 2023-08-30 10:43:21 +03:00
Vitaly Turovsky
e4c2e2ce28 small logging of bundled json size :/ 2023-08-29 07:48:39 +03:00
Vitaly
fc7869000e move building to esbuild
change public to dist
2023-08-28 06:37:57 +03:00