跳到正文

Arrows & Slots

作者:literal.uu

When you draw a bow, Arrow & Slots automatically consumes the arrow placed in the hotbar slot directly above that bow. Made for DashPum4

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

常见问题

Arrows & Slots 支持哪些 Minecraft 版本?

Arrows & Slots 支持 Minecraft Java 版 1.21–26.2,共 16 个版本,可用的加载器:Fabric / Folia / NeoForge / Paper / Purpur。下载时注意选择和你游戏版本一致的文件。

Arrows & Slots 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Folia / NeoForge / Paper / Purpur,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

literal.uu 的其他作品

查看全部 →