hey, I created a gambling machine today for my realms,and i was hoping everybody could look at it.
Its simple, I have some command blocks inside the dispensers that pop out to the space beside it and get powered by the button. Then, two ticks later, the command block gets replaced by air.
You need to put a picture of it working otherwise it's just a bunch of blocks including one that holds a negative amounts of command blocks
I recently did something like this and it was a slot machine that put a random block out of gold, emerald, or diamond on each of the thee spaces and then it has more command blocks testing for a certain block type going though an AND gate that clones a dispenser that immediately gets powered giving you 1x of the block you matched. Oh, and it also clears one gold ingot from your inventory before it chooses it's blocks.
Its simple, I have some command blocks inside the dispensers that pop out to the space beside it and get powered by the button. Then, two ticks later, the command block gets replaced by air.
I recently did something like this and it was a slot machine that put a random block out of gold, emerald, or diamond on each of the thee spaces and then it has more command blocks testing for a certain block type going though an AND gate that clones a dispenser that immediately gets powered giving you 1x of the block you matched. Oh, and it also clears one gold ingot from your inventory before it chooses it's blocks.
So basically, I'm stupid.