Random Items From Vending Machine

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

Sorry… I don’t think you can…
If you want, you can suggest it on feedback.gimkit.com!

2 Likes

You can use blocks, and instead of a vending machine, use a button and item granters instead here are a few steps:

  1. 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.
  2. Go to blocks on ur main granter and select when received wire pulse,
  3. 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
  4. Then do an “if” sth “then” sth ( you can edit this so that it randomises more items)
  5. 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. :sunglasses:

2 Likes

oh that may work… great job

2 Likes

Credit to @Cryptoraider_Gemkit

1 Like

Cool, thanks. I’ll have to try that when I have time. :grinning:

Very delayed response.

1 Like

linking:

1 Like