⚔️ This is a Magic Staff | 万法皆杖 ⚔️
将任意物品转化为施法媒介 —— 你的剑如今就是你的魔杖
? 概述
This is a Magic Staff! (万法皆杖) 是 Iron's Spells 'n Spellbooks 的一个 NeoForge 1.21.1 附属模组,旨在解放你的施法潜力。
- 通过按下单个按键,即可将你手中的 任意物品 —— 钻石剑、铁斧,甚至是一颗土豆 —— 转化为功能性的施法法杖。在施展毁灭性法术之后,可瞬间切换回近战战斗模式。
- 目前,你可以在手持魔法书或武器时按下 J 键来取出已固定的法术。执行此操作将消耗 5 级经验值,该功能可在配置文件中开启或关闭(?感谢社区提供的建议!)
+ 无需合成配方 —— 使用现有装备即可
+ 战斗中无缝切换武器与法杖模式
+ 状态持久化保存至物品 NBT 数据
+ 零视觉干扰 —— 不新增物品贴图
✨ 主要特性
| 特性 |
描述 |
优势 |
| ? 动态转换 |
随时开关任意物品的施法能力 |
避免背包臃肿 |
| ⚔️ 双模式物品 |
在近战武器与施书法杖之间切换 |
战术灵活性高 |
| ? 状态持久化 |
转换状态保存在物品数据中 |
掉落或死亡后仍保留 |
| ? 双语支持 |
完整支持英文与简体中文 |
全球用户无障碍使用 |
? 使用方法
步骤 1:手持任意物品(剑、斧、任何物品!)
↓
步骤 2:按下 [H] 激活施法模式
↓
步骤 3:通过 ISS 魔法书/轮盘装备法术
↓
步骤 4:右键点击施放法术!
↓
步骤 5:再次按下 [H] 恢复为武器模式
? 提示:按键绑定可在“选项 → 控制设置 → 按键绑定”中进行自定义
? 技术细节
利用 Minecraft 1.21.1 的 数据组件系统(Data Component System):
// 核心逻辑(简化版)
item.set(DataComponents.CASTING_IMPLEMENT, true); // 启用施法
item.remove(DataComponents.CASTING_IMPLEMENT); // 禁用施法
- Iron's Spells 'n Spellbooks 会自动识别带有
CASTING_IMPLEMENT 组件的物品,从而启用右键施法功能。
? 已知问题
请通过 GitHub Issues 或 CurseForge 评论提交问题反馈!
? 下载
✨ -[ 每一件物品都是一把等待被唤醒的魔杖 ]- ✨
⚔️ This is a Magic Staff | 万法皆杖 ⚔️
Turn any item into a spellcasting implement — Your sword is now your wand
? Overview
This is a Magic Staff! (万法皆杖) is a NeoForge 1.21.1 addon for Iron's Spells 'n Spellbooks that liberates your spellcasting potential.
- Transform any item in your hand — diamond swords, iron axes, even a potato — into a functional spellcasting staff with a single keystroke. Cast devastating spells, then revert back to melee combat instantly.
- Currently, you can press the J key while holding a magic book or weapon to take out the fixed spells. Executing this action will consume 5 levels of experience, and it can be toggled on or off in the configuration(?Thank you for the suggestions provided by the community!)
+ No crafting recipes needed — use existing gear
+ Seamless weapon/staff switching mid-combat
+ Persistent state saved to item NBT
+ Zero visual clutter — no new item sprites
✨ Key Features
| Feature |
Description |
Benefit |
| ? Dynamic Conversion |
Toggle any item's casting capability on/off |
No inventory bloat |
| ⚔️ Dual-Mode Items |
Switch between melee weapon and spell staff |
Tactical flexibility |
| ? Persistent State |
Conversion status saved in item data |
Survives drops/death |
| ? Bilingual |
Full English & 简体中文 support |
Global accessibility |
? How to Use
Step 1: Hold any item (Sword, Axe, anything!)
↓
Step 2: Press [H] to activate casting mode
↓
Step 3: Equip spells via ISS spellbook/wheel
↓
Step 4: Right-click to cast!
↓
Step 5: Press [H] again to revert to weapon
? Tip: Keybind can be customized in Options → Controls → Key Binds
? Technical Details
Utilizes Minecraft 1.21.1's Data Component System:
// Core logic (simplified)
item.set(DataComponents.CASTING_IMPLEMENT, true); // Enable casting
item.remove(DataComponents.CASTING_IMPLEMENT); // Disable casting
- Iron's Spells 'n Spellbooks automatically recognizes items with the
CASTING_IMPLEMENT component, enabling right-click spellcasting functionality.
? Known Issues
Please submit issues via GitHub Issues or CurseForge comments!
? Download
✨ -[ Every item is a wand waiting to be awakened ]- ✨
评论 0
登录后参与评分
还没有评论,来抢沙发吧