Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable Lootbag icons #10

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Customizable Lootbag icons #10

merged 3 commits into from
Dec 18, 2024

Conversation

YannickMG
Copy link
Contributor

It turns out this was a planned feature that never got finished. Replaced vestigial code with functioning feature to allow specifying custom item icons per lootbag.

More work required

This is all of the required code changes for this feature, but it won't change anything in the pack. New icons need to be added in https://github.com/GTNewHorizons/NewHorizonsCoreMod and those need to be referenced in https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/blob/master/config/EnhancedLootBags/LootBags.xml.

Sample usage

  1. Add the desired lootbag icon to some other mod (like the GTNH core mod) under %MODID%/textures/items/.

  2. Reference the icon by combined mod Id and item texture name using the LootbagIcon property of LootGroup tags in LootBags.xml.

<LootGroup GroupMetaID="11" GroupName="Magic Master" Rarity="2" MinItems="1" MaxItems="2" CombineTrashGroup="true" LootbagIcon="dreamcraft:itemLootbagRare">
    ...
</LootGroup>

Proof of concept test icons (Not included)




@Dream-Master Dream-Master requested a review from a team December 13, 2024 20:20
@Dream-Master
Copy link
Member

you can reload lists and change items and complete lists ingame

@Dream-Master Dream-Master requested a review from a team December 14, 2024 14:50
@Dream-Master
Copy link
Member

like /lbags reload

@YannickMG
Copy link
Contributor Author

like /lbags reload

Would you expect icon changes in the XML file to be reflected when that command runs? That could potentially be a bit trickier.

@Dream-Master
Copy link
Member

reload the list ingame is a handy feature but change the icon is not necessary i would say.

@Dream-Master Dream-Master requested a review from Glease December 14, 2024 19:14
@Glease
Copy link
Contributor

Glease commented Dec 14, 2024

dream can run a resource pack reload himself. f3+t or just go to the resource pack view both works. no need to get fully automatic since that'd be quite complicated

@Dream-Master Dream-Master merged commit 1cfaad2 into master Dec 18, 2024
1 check passed
@Dream-Master Dream-Master deleted the lootbag-icons branch December 18, 2024 18:01
Dream-Master pushed a commit that referenced this pull request Dec 18, 2024
(cherry picked from commit 1cfaad2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants