Machines

2commands
2files
5figures
5min read
Sheet 11 of 31 · Playing

Fileseconomy.yml · weapons.yml

Fileeconomy.ymlFileweapons.ymlCommand/zadmin region setCommand/zadmin shop weaponshop typeMachines are the things players spend money on: shops, the Mystery Box, Pack-a-Punch, the power switch and the rest. An arena only has the machines you place in it, and each one gets a hologram with its name and price while a match is running.

Placing a machine

Stand where it should go and run one of these, or use the matching list in the arena creator:

/zadmin shop add <arena> <type> <id>
/zadmin power add <arena> <id>
/zadmin team add <arena> <id>

Shop types are kit, perk, weapon, lottery, mysterybox, enchanter, armor and armorenchanter. Ids are lowercased and may contain letters, digits, _ and -.

Command/zadmin region setBy default a machine reacts to a right-click on its one block. For a multi-block machine (a counter, a wall-buy panel, a vending machine build) select the area with the Region Wand and run /zadmin region set <arena> <type> <id>. Right-clicking anywhere in that area then opens it.

A right-click with a weapon in hand fires it, except on a machine's own block or region: there it opens the machine. That is how a player upgrades or swaps the weapon they are holding. Gates and the power switch are bought with any other slot in hand, so nobody pays for one by shooting at it.

At a glance

MachineTypePrice key (default)What the player gets
Kit Shopkitkit-shop.replenish-ammo-cost ($500)Full ammo for every weapon they carry.
Perk Shopperkperk-prices ($1,000 - $2,500)One perk. See Perks.
Weapon Shopweaponweapon-prices ($0 - $3,000)A weapon, one fixed or picked from the list.
Lotterylotterylottery-cost ($500)A lottery-win-chance (50%) shot at a random weapon.
Mystery Boxmysteryboxmystery-box.cost ($950)A random weapon or armor set, or the teddy bear.
Pack-a-Punchenchanterenchant-cost ($2,500)Double damage on the held weapon.
Armor Shoparmorarmor-prices ($500 - $5,000)A full armor set. See Armor.
Armor Forgearmorenchanterarmor-enchant-cost ($2,000)A reinforced armor set.
Power Switchpowerpower-activation-cost ($3,000)Power for the whole arena.
Team Machineteamteam-machine-cost ($5,000)Every downed teammate back on their feet.

Fileeconomy.ymlAll prices are in economy.yml. A Discount event cuts every shop price above except the Power Switch and the Team Machine.

Kit Shop

Refills the magazine and reserve of every weapon the player carries. It does not give weapons.

The Kit Shop refills ammo for every weapon at once.
The Kit Shop menu with the ammo refill button hovered and its price

Weapon Shop

Fileweapons.ymlCommand/zadmin shop weaponshop typeA weapon shop is either locked to one weapon (a classic wall-buy) or open, listing every weapon in weapons.yml with its price and stats. Lock or unlock it with /zadmin shop weaponshop type <arena> <id> <weapon|any>, or right-click the shop in the creator's Weapon Shops list to pick from a menu.

The new weapon goes into the weapon slot the player is holding and replaces what is there. Holding something else, it goes into the first free weapon slot. With no room at all the purchase is refused and nothing is charged. Buying a weapon you already own gives a fresh copy, which works as an ammo refill at full weapon price and removes any Pack-a-Punch on it.

Lottery

Pay lottery-cost and roll against lottery-win-chance. A win gives a random weapon. The fee is taken win or lose, and also when the player has no free slot for the prize.

The Lottery menu. The fee is paid before the roll.
The Lottery menu with the play button hovered showing the price

Mystery Box

Config keymystery-box.costPay mystery-box.cost and watch the menu spin through items for a couple of seconds before it lands. Closing the menu mid-spin does not cancel the roll.

  • With armor-chance (20%) the prize is an armor set instead of a weapon, with the tier picked by armor-tier-weights. If that tier is no better than what the player wears and armor-upgrade-fallback is on, their current set goes up one tier instead.
  • With teddy-chance (8%) the teddy bear shows up: no prize, no refund, and the box is jammed for teddy-cooldown-seconds (45).
  • Fileweapons.ymlOtherwise it is a random weapon from weapons.yml. It replaces the weapon in the player's hand or goes into a free weapon slot. With neither, the box gives the money back.
# economy.yml
mystery-box:
  cost: 950
  teddy-chance: 8
  teddy-cooldown-seconds: 45
  armor-chance: 20
  armor-upgrade-fallback: true
  armor-tier-weights:
    LEATHER: 40
    CHAINMAIL: 30
    IRON: 15
    DIAMOND: 10
    NETHERITE: 5

Pack-a-Punch

Upgrades the weapon in the player's hand. The weapon deals enchant-damage-multiplier (2.0) times its damage, gets an enchanted name and switches to its enchanted-custom-model-data if one is set. Reload time is divided by enchant-speed-multiplier (1.5), so an upgraded weapon also reloads faster. Set it to 1 to keep reloads as they are. Each weapon can be upgraded once.

Pack-a-Punch works on the weapon in the player's hand.
The Pack-a-Punch menu with the upgrade button hovered, price $2500

Armor Shop and Armor Forge

Both are covered on the Armor page. An armor shop is locked to a tier from the creator's Armor Shops list (right-click the entry) or left open to sell every tier.

Power Switch

The power switch on Night of Undead.
The Power Switch hologram asking $3000 on a dark wall

Right-click to turn on the arena's power for everyone. It can only be bought once per match. Power opens gates and rooms marked as needing it (see Arenas) and plays a thunder sound for the whole arena. No machine needs power to work.

Team Machine

Opens a small menu with one button. It needs at least one downed player in the arena and revives all of them at once. The buyer does not get the revive reward, but each use counts as a revive in their stats.

The Team Machine menu.
The Team Machine menu with its revive button hovered

Machine prices set per arena

Fileeconomy.ymlThe Power Switch and Team Machine copy power-activation-cost and team-machine-cost when they are placed and keep that price in the arena file. Changing economy.yml later does not touch machines that already exist; edit cost under power-switches or team-machines in arenas/<arena>.yml, or remove and place the machine again.

Loading the index

Enter openUp Down moveEsc close