Weapons

2files
2figures
4min read
Sheet 8 of 31 · Playing

Filesweapons.yml · economy.yml

A wall buy: the hologram names the gun and its price, the weapon floats under it.
A wall-buy weapon hologram for the SVT-40 at $500 with the gun floating under it

Fileweapons.ymlFileeconomy.ymlWeapons are hoe items with a custom model, driven by weapons.yml. Every copy a player holds tracks its own magazine, reserve, aiming state and Pack-a-Punch state.

Controls

ActionInput
FireRight-click
Aim down sightsLeft-click, toggles on and off
ReloadSneak + right-click
Auto reloadFiring with an empty magazine starts a reload if there is reserve ammo

Each shot needs its own click. fire-mode is a label for the lore, so a "Full Auto" weapon is fast because of its low shoot-delay, not because the button can be held.

A reload shows a progress bar at the top of the screen. Switching hotbar slots or starting a reload drops you out of ADS. The action bar shows the ammo of the weapon in hand, coloured by state: normal, reloading, just fired, or empty.

The ten weapons

IdModeMagReserveDamagePriceSpecial
M1911Semi Auto8infinite4$0Starting pistol
PYTHONSemi Auto63616$1,500
SVT40Semi Auto8804$500
FG42Full Auto322568$1,200
MOSINBolt Action53010$500
PTRS41Semi Auto42420$3,000Pierces 4 targets
REMINGTON870Pump Action6425$5008 pellets
DOUBLEBARRELSemi Auto2309$1,50010 pellets
PPSH41Full Auto713553$2,000
BAZOOKASingle Shot1545$2,500Explodes, radius 4

Fileeconomy.ymlDamage is per bullet or pellet. Prices live in economy.yml under weapon-prices. The set of weapons is fixed: you can retune, rename and reskin these ten, but not add an eleventh id.

Ballistics

Bullets are real projectiles: arrows with no gravity, no sound and no vanilla damage, moving at bullet-speed blocks per tick. They vanish after three seconds or on impact.

KeyWhat it does
powerDamage per bullet.
shoot-delaySeconds between shots. Fast Fingers halves it.
reload-timeSeconds to reload. Fast Fingers halves it.
magazineRounds per magazine.
reserveSpare rounds. Any negative number means infinite, shown as ∞.
bullet-speedProjectile speed.
accuracy0 to 1. Spread is 1 - accuracy, so 0.94 is tight and 0.6 is wild.
bullets-per-shotPellets per shot, each with its own spread.
recoilHow hard the shot pushes the shooter backward and slightly up.
pierce-targetsHow many enemies one bullet passes through.
explosion-radiusAbove 0, the bullet explodes where it lands. No blocks break.
soundThe shot sound, a Minecraft sound name.

Bullets only hurt enemies that belong to the arena. Explosions use vanilla explosion damage, so keep the Bazooka away from your own feet.

Headshots

A hit at or above the target's eye line, minus a quarter block, counts as a headshot and does 1.5 times the damage. The multiplier is fixed. During Insta-Kill every hit kills anyway.

Config keyrewards.crit-killFileeconomy.ymlConfig keyrewards.killA kill landed with a headshot pays rewards.crit-kill ($20) in economy.yml instead of the normal rewards.kill ($10). On enemies with their own kill-reward, the difference is added on top.

Perks on hit

Incendiary Bullets and Freezing Bullets apply on every enemy a bullet hits. See Perks.

Aiming down sights

ADS trades movement for precision. While aiming:

KeyEffect
ads-zoom-amplifierSlowness level applied to the player. Higher zooms the view in more. 0 is the lightest zoom.
ads-spread-multiplierMultiplies spread. 0.45 means less than half the spread.
ads-recoil-multiplierMultiplies recoil.
ads-custom-model-dataModel shown while aiming, for a raised-sights model in your pack. 0 keeps the normal one.

Look and lore

KeyMeaning
materialThe item. The defaults use WOODEN_HOE.
display-nameItem name, MiniMessage.
custom-model-dataModel id from your resource pack.
enchanted-custom-model-dataModel after Pack-a-Punch. 0 keeps the normal model.
fire-modeLabel for the lore only.
shop-loreLines shown in the Weapon Shop.
held-loreLines on the item in hand.

Both lore lists take {name}, {type}, {fire-mode}, {damage}, {magazine}, {reserve}, {shoot-delay}, {reload}, {bullet-speed}, {accuracy}, {recoil}, {pellets}, {pierce-targets}, {pierce} and {explosion}. shop-lore also gets {cost}, {base-cost} and {discounted}. held-lore also gets {mag}, {current-reserve}, {ammo} and {enchanted}.

The {flame-range}, {flame-angle} and {fire-ticks} placeholders exist for the old flamethrower lore. They read flame-range, flame-angle and fire-duration-ticks but have no effect in play.

weapons:
  PTRS41:
    material: WOODEN_HOE
    sound: ENTITY_GENERIC_EXPLODE
    fire-mode: "Semi Auto"
    magazine: 4
    reserve: 24
    power: 20.0
    shoot-delay: 0.35
    reload-time: 3.6
    bullet-speed: 8.5
    accuracy: 0.96
    recoil: 0.24
    bullets-per-shot: 1
    pierce-targets: 4
    custom-model-data: 8
    enchanted-custom-model-data: 0
    ads-custom-model-data: 0
    ads-zoom-amplifier: 3
    ads-spread-multiplier: 0.12
    ads-recoil-multiplier: 0.40
The shop lore for the M1911, built from the placeholders above.
A weapon shop tooltip for the M1911 showing mode, damage, magazine, fire rate, reload, accuracy, recoil and price

Fileweapons.ymlWeapons you add to weapons.yml survive plugin updates. The config updater only adds missing keys and never removes your entries.

Carrying weapons

Players start with two weapon slots (hotbar 1 and 2) and the starting-weapon. The Bonus Weapon perk opens slot 3. How buying fills or replaces slots is covered under Machines.

Pack-a-Punch

Fileeconomy.ymlThe Pack-a-Punch machine doubles a weapon's damage (enchant-damage-multiplier in economy.yml), marks its name and swaps to the enchanted model. Reload time is divided by enchant-speed-multiplier (1.5). One upgrade per weapon. Buying the same weapon again replaces it with a plain copy. See Machines.

Loading the index

Enter openUp Down moveEsc close