Download Vending Machine — Minecraft Mods — MetaMods
Vending Machine

Vending Machine

Active

Downloads

0

Last update

1 year ago
Client
Adventure
Control
Structures

Vending Machine

Adds functional vending machines to Minecraft that allow players to purchase sets of 7 random or preset items.

Main Features

The modification operates in two modes:

  • Random Vending Machines - automatically spawn in villages and refresh their inventory daily with random items from Minecraft and other mods
  • Fixed Vending Machines - created by map developers with predetermined item sets, perfect for scenario maps

Ready to Use

The mod is fully functional immediately after installation. Default settings allow regular players to use vending machines without additional configuration. The balance is configured to exclude game-breaking items.

Random vending machines in villages restock every morning with 7 different random items. The pricing system:

  • Common items: 1 emerald each, up to 8 of each
  • Uncommon items: 16 emeralds each, up to 4 of each
  • Rare items: 32 emeralds each, up to 2 of each
  • Epic items: 64 emeralds each, only 1 of each

Flexible Configuration

Numerous configuration parameters are available for modpack and map creators. The settings file is located in the config folder under the name vm-common.toml. You can also use the /config showfile vm COMMON command in-game for quick access to configuration editing.

Fixed Vending Machines

Map developers can create vending machines with preset sets of up to 7 items. This allows creating specialized machines: with food, potions, and other item categories. After placing the machine on the map, you need to open it once to load the items.

Currency and Cost

Emeralds are used by default, but you can configure any currency: diamonds, eggs, shulker boxes, silver coins, and other items.

Item rarity system:

  • Value 0 - Common
  • Value 1 - Uncommon
  • Value 2 - Rare
  • Value 3 - Epic

You can also set rarity for all items of a specific mod or use tags for group configuration.

Include and Exclude Lists

The item filtering system works in two stages: the include list is processed first, then the exclude list.

Include Lists:

  • Can include all mods using "*" (default)
  • Can include only Minecraft
  • Can specify specific mods

Exclude Lists:

  • Can exclude all items from a specific mod
  • Can exclude individual items

Group Lists

These settings control the inclusion or exclusion of items by creative mode groups.

Include Groups: all tabs included by default

Exclude Groups: items without tabs ("!") and operator items ("op") excluded by default

Available group names for different versions:

  • 1.19.4+: buildingBlocks, coloredBlocks, combat, foodAndDrink, functional, ingredients, natural, op, redstone, spawnEggs, tools
  • Up to 1.19.2: brewing, building_blocks, combat, decorations, food, misc, redstone, tools, transportation

Item Lists

Item Include Lists: allow limiting random selection to a smaller item set

Item Exclude Lists: allow excluding specific items

Operator-only items (command blocks, structure blocks, etc.) are not sold in random machines but can be set in fixed machines by map developers.

Fixed Machine List

You can define a set of up to 7 items for fixed vending machines. Extended format is supported for complex deals, for example, selling 4 honey bottles for 8 coal with a limit of 10 purchases.

Configuration example:

# Use fixed items
UseFixedItems = true

# Fixed items
FixedItems = "minecraft:iron_chest;minecraft:iron_leggings;minecraft:iron_sword;minecraft:bow;minecraft:air;minecraft:air;minecraft:air"

Additional Features

Minable: if enabled, requires a diamond pickaxe with silk touch to mine the vending machine, otherwise you get iron ingots or nothing.

Villages: option to add vending machine structures to villages (enabled by default).

Vending machines can become a source of items otherwise unavailable in superflat worlds, allowing you to "complete" Minecraft under such conditions.

Project members
MacTso

MacTso

lupicus

lupicus

_ForgeUser10164036

_ForgeUser10164036

Created: 29 Jun 2024

ID: 37937