First, place a vending machine down and change it to “Transmit on channel”. You can change the icon to icons/Cash Stack. Make it require whatever you want, I did a lottery ticket.
Secondly, place a property, name it “Cash”, and set it as a number property. change the “scope” to player. It should look like this;
Thirdly, place an item granter set granted item to cash. Now, go into blocks and make this (make sure it is on “run wire pulse block”);
Next, wire the vending machine to the item granter (Item purchased → Run wire pulse block)
Lastly, set an inventory item manager down and set the “Item” to Cash. Go to “Properties” and change “Update Property” to yes. Set “Property To Update” to Cash. It should look like this;
Wait, just realized, this system wouldn’t work. If I am correct, since the variable is set after you set the property, nothing happens to the property. And variables reset every time the block begins, so how would this work?
you get out a device, use a trigger for exapmle, the you click on it, and on the top left side of the screen you will see two buttons, one says options, and the otehr says block, glick on blocks and you can now make and code with blocks.