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
This commit is contained in:
Misode
2022-10-13 02:05:33 +02:00
committed by GitHub
parent 86687ea6b9
commit ac259bb83e
24 changed files with 1630 additions and 56 deletions

View File

@@ -127,11 +127,17 @@
"preview": "Visualize",
"preview.auto_scroll": "Auto scroll",
"preview.biome": "Biome",
"preview.daytime": "Daytime",
"preview.luck": "Luck",
"preview.scale": "Scale",
"preview.depth": "Depth",
"preview.factor": "Factor",
"preview.offset": "Offset",
"preview.peaks": "Peaks",
"preview.weather": "Weather",
"preview.weather.clear": "Clear",
"preview.weather.rain": "Rain",
"preview.weather.thunder": "Thunder",
"preview.width": "Width",
"project.new": "New project",
"project.cancel": "Cancel",