Pls answer I need it

How to make a vending machine that requires 2 items?

2 Likes

sorry, I think that’s impossible

1 Like

I have done it before, hold on

1 Like

So, I did this in another map. I will send a video to show you

1 Like

You can use a vending machine to unlock a second, with the item you want.

1 Like

make it so there are two vending machines and one unlocks after the other

1 Like

Get two vending machines, a checker, and an item granted
to make it so that when the item is bought in a vending machine a property changes.
make it so that the checker is on a loop and checks for the two properties; if they are both true, then it grants your desired item.

1 Like

Creating a vending machine that requires two items involves a combination of using the ITEM SPAWNER, ITEM GRANTER, CHECKER, and COUNTER devices. Here is a basic setup for that:

  1. ITEM SPAWNER: This will spawn the items that players need to collect for the vending machine. You will need two of these, each spawning a different item.

  2. CHECKER: This device checks if a player has enough of both items to use the vending machine. Change the settings to run 2 checks (or whatever amount you want the vending machine to require) to see if the player has more than a specific amount of those items.

  3. ITEM GRANTER: Wire 2 ITEM GRANTERS to the CHECKER. If the check passes, take away a specific amount of the item.

  4. BUTTON: This is what players will interact with to use the vending machine. Wire this to the CHECKER. When a player interacts with the button, the CHECKER will check the COUNTERS.

  5. ITEM GRANTER: Wire the ITEM GRANTER to the CHECKER. If the CHECKER finds that the player has enough of both items, it will trigger the ITEM GRANTER, which gives the player the item from the vending machine.

  6. NOTIFICATION: In case a player tries to use the vending machine without having enough of both items, you might want to wire the CHECKER to a NOTIFICATION device that will alert the player they need more items.

So the basic flow is: Players collect items → Player interacts with button → Checker checks if player has items → Item Granter takes away items if there are enough items → The Item Granter grants the item. If there aren’t enough items, the player gets a notification.

1 Like

do 2 vending machines that both give the same thing, but each one needs a different thing, but connect them with a wire

1 Like

I don’t think that’s possible, sorry! :bowing_man:

1 Like