Better Weaponry: weapon settings
================================

This folder changes the stats of the Better Weaponry weapons for all your worlds. Your files only contain what you change: everything else keeps the mod's default values, even after an update.

What is in this folder:
  weapons/          one file per weapon type: add the fields you want to change.
  rules.json        global rules (dual wielding...).
  defaults/         the mod's default values, rewritten at every launch. Read them and copy fields from them, but do not edit them.
  *.schema.json     used by code editors such as VS Code: autocompletion, help when hovering a field, errors underlined.
  README.txt        this file, rewritten at every launch in the game's language.

Example: to make the katana faster, open weapons/katana.json and write:
  {
    "$schema": "../weapon.schema.json",
    "attack_speed": 1.8
  }
Then type /reload in game, or reopen the world. Only the fields you write change.

Order of priority, the last one wins:
  1. the mod's default values;
  2. this folder (all worlds);
  3. the data packs of a world (<world>/datapacks), for settings specific to that world.
     Path inside a data pack: data/better_weaponry/better_weaponry/weapons/<weapon>.json (and .../rules.json).
  4. the data pack written by the in-game editor (/betterweaponry) for "this world": <world>/datapacks/better_weaponry_editor.

If a value is invalid (wrong type, out of range), it is ignored and the previous value is kept. Errors are shown in the chat to operators and to the host of a single-player game, and written to logs/latest.log. Comments starting with // are allowed, and so are keys starting with _ (for example "_note").

Weapon files:
  broadsword.json   Broadswords
  spear.json        Spears
  dagger.json       Daggers
  scythe.json       Scythes
  rapier.json       Rapiers
  sickle.json       Sickles
  katana.json       Katanas
  battleaxe.json    Battleaxes
  glaive.json       Glaives
  hammer.json       Hammers
  claymore.json     Claymores
  chakram.json      Chakrams
  sai.json          Sais

Fields of a weapon file (all optional):
  format_version — Format version
      Version of the file format. Leave it at 1.
      Range: 1 to 1 · Default: 1

  attack_speed — Attack speed
      Attacks per second at full strength (vanilla sword: 1.6). Above 2, part of the hits on a single target are lost to its invulnerability time.
      Range: 0.1 to 20 · Default: 1.6

  attack_reach — Attack reach
      How far away you can hit entities, in blocks (vanilla: 3).
      Range: 0.5 to 64 · Default: 3

  base_damage — Base damage
      Damage of the wooden version, as shown on the tooltip. Each material multiplies it by its own factor (stone ×1.25, iron ×1.5, diamond ×1.75, netherite ×2, gold ×1) and rounds it to the nearest half point.
      Range: 0 to 1024 · Default: 4

  material_damage — Damage per material
      Forces the damage of some materials, for example { "golden": 6 }. Materials that are not listed use base_damage × their factor.
      Range: 0 to 1024

Fields of compat.json:
  format_version — File format version
      Do not change this value.
      Range: 1 to 1 · Default: 1

  reach_enabled — Weapon reach
      Each weapon uses its own attack reach. It also turns off when a mod of the list below is loaded.
      Default: true

  balance_abilities — Balance abilities
      With Combat Ascended, weapons with abilities deal slightly less damage.
      Default: false

  reach_disabled_by_mods — Mods with their own reach
      If one of these mods is loaded, weapons no longer apply their own reach. With Combat Ascended, Better Combat or Epic Fight, the Attack Reach line in tooltips is left to them.
      Examples: bettercombat, combat_reforged, epicfight

Fields of gear.json (shields, loot):
  format_version — Format version
      Version of the file format. Leave it at 1.
      Range: 1 to 1 · Default: 1

  replace_vanilla_gear — Replace vanilla gear in loot and trades
      true: loot and villagers give the mod's versions instead of the vanilla item.
      Default: true

  loot_upgrade_chance — Loot material upgrade chance
      In loot, starting from wood, chance in % of moving up to the next material (gold, stone, iron, diamond, netherite). Rolled again at each step.
      Range: 0 to 100 · Default: 20

  enchanted_book_chance — Enchanted book chance in chests
      Chance in % for a chest of the Nether or the End to hold a book with one of the mod's enchantments.
      Range: 0 to 100 · Default: 20

  projectile_speed_multipliers — Projectile speed by material
      Multiplier of the projectile speed of bows and crossbows, by material id, e.g. {"iron": 1.2}. Arrow damage depends on this speed: 1 is the vanilla bow, the stone one. Materials not listed use their damage multiplier minus 0.34.
      Range: 0.1 to 5

  projectile_speed_cap — Maximum projectile speed
      Highest speed multiplier, whatever the material. Arrow damage depends on speed: this keeps very strong modded materials under control.
      Range: 0.1 to 5 · Default: 2

  golden_draw_time — Gold draw time
      Draw or load time of golden bows and crossbows compared to vanilla. 0.5: twice as fast.
      Range: 0.1 to 1 · Default: 0.5

  shurikens — Shurikens
      Settings of the shurikens. Each throw uses 1 durability, picking the shuriken up gives it back. The material changes the speed, like for bows.

  shurikens.throw_speed — Throw speed
      Speed of a stone shuriken. A fully drawn arrow flies at 3. Damage depends on speed.
      Range: 0.1 to 5 · Default: 2

  shurikens.base_damage — Base damage
      Multiplied by the speed on impact, then rounded up. An arrow has 2.
      Range: 0 to 20 · Default: 1.5

  shurikens.cooldown_seconds — Delay between throws
      Time before you can throw this shuriken again, in seconds.
      Range: 0 to 10 · Default: 0.6

  mobs — Mobs
      Weapons and behavior of mobs. No more mobs are armed than in vanilla: only a mob that would get a vanilla weapon or tool can get a weapon of the mod instead.

  mobs.upgrade_chance — Better material chance
      Chance in % of moving up to the next material, rolled again at each step and 1.5 times higher on Hard. Limited to iron in the Overworld, diamond in the Nether and the End, one step more on Hard (not in the End).
      Range: 0 to 100 · Default: 9.5

  mobs.modded_weapon_chance — Mod weapon chance
      Chance in % that a vanilla weapon or tool held by a hostile mob becomes a weapon of the mod. 0: mobs keep their vanilla weapons.
      Range: 0 to 100 · Default: 50

  mobs.dual_wield_chance — Dual wield chance
      Among mobs that get a weapon of the mod, chance in % of having one in each hand. The off-hand weapon is never dropped.
      Range: 0 to 100 · Default: 5

  mobs.ninja_skeleton_chance — Ninja skeleton chance
      Chance in % that a skeleton throws shurikens instead of shooting a bow.
      Range: 0 to 100 · Default: 5

  mobs.captain_shield — Shields on captains
      true: patrol and raid captains carry a shield of the mod in their off hand. It is never dropped.
      Default: true

