Back to mods
Dynamic Bows project artwork

Modrinth · Minecraft mod

Dynamic Bows

2 new bows, quick charge on bows, and a custom bow component for datapacks

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Dynamic Bows release should I use?

Updated yesterday
Latest stable file 1.0.0+mod
Game version 26.3, 26.4-pre-1
Loader Fabric, Forge, NeoForge

Dynamic Bows 1.0.0+mod targets 26.3, 26.4-pre-1 with Fabric, Forge, NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Dynamic Bows required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric, Forge, NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Dynamic Bows 1.0.0+mod need?

1.0.0+mod. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Dynamic Bows without breaking your instance.

Built for Dynamic Bows 1.0.0+mod. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0+mod. It targets 26.3, 26.4-pre-1 with Fabric, Forge, NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0+mod. It opens that exact file at the source.

About this project

What does Dynamic Bows add?

Dynamic Bows is a datapack aiming to enhance bows and make them more versatile. It adds 2 new bow types, tweaks some bow enchantments, and adds new sounds for bows. It also functions as a library which allows other datapacks to create new bow weapons with fully customizable stats.

Bows

Shortbow

The Shortbow is a fast charging but weaker and less accurate bow. While charging a Shortbow, players can still sprint but at a reduced speed. It is crafted with 3 sticks and 1 string.

Can be given with the command /loot give @s loot dynamicbows:bows/shortbow

The Shortbow's item texture.

Longbow

The Longbow is a powerful bow which deals high damage, shoots further, and is more accurate, but takes longer to charge. It is crafted with 3 sticks, 3 string, and 2 iron nuggets.

Can be given with the command /loot give @s loot dynamicbows:bows/longbow

The Longbow's item texture.

Enchantments

Quick Charge

Quick Charge now applies to bows! However, unlike normal Quick Charge, bows only gain an 11% charge time reduction per level instead of 25%.

Power

Power now increases ranged damage by 50% at level 1, and 25% for each level above 1 to ensure that both the Shortbow and Longbow stay within their intended damage ranges. This does not affect normal bow damage.

Other Features

Bow Sounds

Bows now have sounds when beginning to charge them and when fully charging them.

Modified Arrow Damage

Arrows bypass damage cooldown (immunity frames), allowing bows with very small charge times to still deal damage without needing to worry about damage cooldown.

Custom Bows

This datapack allows the creation of custom bows with custom stats by adding some data to the minecraft:custom_data component of any minecraft:bow item.

Example custom data component
{
  "minecraft:custom_data": {
    "ve": {
      "components": {
        "bow": {
          "damage": 2,
          "uncertainty": 1,
          "power": 3,
          "max_charge_time": 20,
          "dynamic_animation": true,
          "inherit_motion": true,
          "inherit_motion_scale": 1,
          "mob": {
            "power_scale": 0.75,
            "uncertainty_scale": 1,
            "crit": false
          },
          "commands": {
            "on_start_charging": "tellraw @a \"started charging!\"",
            "on_charging": "tellraw @a \"charging!\"",
            "on_fully_charged": "tellraw @a \"fully charged!\"",
            "on_fired": "tellraw @a \"I shot a shot bow!\"",
            "on_projectile_spawned": "tellraw @a \"arrow fired!\"",
            "on_hit_event": "tellraw @a \"hit event!\"",
            "on_hit_block": "tellraw @a \"hit a block!\""
          }
        }
      }
    }
  }
}
Configuration

Basic Config

Basic bow configuration options. Any value here can be omitted.

  • damage: The base damage of the arrows fired from this bow. Defaults to 2.0
  • uncertainty: The maximum inaccuracy of the bow, in degrees. Defaults to 1.0
  • power: The velocity of fully charged shots, in blocks per tick. Defaults to 3.0
  • max_charge_time: The amount of time it takes for the bow to fully charge, in ticks. Defaults to 20. This value will default to a minimum of 3 if maximum charge time is below this value.
  • dynamic_animation: If the bow should dynamically play its draw animation based on its charge time. Defaults to true. Requires a specific item model configuration to work correctly.
  • inherit_motion: If arrows shot by this bow should inherit the motion of the shooter. Defaults to true.
  • inherit_motion_scale: Scales the motion of the shooter before applying it to shot arrows, if inherit_motion is set to true. Defaults to true.

Mob-Specific Config

These options control how mobs shoot the bow. Note that mobs are unaffected by the bow's max charge time, they will always fire at their vanilla rates.

  • power_scale: Scales the power value of the bow when shot by a mob. Defaults to 0.55.
  • uncertainty_scale: Scales the uncertainty value of the bow when shot by a mob. Defaults to 2.0.
  • crit: Whether or not arrows shot by mobs wielding this bow should be critical arrows. Defaults to false.

Commands

All commands run through this custom component have access to the bow's data, stored in the storage dynamicbows:temp bow, with the exception of on_hit_event and on_hit_block in which case it is stored in the arrow entity data under data.ve.shot_data.

The predicate dynamicbows:fully_charged can be used on players and arrows to detect if their bow is fully charged.

  • on_start_charging: Command to run on the first tick this bow is charged by a player.
  • on_charging: Command to run each tick the bow is charged by a player.
  • on_fully_charged: Command to run when the bow has been charged to the time specified in the max_charge_time field by a player.
  • on_fired: Command to run on the entity that fired the bow.
  • on_projectile_spawned : Command to run on arrows shot by the bow when it is fired.
  • on_hit_event: Command to run when an arrow from the bow hits an entity. Executes as and at the victim entity.
  • on_hit_block: Command to run when an arrow from the bow hits a block. Executes at the arrow entity.

Hit Event-Specific Functionality

Commands run from on_hit_event have access to extra predicates which allow for selection of all involved entities.

  • dynamicbows:hit_event/is_arrow: Tests if an entity is the arrow that was used during a hit.
  • dynamicbows:hit_event/is_attacker: Tests if an entity is the entity that shot the bow during a hit.
  • dynamicbows:hit_event/is_victim: Tests if an entity is the victim of an attack from another entity using the bow. The victim cannot be selected by a target selector if it was killed in the attack, so any commands run on the victim must use the @s selector if they were killed.
  • dynamicbows:hit_event/victim_killed: Tests if the victim was killed during a hit.
Function Tags

Each command field in custom bow configuration also has respective function tag, which can be taken advantage of in datapacks. These function tags always runs after bow-specific commands, and run regardless of the bow being used. Some extra tags are also included which do not have bow-specific events. Bow data can be retrieved in any of these function tags by running the dynamicbows:bow/get_current_bow_data function, which outputs the currently charged bow's data to the dynamicbows:temp bow storage, with the exception of on_hit_event and on_hit_block in which case it is stored in the arrow entity data under data.ve.shot_data and weapon.

  • #dynamicbows:bow/on_start_charging: Functions to run on the first tick this bow is charged by a player.
  • #dynamicbows:bow/on_charging: Functions to run each tick the bow is charged by a player.
  • #dynamicbows:bow/on_fully_charged: Functions to run when the bow has been charged to the time specified in the max_charge_time field by a player.
  • #dynamicbows:bow/on_fired: Functions to run on the entity that fired the bow.
  • #dynamicbows:bow/on_projectile_spawned : Functions to run on arrows shot by the bow when it is fired.
  • #dynamicbows:bow/on_hit_event: Functions to run when an arrow from the bow hits an entity. Executes as and at the victim entity. All hit event specific functionality applies to this tag.
  • #dynamicbows:bow/on_hit_block: Functions to run when an arrow from the bow hits a block. Executes at the arrow entity.
  • #dynamicbows:bow/modifies_charge_time: Functions that modify maximum charge time. These functions should modify the dynamicbows.bow.charge_time.max score of the player charging the bow.
  • #dynamicbows:bow/on_reset: Functions to run when a bow has stopped charging or has been shot.

Using Dynamic Animations

Item models must be set up specifically to support dynamic animations if they are enabled on the bow, using custom_model_data. It is also suggested to set hand_animation_swap to false to prevent the item from bobbing when changing frames. Like the vanilla bow, 4 separate models are needed, 1 for each charging stage (3 total) and 1 for the base item.

Example Model
{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:custom_model_data",
    "index": 0,
    "cases": [
      {
        "when": "0",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/bow_pulling_0"
        }
      },
      {
        "when": "1",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/bow_pulling_1"
        }
      },
      {
        "when": "2",
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/bow_pulling_2"
        }
      }
    ],
    "fallback": {
      "type": "minecraft:condition",
      "on_false": {
        "type": "minecraft:model",
        "model": "minecraft:item/bow"
      },
      "on_true": {
        "type": "minecraft:range_dispatch",
        "entries": [
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/bow_pulling_0"
            },
            "threshold": 0.1
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/bow_pulling_1"
            },
            "threshold": 0.65
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/bow_pulling_2"
            },
            "threshold": 0.9
          }
        ],
        "fallback": {
          "type": "minecraft:model",
          "model": "minecraft:item/bow"
        },
        "property": "minecraft:use_duration",
        "scale": 0.05
      },
      "property": "minecraft:using_item"
    }
  },
  "hand_animation_on_swap": false
}

Project description from Modrinth.

Pick your setup

Dynamic Bows by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Dynamic Bows versions and loaders

2 of 2 releases match

Looking for an older file? The official Modrinth project page is in Resources.