When you pull back a bowstring, the Arrows & Slots mod swiftly retrieves the arrow located in the hotbar slot right above the equipped bow. This innovation was developed for DashPum4.
Arrows & Slots
An efficient Minecraft archery aid designed to let players concentrate on targeting rather than managing their inventory.
Overview
The Arrows & Slots mod seamlessly selects the arrow from the hotbar slot directly above your bow when you draw it. Say goodbye to the hassle of switching items during combat—your arrow supply will always synchronize with your active weapon.
- Compatible with dedicated servers, utilizing server-side logic.
- Functions in single-player mode since the built-in server manages it.
- Also available as a Paper plugin for Bukkit-based servers.
Compatible Platforms
| Platform | Type | Status |
|---|---|---|
| Fabric | Mod | Implemented |
| NeoForge | Mod | Implemented |
| Paper | Plugin | Implemented |
Project Structure
The file layout for the Arrows & Slots mod is as follows:
ArrowMod/
├── common/ Shared code utilized by Fabric and NeoForge
├── fabric/ Entry point for Fabric loader
├── neoforge/ Entry point for NeoForge loader
├── paper/ Entry point for Paper plugin
├── build.gradle Main build configuration file
└── settings.gradle
Supported Minecraft Versions
| Platform | Supported MC versions | Notes |
|---|---|---|
| Fabric | 1.21.1 – 26.1.2 | Developed with 1.21.1; metadata indicates >=1.21.1 |
| NeoForge | 1.21.1 – 26.1.2 | Compatible with NeoForge 21.1+ to 26.1+ |
| Paper | 1.21.1 – 26.1.2 | api-version: '1.21' |
The JAR file has been compiled for MC 1.21.1, adhering to official Mojang mappings. All injected code is safeguarded with a try-catch mechanism, using require = 0 on Mixin targets, ensuring it degrades gracefully rather than crashing if an API changes across versions. If you encounter issues with a newer version, consider remaking the mod using that specific version’s toolchain, as the Mixin target (Player#getProjectile) and class names remain stable across all supported versions under the official mappings.
System Requirements
- Java 21 or a more recent version
- Gradle 8.11 or above (wrapper included)
Building the Mod
./gradlew build
The compiled files will be found within the build/libs/ directory of each subproject.
Development Run Configurations
To generate run configurations for your IDE, use:
./gradlew genIntelliJRuns
# or
./gradlew genEclipseRuns
Alternatively, you can initiate a client/server directly from the command line with the following commands:
./gradlew :fabric:runClient
./gradlew :fabric:runServer
./gradlew :neoforge:runClient
./gradlew :neoforge:runServer
License Information
Licensed under MIT.
