MashStrikeDrops
MashStrikeDrops 是一款 Paper 插件,用于构建自定义的“连击怪物”,玩家通过反复攻击它们来获得奖励。
与传统战斗不同,每个配置好的怪物都像是一个事件目标:
- 每次成功命中都可以给予物品奖励
- 每次成功命中都可以执行服务器命令
- 最后一次命中可以给予独立的奖励池
- 最后一次命中可以执行独立的命令池
- 怪物可以广播生成和死亡消息
- 管理员可以在游戏内完全创建和编辑怪物
该插件旨在服务于活动服务器、宝箱风格怪物遭遇战、刷怪区、轻度 Boss 内容以及无需 MythicMobs 或大型 RPG 堆栈的自定义奖励系统。
功能特性
- 使用
/sd create 创建可复用的怪物模板
- 在您的位置或固定坐标生成连击怪物
- 配置命中次数、实体类型、缩放比例、AI、击退和冷却时间
- 从您手中的物品添加单次命中物品奖励
- 从您手中的物品添加最终命中物品奖励
- 为命中奖励和最终命中奖励添加分组命令池
- 配置可选的生成消息和死亡消息
- 支持多种实体特定设置:
- 史莱姆大小
- 绵羊颜色
- 村民职业
- 可成长实体的幼年/成年状态
- 死亡时广播最高伤害输出者(Top Hitter)
- 可选的活动怪物持久化保存(跨重载/禁用)
- 在
/sd listactive 中提供可点击的活动怪物管理控件
要求
- 服务器软件:Paper 1.21.x
- Java:21
兼容 Paper 的分叉版本可能也能工作,但该插件是基于 Paper API 构建的。
安装
- 下载
MashStrikeDrops-1.0.0.jar
- 将其放入服务器的
plugins/ 文件夹
- 启动服务器一次
- 如果您想先编辑生成的配置文件,请停止服务器
- 再次启动服务器,并使用命令或在
plugins/MashStrikeDrops/Mobs 中的 YAML 文件配置怪物
命令
权限:mashstrikedrops.admin
/strikedrops
/sd help
/sd reload
/sd list
/sd listactive
/sd create <id> <name>
/sd clone <id> <new-id>
/sd spawn <id>
/sd spawn <id> <world|current> <x> <y> <z> [north|south|east|west]
/sd delete <id>
/sd modify <id> hits <amount>
/sd modify <id> display set <name>
/sd modify <id> display reset
/sd modify <id> entity <type>
/sd modify <id> changeid <new-id>
/sd modify <id> deathmessage set <message>
/sd modify <id> deathmessage reset
/sd modify <id> spawnmessage set <message>
/sd modify <id> spawnmessage reset
/sd modify <id> nbt common <key> <true|false|reset>
/sd modify <id> nbt <turtle|slime|sheep|villager> <key> <value|reset>
/sd modify <id> scale <value>
/sd modify <id> knockback <true|false>
/sd modify <id> ai <true|false>
/sd modify <id> cooldown <seconds>
/sd modify <id> command <add|delete|list> ...
/sd modify <id> drops <add|remove|list> ...
/sd modify <id> finaldrop command <add|list|delete> ...
/sd modify <id> finaldrop item <add|list|delete> ...
/sd active tp <active-id>
/sd active tphere <active-id>
/sd active kill <active-id>
快速开始
创建一个基本的连击怪物:
/sd create zombieboss &6Zombie Boss
/sd modify zombieboss hits 25
/sd modify zombieboss entity zombie
/sd modify zombieboss scale 1.5
/sd modify zombieboss cooldown 0.4
/sd spawn zombieboss
添加单次命中奖励:
- 在主手中持有奖励物品
- 运行
/sd modify zombieboss drops add
添加最终命中奖励:
- 在主手中持有最终奖励物品
- 运行
/sd modify zombieboss finaldrop item add
添加单次命中命令池:
/sd modify zombieboss command add coins eco give %player% 25
添加最终命中命令池:
/sd modify zombieboss finaldrop command add jackpot crate key give %player% rare 1
配置说明
主配置文件:plugins/MashStrikeDrops/config.yml
notable 设置项:
drops.give-directly: 将奖励直接给予玩家背包,而不是从怪物身上掉落
hit-message.enabled: 发送命中进度消息
active-mobs.persist-on-disable: 在插件禁用/服务器关闭期间保持活动怪物
active-mobs.persist-on-reload: 在 /sd reload 期间保持活动怪物
sounds.hit, sounds.death, sounds.spawn: 音效
top-hitters.enabled: 当怪物死亡时宣布最高伤害输出者
global-hit-commands: 每次成功命中时运行的全局命令
怪物以单独的 YAML 文件形式存储在 plugins/MashStrikeDrops/Mobs/ 中。
占位符
消息和命令中支持的占位符包括:
%player%
%mob%
%drop%
%hits%
%pos%
注意事项
- 连击伤害由插件处理,因此针对活动连击怪物的正常战斗伤害会被取消。
- 对活动怪物的环境伤害也会被插件取消并清理。
- 活动怪物使用持久化数据,因此可以根据配置选择在重载/禁用后恢复。
MashStrikeDrops
MashStrikeDrops is a Paper plugin for building custom "strike mobs" that players hit repeatedly for rewards.
Instead of normal combat, each configured mob acts like an event target:
- every successful hit can give an item reward
- every successful hit can run server commands
- the final hit can give a separate reward pool
- the final hit can run a separate command pool
- mobs can broadcast spawn and death messages
- admins can create and edit mobs entirely in-game
The plugin is aimed at event servers, crates-style mob encounters, grind zones, boss-lite content, and custom reward systems without needing MythicMobs or a larger RPG stack.
Features
- Create reusable mob templates with
/sd create
- Spawn strike mobs at your location or fixed coordinates
- Configure hit count, entity type, scale, AI, knockback, and cooldown
- Add per-hit item rewards from the item in your hand
- Add final-hit item rewards from the item in your hand
- Add grouped command pools for hit rewards and final-hit rewards
- Configure optional spawn messages and death messages
- Support for several entity-specific settings:
- slime size
- sheep color
- villager profession
- baby/adult state for ageable mobs
- Optional top-hitter broadcast on death
- Optional persistence for active mobs across reload/disable
- Clickable active mob admin controls in
/sd listactive
Requirements
- Server software: Paper 1.21.x
- Java: 21
Paper-compatible forks may also work, but the plugin is built against the Paper API.
Installation
- Download
MashStrikeDrops-1.0.0.jar
- Place it in your server's
plugins/ folder
- Start the server once
- Stop the server if you want to edit the generated config first
- Start the server again and configure mobs with commands or YAML files in
plugins/MashStrikeDrops/Mobs
Commands
Permission: mashstrikedrops.admin
/strikedrops
/sd help
/sd reload
/sd list
/sd listactive
/sd create <id> <name>
/sd clone <id> <new-id>
/sd spawn <id>
/sd spawn <id> <world|current> <x> <y> <z> [north|south|east|west]
/sd delete <id>
/sd modify <id> hits <amount>
/sd modify <id> display set <name>
/sd modify <id> display reset
/sd modify <id> entity <type>
/sd modify <id> changeid <new-id>
/sd modify <id> deathmessage set <message>
/sd modify <id> deathmessage reset
/sd modify <id> spawnmessage set <message>
/sd modify <id> spawnmessage reset
/sd modify <id> nbt common <key> <true|false|reset>
/sd modify <id> nbt <turtle|slime|sheep|villager> <key> <value|reset>
/sd modify <id> scale <value>
/sd modify <id> knockback <true|false>
/sd modify <id> ai <true|false>
/sd modify <id> cooldown <seconds>
/sd modify <id> command <add|delete|list> ...
/sd modify <id> drops <add|remove|list> ...
/sd modify <id> finaldrop command <add|list|delete> ...
/sd modify <id> finaldrop item <add|list|delete> ...
/sd active tp <active-id>
/sd active tphere <active-id>
/sd active kill <active-id>
Quick Start
Create a basic strike mob:
/sd create zombieboss &6Zombie Boss
/sd modify zombieboss hits 25
/sd modify zombieboss entity zombie
/sd modify zombieboss scale 1.5
/sd modify zombieboss cooldown 0.4
/sd spawn zombieboss
Add per-hit rewards:
- Hold the reward item in your main hand
- Run
/sd modify zombieboss drops add
Add a final-hit reward:
- Hold the final reward item in your main hand
- Run
/sd modify zombieboss finaldrop item add
Add a per-hit command pool:
/sd modify zombieboss command add coins eco give %player% 25
Add a final-hit command pool:
/sd modify zombieboss finaldrop command add jackpot crate key give %player% rare 1
Configuration Notes
Main config file: plugins/MashStrikeDrops/config.yml
Notable settings:
drops.give-directly: gives rewards straight to the player inventory instead of throwing them from the mob
hit-message.enabled: sends hit progress messages
active-mobs.persist-on-disable: keeps active mobs through plugin disable/server stop
active-mobs.persist-on-reload: keeps active mobs through /sd reload
sounds.hit, sounds.death, sounds.spawn: sound effects
top-hitters.enabled: announces the top hitters when a mob dies
global-hit-commands: commands that run on every successful hit
Mobs are stored as separate YAML files in plugins/MashStrikeDrops/Mobs/.
Placeholders
Supported placeholders in messages and commands include:
%player%
%mob%
%drop%
%hits%
%pos%
Notes
- Strike damage is handled by the plugin, so normal combat damage against active strike mobs is cancelled.
- Environmental damage to active mobs is also cancelled and cleaned up by the plugin.
- Active mobs use persistent data so they can optionally be restored after reload/disable, depending on config.
评论 0
登录后参与评分
还没有评论,来抢沙发吧