⚔️ PSword
PSword 允许你创建拥有自定义 效果 和 能力 的武器。效果通过粒子、音效和闪电让每次命中都栩栩如生。能力则改变战斗局势:对你自身、目标或周围所有人施加药水效果,以及造成真实伤害并各自拥有独立冷却时间的闪电打击。
在单个配置文件中定义你的武器,并通过命令发放它们。
需要 ParticleEngineLibrary -
你可以使用 轻松创建武器!
✨ 功能
- 自定义武器:支持完整的 MiniMessage 格式(渐变、彩虹色、加粗等)来设置名称和描述
- 3 种效果类型(视觉效果)
- 🌀 粒子:任意原版粒子,可调节数量
- 🔊 音效:任意原版音效,可调节音量和音调
- ⚡ 闪电:仅视觉效果,不造成伤害且不引发火灾
- 5 种能力类型(游戏机制)
- 🧪 自身效果:给自己施加药水效果(速度、力量、吸收…)
- 🎯 目标效果:给攻击目标施加药水效果(中毒、失明、迟缓…)
- 🌪️ 范围效果:给周围所有人施加药水效果(不包括自己)
- ⚡ 闪电箭:用闪电击中目标以造成额外伤害
- 🌩️ 范围闪电:用闪电击中周围所有人
- 按能力独立的冷却时间:每种能力都有独立的冷却时间,并在动作栏显示其名称和剩余时间
- 5 种触发条件
ON_DAMAGE_DEAL:当你造成伤害时
ON_HIT_CRIT:当你造成暴击时
ON_KILL:当你击杀生物时
ON_DAMAGE_RECEIVE:当其他玩家攻击你时
RIGHT_CLICK:当你右键点击时(仅限能力),以便你可以随时使用主动能力
- 智能右键点击:可选择忽略对箱子、门、按钮和其他交互方块的右键点击
- 每把武器无限的效果和能力:将任意类型与任意触发条件自由组合
- 仅玩家模式:限制效果和能力仅在 PvP 中生效,或让它们也对生物生效
- 安全的配置:拼写错误和无效值会在控制台中报告并附带武器名称,同时使用合理的默认值以避免插件崩溃
- 耐用的身份标识:武器在受损、修复或重命名后仍能正常工作
- 实时重载:修改配置后执行
/psword reload 即可应用更改,无需重启服务器
- 现成的示例:默认配置包含每种效果和能力的示例武器
📜 示例
swords:
"thunder_blade":
name: "<b><gradient:#5BC0EB:#2E4057>Thunder Blade"
lore:
- "<gray>Right-click to call the storm."
material: NETHERITE_SWORD
effects:
- type: PARTICLE
trigger: ON_HIT_CRIT
particle_type: soul
multiplier: 1.5
- type: SOUND
trigger: ON_HIT_CRIT
sound: item.trident.thunder
volume: 0.7
pitch: 1.2
abilities:
- type: LIGHTNING_BOLT_RADIUS
name: "<yellow>⚡ Storm"
trigger: RIGHT_CLICK
cooldown_millis: 20000
lightning_damage: 4.0
radius: 5
- type: EFFECT_SELF
name: "<red>Fury"
trigger: ON_KILL
cooldown_millis: 10000
effect_type: strength
duration_seconds: 5
level: 1
🛠️ 命令与权限
| 命令 |
描述 |
权限 |
/psword giveSword <id> |
获得一把武器 |
psword.givesword |
/psword reload |
重新加载配置并重置冷却时间 |
psword.reload |
/ps 可作为更简短的命令别名使用。
📦 要求
🗺️ 路线图
- 更多主动能力(冲刺、闪烁…)
- 彩色粒子 (
dust)、方块和物品粒子
💬 源码与支持
PSword 基于 MIT 许可证开源。
源代码、文档和错误报告:GitHub
⚔️ PSword
PSword lets you create custom swords with their own effects and abilities. Effects bring every hit to
life with particles, sounds and lightning. Abilities change the fight: potion effects on you, your target or
everyone around you, and lightning strikes that deal real damage, each with its own cooldown.
Define your swords in a single config file and hand them out with a command.
Requires ParticleEngineLibrary -
YOU CAN USE TO CREATE SWORDS EFFORTLESSLY!
✨ Features
- Custom swords: name and lore with full MiniMessage support (gradients, rainbow, bold…)
- 3 effect types (visual)
- 🌀 Particle: any vanilla particle, with adjustable amount
- 🔊 Sound: any vanilla sound, with volume and pitch
- ⚡ Lightning: visual only, deals no damage and starts no fires
- 5 ability types (gameplay)
- 🧪 Self effect: give yourself a potion effect (Speed, Strength, Absorption…)
- 🎯 Target effect: give your target a potion effect (Poison, Blindness, Slowness…)
- 🌪️ Radius effect: give everyone around you a potion effect (not you)
- ⚡ Lightning bolt: strike your target with lightning for extra damage
- 🌩️ Radius lightning: strike everyone around you with lightning
- Per-ability cooldowns: every ability has its own cooldown, shown on the action bar with its name and remaining time
- 5 triggers
ON_DAMAGE_DEAL: when you hit something
ON_HIT_CRIT: when you land a critical hit
ON_KILL: when you kill something
ON_DAMAGE_RECEIVE: when another player hits you
RIGHT_CLICK: when you right-click (abilities only), so you can use active abilities whenever you want
- Smart right-click: optionally ignore right-clicks on chests, doors, buttons and other interactive blocks
- Unlimited effects and abilities per sword: mix and match any type with any trigger
- Players-only mode: limit effects and abilities to PvP, or let them work on mobs too
- Safe config: typos and invalid values are reported in the console with the sword's name, and a sensible default is used instead of breaking the plugin
- Durable identity: swords keep working after taking damage, being repaired or renamed
- Live reload: change the config and apply it with
/psword reload, no restart needed
- Ready-made examples: the default config has one example sword for every effect and ability
📜 Example
swords:
"thunder_blade":
name: "<b><gradient:#5BC0EB:#2E4057>Thunder Blade"
lore:
- "<gray>Right-click to call the storm."
material: NETHERITE_SWORD
effects:
- type: PARTICLE
trigger: ON_HIT_CRIT
particle_type: soul
multiplier: 1.5
- type: SOUND
trigger: ON_HIT_CRIT
sound: item.trident.thunder
volume: 0.7
pitch: 1.2
abilities:
- type: LIGHTNING_BOLT_RADIUS
name: "<yellow>⚡ Storm"
trigger: RIGHT_CLICK
cooldown_millis: 20000
lightning_damage: 4.0
radius: 5
- type: EFFECT_SELF
name: "<red>Fury"
trigger: ON_KILL
cooldown_millis: 10000
effect_type: strength
duration_seconds: 5
level: 1
🛠️ Commands & Permissions
| Command |
Description |
Permission |
/psword giveSword <id> |
Give yourself a sword |
psword.givesword |
/psword reload |
Reload the configuration and reset cooldowns |
psword.reload |
/ps works as a shorter alias.
📦 Requirements
- Paper 1.21.4 minimum
- Java 21
🗺️ Roadmap
- More active abilities (dash, blink…)
- Colored particles (
dust), block and item particles
💬 Source & Support
PSword is open source under the MIT license.
Source code, documentation and bug reports: GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧