Viv's Vending Machines

Ever wanted Vending Machines in your Minecraft world or SMP? Well, look no further!
This pack adds fully functional, dyeable, and secure Vending Machines to your world! Simply put the downloaded zip file in your datapack and resource pack folders, and you're good to go!
Machines are linked to the UUID of the player who places them and can only be configured and moved by that player, as well as any player with the "admin" tag.
Feel free to use this pack for your servers or for content creation. Just don't distribute it elsewhere or claim it as your own!
Recipe

Vending Machines are crafted with 5 iron blocks, 1 redstone, 2 glass pane, and 1 button. Simply use any dye on the placed machine to change its color, or use a water bucket to wash off the dye.
Using the machine
Simply right click the black slot next to the payment item display to insert payment into the machine. Right clicking again will return the payment to the player.
Once paid, right click any button to dispense the corresponding item!

Instructions
Configuring payment
Hold any number of any item in your main hand and right click on the item display below the buttons to set the payment item and amount. Payment is nothing by default and can be cleared again if right clicked with an empty hand.
Left clicking on the payment item display will give the owner back all the items playes have paid to the machine.
Stocking Items
Left clicking on the top left button will open the Vending Machine for stocking.
There are 6 slots in the Vending Machine, with 2 in each row.
Left clicking on a slot on a shelf will set the item being sold to the item and number that the player is holding. This will not stock the machine yet. You may also left click with an empty hand to clear the slot an recieve back any items in stock.
Right clicking on a slot after an item has been set (while holding the set item) will stock the slot.
Left clicking the top left button again will close the machine once stocking has been finished.
Other controls
Top right button (left click) - See machine stock (All players) Bottom left button (left click) - Toggle the machine in and out of service (Owner) Bottom right button (left click) - See payment balance (Owner)
Moving/Removing the machine
Simply whack the machine a few times with an Iron, Diamond, or Netherite pick to break it (Must be done by the owner of the machine).

