shiroroku / LootBeams

A Minecraft mod that adds colorful and customizable loot beams to dropped items!
MIT License
17 stars 30 forks source link

Set Different Colors Using NBT #35

Open Darkosto opened 1 year ago

Darkosto commented 1 year ago

Hello!

Would it be possible to allow loot beam colors with items that have specific nbt data. Such as having the following IDs be 2 different colors:

obtrophies:trophy{BlockEntityTag:{VariantID:0,entity:"minecraft:creeper"}} obtrophies:trophy{BlockEntityTag:{VariantID:0,entity:"minecraft:zombified_piglin"}}

Thank you!

MC: 1.20.1 NeoForge: 47.1.76 LootBeams: lootbeams-1.20.1-1.2.2

amoooooo commented 1 year ago

you can already do that with tags, check the curseforge page for the example nbt tag

Darkosto commented 1 year ago

I assume the tag you're referencing is added to the item when it's spawned and not in the config under the color_overrides = [] section in the config. Is there a way to set the colors for items listed above without having to add a tag to the item itself?

amoooooo commented 1 year ago

No way to NBT filter no, only way is to apply the nbt tag yourself somehow. Before i resourcepack-ify lootbeams configs this is out of scope, it is planned though.