概述
Stonecutter Damage 添加了一项游戏机制:当玩家或生物实体站在切石机方块上时会受到伤害。该插件高效地追踪踏上切石机的实体,并以固定的间隔施加可配置的伤害。系统通过仅处理相关的世界、实体和方块位置变化来优化,从而最大限度地减少不必要的检查。
特性
- 可配置的切石机伤害量
- 支持玩家和所有 LivingEntity 类型
- 支持世界白名单
- 支持实体黑名单(例如蝙蝠或其他排除的怪物)
- 使用缓存的方块位置进行高效追踪
- 可配置的任务延迟和周期
- 可通过配置文件启用或禁用插件
- 轻量级且对大型服务器安全
Spoiler
# 启用或禁用 Stonecutter damage 处理
# 默认值: true
enabled: true
# 允许玩家忽略切石机伤害的权限
# 默认值: stonecutter.bypass
permission: stonecutter.bypass
# 每次命中造成的伤害量(以半颗心为单位)
# 1 = 0.5 颗心
# 默认值: 1.0
damage-amount: 1.0
# 伤害任务开始前的初始延迟(以刻为单位)
# 20 刻 = 1 秒
# 默认值: 20
task-delay: 20
# 伤害检查之间的间隔(以刻为单位)
# 20 刻 = 1 秒
# 默认值: 20
task-period: 20
# StonecutterDamage 生效的世界列表
# 仅检查这些世界中的实体/玩家
# 默认值: ["world", "world_nether", "world_the_end"]
allowed-worlds:
- world
- world_nether
- world_the_end
# 被排除在 StonecutterDamage 之外的实体类型列表
# 使用 Bukkit 实体类型名称,例如 ZOMBIE, CREEPER, ARMOR_STAND
# 默认值: ["ARMOR_STAND", "ITEM_FRAME"]
blacklisted-entities:
- ARMOR_STAND
- ITEM_FRAME
# 帮助命令输出
# {0} 替换为命令标签
# /stonecutter help
help-messages:
- "§7=== §aStonecutterDamage Commands §7==="
- "§e/{0} help §8- §f显示此帮助信息。"
- "§e/{0} reload §8- §f重新加载配置文件。"
# 成功重新加载配置后显示的消息
# /stonecutter reload
reload-message: "§8[§aStonecutter§8] §f配置文件已成功重新加载。"
权限
stonecutter.bypass - 允许玩家在切石机上站立而不受到伤害。
命令
/stonecutter help - 显示所有可用命令。 /stonecutter reload - 重新加载插件配置。
bStats
Overview
Stonecutter Damage adds a gameplay mechanic where players and living entities take damage when standing on a stonecutter block. The plugin efficiently tracks entities that step onto stonecutters and applies configurable damage at a fixed interval. The system is optimized to minimize unnecessary checks by only processing relevant worlds, entities, and block-position changes.
Features
- Configurable damage amount dealt by stonecutters
- Supports players and all LivingEntity types
- World whitelist support
- Entity blacklist support (e.g. bats or other excluded mobs)
- Optimized tracking using cached block positions
- Configurable task delay and period
- Enable or disable the plugin via config
- Lightweight and safe for large servers
Spoiler
# Enable or disable Stonecutter damage handling
# Default: true
enabled: true
# Permission that allows players to ignore stonecutter damage
# Default: stonecutter.bypass
permission: stonecutter.bypass
# Amount of damage dealt per hit (in half-hearts)
# 1 = 0.5 heart
# Default: 1.0
damage-amount: 1.0
# Initial delay before the damage task starts (in ticks)
# 20 ticks = 1 second
# Default: 20
task-delay: 20
# Interval between damage checks (in ticks)
# 20 ticks = 1 second
# Default: 20
task-period: 20
# List of worlds where StonecutterDamage is active
# Only entities/players in these worlds will be checked
# Default: ["world", "world_nether", "world_the_end"]
allowed-worlds:
- world
- world_nether
- world_the_end
# List of entity types that are excluded from StonecutterDamage
# Use Bukkit entity type names, e.g., ZOMBIE, CREEPER, ARMOR_STAND
# Default: ["ARMOR_STAND", "ITEM_FRAME"]
blacklisted-entities:
- ARMOR_STAND
- ITEM_FRAME
# Help command output
# {0} replaces with the command label
# /stonecutter help
help-messages:
- "§7=== §aStonecutterDamage Commands §7==="
- "§e/{0} help §8- §fShows this help message."
- "§e/{0} reload §8- §fReloads the config."
# Message shown after successful config reload
# /stonecutter reload
reload-message: "§8[§aStonecutter§8] §fSuccessfully reloaded the config."
Permissions
stonecutter.bypass - Allows a player to stand on stonecutters without taking damage.
Commands
/stonecutter help - Displays all available commands. /stonecutter reload - Reloads the plugin configuration.
bStats
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StonecutterDamage
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
ci:更新工作流文件中的构建名称格式
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧