Arrow & Slots
一个轻量级的 Minecraft 射箭辅助工具,让你专注于瞄准,而非物品栏管理。
描述
当你拉弓时,Arrow & Slots 会自动从弓箭正上方的快捷栏槽位中选取箭矢。不再需要在战斗中切换物品——你的弹药始终与你手持的武器匹配。
- 适用于专用服务器(逻辑在服务端运行)。
- 适用于单人游戏,因为集成服务器会处理相关逻辑。
- 也可作为 Paper 插件提供,用于基于 Bukkit 的服务器。
支持的平台
| 平台 |
类型 |
状态 |
| Fabric |
模组 |
已实现 |
| NeoForge |
模组 |
已实现 |
| Paper |
插件 |
已实现 |
项目结构
ArrowMod/
├── common/ Fabric 和 NeoForge 共享的代码
├── fabric/ Fabric 加载器入口点
├── neoforge/ NeoForge 加载器入口点
├── paper/ Paper 插件入口点
├── build.gradle 根构建配置
└── settings.gradle
支持的版本
| 平台 |
支持的 MC 版本 |
备注 |
| Fabric |
1.21.1 – 26.1.2 |
基于 1.21.1 构建;元数据声明 >=1.21.1 |
| NeoForge |
1.21.1 – 26.1.2 |
NeoForge 21.1+ 至 26.1+ |
| Paper |
1.21.1 – 26.1.2 |
api-version: '1.21' |
JAR 包使用官方 Mojang 映射表针对 MC 1.21.1 编译。
所有注入的代码都包裹在 try-catch 中,Mixin 目标的 require = 0,以便在 API 跨版本发生变化时优雅降级,而不是直接崩溃。
如果在较新的 MC 版本上遇到问题,请使用该版本的工具链重新构建模组——Mixin 目标(Player#getProjectile)和类名在所有受支持的官方映射版本下都是稳定的。
要求
- Java 21 或更高版本
- Gradle 8.11+(包含包装器)
构建
./gradlew build
构建产物将位于每个子项目的 build/libs/ 目录中。
开发运行配置
通过以下命令为你的 IDE 生成运行配置:
./gradlew genIntelliJRuns
# 或者
./gradlew genEclipseRuns
你也可以直接从命令行运行客户端/服务器:
./gradlew :fabric:runClient
./gradlew :fabric:runServer
./gradlew :neoforge:runClient
./gradlew :neoforge:runServer
许可证
MIT
Arrow & Slots
A lightweight Minecraft archery helper that lets you focus on aiming, not inventory management.
Description
When you draw a bow, Arrow & Slots automatically picks the arrow from the hotbar slot directly above the bow. No more swapping items mid-fight—your ammunition always matches the weapon you are holding.
- Works on dedicated servers (the logic runs server-side).
- Works in single-player because the integrated server handles it.
- Also available as a Paper plugin for Bukkit-based servers.
Supported Platforms
| Platform |
Type |
Status |
| Fabric |
Mod |
implemented |
| NeoForge |
Mod |
implemented |
| Paper |
Plugin |
implemented |
Project Layout
ArrowMod/
├── common/ Shared code used by Fabric and NeoForge
├── fabric/ Fabric loader entry point
├── neoforge/ NeoForge loader entry point
├── paper/ Paper plugin entry point
├── build.gradle Root build configuration
└── settings.gradle
Supported Versions
| Platform |
Supported MC versions |
Notes |
| Fabric |
1.21.1 – 26.1.2 |
Built against 1.21.1; metadata declares >=1.21.1 |
| NeoForge |
1.21.1 – 26.1.2 |
NeoForge 21.1+ through 26.1+ |
| Paper |
1.21.1 – 26.1.2 |
api-version: '1.21' |
The jar is compiled against MC 1.21.1 with official Mojang mappings.
All injected code is wrapped in try-catch with require = 0 on Mixin targets
so it degrades gracefully instead of crashing if an API changes between versions.
If you hit issues on a newer MC version, rebuild the mod against that version's
toolchain — the Mixin target (Player#getProjectile) and class names are
stable across all supported versions under official mappings.
Requirements
- Java 21 or newer
- Gradle 8.11+ (wrapper included)
Building
./gradlew build
Built artifacts will be in each subproject's build/libs/ directory.
Development Run Configurations
Generate run configs for your IDE with:
./gradlew genIntelliJRuns
# or
./gradlew genEclipseRuns
You can also run a client/server directly from the command line:
./gradlew :fabric:runClient
./gradlew :fabric:runServer
./gradlew :neoforge:runClient
./gradlew :neoforge:runServer
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧