Commit Graph

41 Commits

Author SHA1 Message Date
Misode
91f61b3c36 Fix #519 by manually creating the patch when github doesn't give it 2024-10-04 19:02:53 +02:00
Misode
fd6de2ac85 Update loot table preview, item display and tooltips to 1.21 2024-09-11 02:31:17 +02:00
Misode
d849fca07e Change lagacy folder names for 1.21 2024-05-28 23:40:39 +02:00
Misode
44b97e357f 24w19a 2024-05-10 23:15:41 +02:00
Misode
ddd00dd731 Add version mcmeta diff page (#428)
* Add version mcmeta diff page

* Add toggle for word wrapping

* Fix diff view on mobile

* Use full layout width on version details

* Show image and audio diffs

* Add word_wrap locale
2023-10-09 22:09:36 +02:00
YanisBft
a150d50775 Add button to generate random color (#403) 2023-07-13 21:54:10 +02:00
Misode
cdf369442e Add contributors list 2023-03-20 03:17:02 +01:00
Misode
e50a6a04be Apply svdDecompose fixes from 1.19.4-pre4 2023-03-08 22:09:14 +01:00
Misode
99b74961e9 Use deepslate matrix abstraction 2023-02-14 18:24:30 +01:00
Misode
8050e5cd74 Make matrix editable + add note about bugged behavior 2023-02-09 20:40:42 +01:00
Misode
03ddf6011b Initial working version of transformation preview
- missing ability to modify matrix
- sdvDecompose is still probably wrong
- missing ability to edit rotations using axis + angle
2023-02-09 18:03:15 +01:00
Misode
00029a2010 Voxel rendering + refactor interactive canvas (#322)
* Add voxel rendering to density function preview

* InteractiveCanvas component

* Use interactive canvas for noise preview

* Use interactive canvas for noise settings preview

* Extract common iterateWorld2D logic

* Use InteractiveCanvas2D for biome source preview

* Display final density in noise settings preview hover

* Move remaining preview code

* Hide noise router info for checkerboard and fixed

* Add higher resolution biome map

* User interactive canvas for decorator preview
2023-01-26 01:21:02 +01:00
Misode
f6b6a6bf7d Fix #295 handle invalid values in set_count 2022-10-20 05:22:38 +02:00
Misode
ac259bb83e Add loot table preview (#293)
* Initial loot table preview + item display counts

* Add loot functions without NBT

* Add loot conditions

* Render item tooltips with name and lore components

* Remove debug text component

* Disable advanced tooltips in the tree

* Minor style fixes

* Add item slot overlay and tweak tooltip offset

* Fix some items not rendering

* Translate item names and text components

* Translate params + more functions and tooltips

* Add durability bar

* Configurable stack mixing

* Correct tooltip background and border

* Add enchanting

* Enchantment glint

* Configurable luck, daytime and weather

* Improve tooltip spacing

* More tooltip spacing improvements

* Remove debug logging
2022-10-13 02:05:33 +02:00
Misode
86687ea6b9 Improve item display (#283)
* Refactor item display to separate component

* Load assets and render item models

* Cache rendered items
2022-10-04 19:15:28 +02:00
Misode
f5ae1719e3 Improve biome map (#246)
* Start biome map rewrite

* Remove climate layers and add end biome source

* Update to use RandomState

* Make biome map work for past versions

* Remove old biome map code

* Implement multi noise presets and fix caching

* Update deepslate

* Fix biome hover

* Fix #190 biome map diagonal lines
Also increases performance by making better use of the biome cache

* Add proper zoom limit
2022-07-06 00:11:16 +02:00
Misode
561cd341a1 Update to esm, update deepslate (#244) 2022-06-16 00:58:14 +02:00
Misode
90eac0f9b8 Project tree view and creation (#203)
* Implement creating and importing new projects

* Add downloading a zip of a project

* Project validation (WIP)

* Add project side panel, remove project pages

* Project file saving

* Add file tree actions to rename and delete

* Fix file creation auto focus

* Add button to save file from menu

* Add project creation

* Fix specificity on version switcher button

* Update default version to 1.19

* List project files by type, remember project and delete project
2022-06-14 16:48:55 +02:00
Misode
2ebba08d4b Configurable biome colors in preview
- add Store context
- add useLocalStorage
- color utils
2022-05-14 19:39:48 +02:00
Misode
cd0c37c5dd Add button to generate new UUID 2022-05-12 18:34:55 +02:00
Misode
6f27465c78 Add guides (#224)
* Add guides

* Add versioning to guides

* Guides: special variables and nested expressions

* Add guides page to vite build

* Add search and hash hooks, guide tags and headings

* Improve guides list and filtering

* Add 1.19 download link
2022-05-06 06:37:27 +02:00
Misode
21c3fbae93 Add button to generate new structure salt 2022-04-08 20:33:04 +02:00
Misode
a5a08fc935 Implement link sharing (#213)
* Implement link sharing

* Share default

* Compress and base64 encode data

* Better error messages

* Fix build

* Only change version when it's different
2022-03-19 19:26:39 +01:00
Misode
43d1b7dbcc Add follow reference button for vanilla presets 2021-11-21 03:49:46 +01:00
Misode
08e5b36a62 Sync search parameters for presets 2021-11-21 03:19:11 +01:00
Misode
bb1223df60 Track generator ID in custom dimension
Preparing to add back search parameters to share links
2021-10-30 17:34:54 +02:00
Misode
c75c5b7d65 Use wasm to compute multi noise biome map (#181) 2021-10-28 18:47:19 +02:00
Misode
0ff7de3aea Fix #176 switching between choices 2021-10-06 00:02:06 +02:00
Misode
e5d2c02fb3 Show nested feature decorators in a list (#173)
* Show nested feature decorators in a list

* Fix swapping decorator indices

* Move wrapper model creation to separate function

* Add setting string node on enter
2021-09-28 23:46:21 +02:00
Misode
e7e9b02ea7 Correctly update number nodes when model changes 2021-09-25 17:41:49 +02:00
Misode
7db47938b8 Make list and map entries collapsible (#169)
* Make list entries collapsible

* Show errors in collapsed nodes and keep context of loot type

* Make map entries collapsible

* Add collapse-all functionality
2021-09-24 22:12:33 +02:00
Misode
55f6ca58c0 Fix previews after wrapping lists 2021-09-24 06:00:27 +02:00
Misode
3b80334e2e Support 1.18 (experimental) snapshots (#158)
* Half support 1.18-experimental-snapshot-1

* Fetch 1.18 presets and improve rendering of lists

* Noise preview with deepslate

* Biome preview with deepslate

* Generalize canvas logic in one hook

* Simplify useCanvas

* Use mcschema for 1.18

* Improve noise settings preview controls

* Fix build

* Update deepslate and improve preview caching

* Cleanup, remove old preview code

* Couple seed between model and preview

* Limit output to improve performance + copy feedback
For the vanilla overworld dimension (200K lines),
it took 2+ seconds to write the output to the textarea

Now capped at 10K chars

* Add surface_relative_threshold to decorator preview

* Improve fixed list errors
2021-09-23 03:04:52 +02:00
Misode
e3fb5923c0 Handle catching unknowns 2021-09-09 22:34:22 +02:00
Misode
f43cb03cc3 Make generator config more robust 2021-07-02 02:36:01 +02:00
Misode
f2df089150 Only start getting schemas once on page load 2021-06-26 17:18:02 +02:00
Misode
09c851914f Switch to vite and preact 2021-06-26 17:18:02 +02:00
Misode
3ea390e547 Refactor decorator preview and use better colors 2020-12-07 02:47:22 +01:00
Misode
a84822b1cc Rename noise folder 2020-12-06 00:55:39 +01:00
Misode
4c814f0ee3 Rewrite noise implementation to match Minecraft 2020-12-01 04:15:29 +01:00
Misode
35aefea261 Rename files part 2 2020-11-23 14:39:04 +01:00