this code kinda works, i can add items with NBT tags normally, but i wanted to do it differently.
right now, the chance for choosing a weapon only rolls once every server reload, so it only has one weapon type being able to be found.
i wanted to make so that the loot table has: a chance to have a weapon and after that condition has been met, it chooses from the array of NBTs to choose the weapon it will generate on the chest.
i think i will probably need to make a custom lootTable and insert it into the loottable i want the gun in. but i dont know how to do that, and i read through all the documentation and found nothing
any help would be nice