Commit Graph

14 Commits

Author SHA1 Message Date
Misode
88b7b74ca0 Fix #599 catch invalid lore lines 2024-09-18 17:38:31 +02:00
Misode
fd6de2ac85 Update loot table preview, item display and tooltips to 1.21 2024-09-11 02:31:17 +02:00
efekos
231ecfe9c2 Language Support in Tooltips (#468)
* Add lang parameter to TextCompoennt

* Add 'mclang' key

* Add clearing old language cache when changed language

* Fetch language in background

* Remove auto-fetching mc language

* wrap mclang with a state

* update contributos

* Move 'mclang' to config.json

* Cleanup code to get mclang key and fix caching

---------

Co-authored-by: Misode <misoloo64@gmail.com>
2024-02-24 21:55:41 +01:00
Misode
1e06e03324 Fix #372 Catch JSON errors in lore when rendering tooltip 2023-05-12 00:50:09 +02:00
Misode
9cfbf17320 Fix #359 handle incorrect display names in tooltips 2023-04-05 23:16:45 +02:00
Misode
b7d9b83491 Fix #327 Implement HideFlags 2023-02-14 19:02:30 +01:00
Misode
60950c4e9a Update vite to v3 2022-11-29 01:06:32 +01:00
Misode
98a4afa18c Move enchantments logic to deepslate 2022-11-28 23:24:14 +01:00
Misode
9eb01cc1f1 Add tooltips for potion effects 2022-11-25 14:16:35 +01:00
Misode
0b6bdb1d7a Fix #307 Don't use deepClone for ItemStacks 2022-11-24 06:04:07 +01:00
Misode
b165d551e4 Render items with custom colors + update deepslate 2022-11-23 05:26:08 +01:00
Misode
5fe7121ea9 Fix #297 improve fake name translation and fix crash 2022-10-20 05:03:03 +02:00
Misode
f309eef176 Fix not correctly enchanting books 2022-10-13 02:31:44 +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