Is there a way to make a vending machine drop a random item from a list? (Such as a random fish for fishing?)
2 Likes
I dont think so, perhaps you could make it a certain fish?
2 Likes
That’s what I’ve been doing, thanks.
3 Likes
ok, well i will try to find out how
2 Likes
You can use blocks, and instead of a vending machine, use a button and item granters instead here are a few steps:
- Connect the button to the “main” item granter(This uses blocks to send signals to each channel linked with their “granter”. for the wire input, choose when button pressed—>run wire pulse block.
- Go to blocks on ur main granter and select when received wire pulse,
- on the block screen put a number randomiser so that it chooses a number between 1- 100 or 1-1000 or 1- 10000 etc. and set that number to a variable called num
- Then do an “if” sth “then” sth ( you can edit this so that it randomises more items)
- After you do that, put in the if block “IF NUM <650” (etc) “THEN SEND MESSAGE ON CHANNEL …” you can make different percentages of chance with different numbers
3 Likes
2 Likes
This is the block code for fishing and the steps.
2 Likes
oh that may work… great job
2 Likes
Cool, thanks. I’ll have to try that when I have time.
Very delayed response.
1 Like
linking:
1 Like