⚔️ 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 可作为更简短的命令别名使用。
📦 要求
- 最低 Paper 1.21.4
- Java 21
🗺️ 路线图
- 更多主动能力(冲刺、闪烁…)
- 彩色粒子 (
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 somethingON_HIT_CRIT: when you land a critical hitON_KILL: when you kill somethingON_DAMAGE_RECEIVE: when another player hits youRIGHT_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
下载 PSword
下载 PSword
下载 PSword
下载 PSword
下载 PSword
下载 PSword
下载 PSword
下载 PSword
下载 PSword
⚔️ PSWORD V2.5.0-alpha
💠 新增 2 种能力类型
SILENCE(沉默):命中玩家后使其陷入沉默,一段时间内无法使用任何剑类能力。选项:duration_seconds(默认值3)。SILENCE_RADIUS(范围沉默):使周围所有玩家陷入沉默。选项:duration_seconds(默认值3)、radius(默认值5)。- 沉默效果仅对玩家生效;实体(生物)不受影响。
SILENCE_RADIUS会显示半径光环(radius_highlight_particle),与其他范围类能力类似。
💠 被沉默期间
- 被沉默的玩家会获得发光的外部轮廓,以便其他人能清楚看到谁处于沉默状态。
- 操作栏显示
SUSTURULDUN! Xs(你被沉默了!剩余 X 秒),并伴有标题提示玩家何时可再次使用能力。 - 在被沉默期间尝试使用能力时,会播放“否定”音效且无任何效果。
- 冷却时间在沉默期间继续正常计时。
💠 更新说明
- 配置文件无需更改。现有的剑配置仍可正常使用。 (将在稳定版发布前添加 HEAL 和 SONIC_BOOM 能力,并对代码进行优化)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧