User:Blockofnetherite/Datapacks/Custom Bartering

I am making a custom bartering datapack for my server. I am currently working on it, but here is what I have so far: (Avg. expected gold ingots to roll can be thought of as a "price," where on average, it "costs" a certain amount of gold ingots, on average, to get a single item)