Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How to add new vending machines!

A Tutorial for Baldi's Basics

No ads for members. Membership is 100% free. Sign up!

Vending Machines

Here's how to add new vending machines!

1. Duplicate one of the existing vending machines.

2. Drag the texture of your new vending machine into the Texture2D folder. If you haven't done that yet, well, make the vending machine texture! (For a mystman12 vending machine canvas, it'll be 128x224.)

3. Drag your new vending machine texture onto your new vending machine. This should create a Materials folder in the Texture2D folder.

4. Go to the Materials folder in the Texture2D folder, and select your new material.

5. Set the metallic to 0, and drag the material into the Material folder (not in the Texture2D folder). We can now delete this Materials folder inside the Texture2D folder.

6. Go to the Scripts folder, and in the Assembly-CSharp folder, find the GameControllerScript.

7. Open it in Microsoft Visual studio, and find the UseItem method.

8. Find line 436, and under that line, paste this code in:

else if (raycastHit3.collider.name == "Your Vending Machine Here Name" & Vector3.Distance(this.playerTransform.position, raycastHit3.transform.position) <= 10f)
                    {
                        this.ResetItem();
                        this.CollectItem(Insert Item ID Here);
                    }

9. Now save it all, and enjoy your new vending machine!
Sign up to access this!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Original Authors
Zerra1010Zarra avatar
Zerra1010Zarra username pic Joined 1y ago
Offline
676 points Ranked 43363rd
10 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 6 months a member Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • 1 year a member Medal icon
Made the Tutorial
mystman12
mystman12 Joined 2y ago
Offline
406 points Ranked 47698th
Made Baldi's Basics

Submitter

Zerra1010Zarra avatar
Zerra1010Zarra username pic Joined 1y ago
*silence*
676 points Ranked 43363rd
10 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 6 months a member Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • 1 year a member Medal icon
Zerra1010Zarra avatar
Zerra1010Zarra

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Beginner

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 2
  • 1.0k
  • 3
  • 1mo

More from Submitter

More Decompile Tutorials