跳到正文

Throwable Spears

作者:MinexInd

A datapack that makes spears throwable by shift + right click

收藏

介绍

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

Physics-based spear throwing for Minecraft Java Edition 1.21.11.

A vanilla datapack that makes spears throwable with real momentum-based damage. No mods, no resource packs.

Spear with Fire Aspect Enchantment

How to Use

Sneak + Right-click with any spear to throw it.

Action Result
Sneak + Right-click (standing) Normal throw
Sneak + Right-click (sprinting) Faster throw, bonus damage
Sneak + Right-click (jumping) Higher arc
Sneak + Right-click (wind charge launch) Inherits blast momentum
Sneak + Right-click (in water) Slowed by drag, low damage

Cannot be thrown while elytra gliding — swap to a chestplate to throw again.

The spear flies as an item and can be picked up after landing.


Additions:

  • Momentum: your sprint/jump/fall speed at throw time (up to ~+7 damage on a sprint throw, more from falls)
  • Sharpness: +1 damage per 2 levels
  • Fire Aspect: ignites the hit target for 4s (level I) or 8s (level II+); kills drop cooked food

Critical (>1.8 throw velocity): extra particles, louder hit sound, metallic ring

Compatibility

  • Atleast Minecraft 1.21.11
  • Works alongside with most datapacks (only hooks into spear usage).

Installation

  1. Drop throwable_spears into your world’s datapacks/ folder
  2. Run /reload or re-enter the world
  3. You’ll see: [Throwable Spears] Loaded. Sneak + right-click to throw!

Configuration

Edit data/throwable_spears/functions/utils/config.mcfunction:

Variable Default Description
#min_vel 15 Min velocity (×100) to deal damage
#crit_vel 180 Velocity threshold for critical effects
#throw_power 100 Base throw speed (×100)
#momentum_pct 100 Player velocity inheritance %
#mom_keep 80 Peak-speed memory kept per tick (×100)
#throw_cooldown 10 Cooldown between throws (ticks)

常见问题

Throwable Spears 支持哪些 Minecraft 版本?

Throwable Spears 支持 Minecraft Java 版 1.21.11–26.3,共 6 个版本。下载时注意选择和你游戏版本一致的文件。

Throwable Spears 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

MinexInd 的其他作品

查看全部 →