How To Make A Vending Machine Grant A Random Amount Of An Item (Difficulty:🟨)

(Note: This Guide Uses Blocks, Which Means It’s Probably For More Experienced Gims.)

In This Guide, I Will Show You How To Make A Vending Machine That Grants A Random Amount Of A Item!

Step 1: Placing And Wiring :electric_plug:
Grab A Vending Machine And A Item Granter.

Screenshot 2023-12-18 181553

Then, Wire The Vending Machine TO The Item Granter.
Item purchased —> Run wire pulse block

Step 2: Items. :eyeglasses:
Click The Vending Machine And Add The Item You Need, Remember To Make The Purchase Action Say, Transmit On Channel

Ex:
Item Needed: Lottery Ticket (1)

Then, Exit The Vending Machine Modification Screen And Click The Item Granter. Then, Select The Item You Want To Get When You Purchase From The Vending Machine. After That, Click Blocks And Then Click, On wire pulse…

Step 3: Blocks :one::two::three:
Click The For This Device And Drag The Grant Player Selected Item (Custom Amount)
Amount
Block.

Then, Drag The random integer from ___ to ___ Block And Connect It To The Grant Player Selected Item (Custom Amount)
Amount

Then, Drag 2 Screenshot 2023-12-18 171646 And Drag 1 In Both Blanks In The random integer from ___ to ___ Block, Like In The Picture Below:

The Screenshot 2023-12-18 171646 Block On The Left Is The Minimum Amount Of Your Selected Item And The Screenshot 2023-12-18 171646 Block On The Right Is The Maximum Amount Of Your Selected Item.

Ex:
Screenshot 2023-12-18 191413

Your Screen Should Look Something Like This:

Now You’ve Finished This Guide! Hope It Helps!

2 Likes

Why is there not anything.

He added the wip tag, which means it’s incomplete.

1 Like

Okay I did not know that.

this will be good when complete…

1 Like

Remember you only have 30 days to finish your wip!

1 Like

This could be used as a lottery ticket, you will get a random amount of cash every time.

1 Like

Why is this marked unresolved?

1 Like

Idk, remove the tag, since its a guide…

3 Likes