Sunburn
Sunburn — 一款让玩家像僵尸一样在阳光下暴露脆弱的插件。
主要功能
- ? 当玩家站在露天天空下时,会在直射阳光下点燃。
- ⛑ 头盔可以防止阳光伤害,但会逐渐损耗耐久度。
- ? 其他头部槽位物品可能会以可配置的概率掉落至地面,使玩家暴露并燃烧。
- ? 燃烧取决于光照等级:默认情况下,玩家在
SunLight < 15 时是安全的。此阈值可配置。
- ? 在水中可提供完全的阳光防护。
- ⚙️ 灵活的配置选项:
- 可调整燃烧持续时间
- 多种阴影检测模式(
SKYLIGHT、ANYLIGHT、MATERIALCONFIG)
- 自定义头盔和透明方块列表
- 可配置非头盔类头部槽位物品的掉落概率
命令
/sunburn on — 激活阳光灼伤效果
/sunburn off — 停用阳光灼伤效果
/sunburn status — 在聊天栏显示当前配置参数
/sunburn reload — 重新加载配置文件
/sb — /sunburn 的别名
你必须拥有 OP 权限才能执行这些命令。
默认配置
# _____ _ _ _ _ ____ _ _ _____ _ _
# / ____| | | | \ | | _ \| | | | __ \| \ | |
# | (___ | | | | \| | |_) | | | | |__) | \| |
# \___ \| | | | . ` | _ <| | | | _ /| . ` |
# ____) | |__| | |\ | |_) | |__| | | \ \| |\ |
# |_____/ \____/|_| \_|____/ \____/|_| \_\_| \_|
# 主插件配置
cooldown-tick-period: 60
# 刻数:20 - 100
# 定义阳光攻击的频率
# 注意!较低的值可能会降低性能!
burning-duration: 100
# 刻数:0 - 500
# 定义每次阳光攻击后玩家燃烧的时长
# 注意 - 如果玩家已经在燃烧中,这可能不会生效
sun-burn-mode: SKYLIGHT
# 模式:SKYLIGHT / ANYLIGHT / MATERIALCONFIG
# 定义插件如何判断玩家是否处于阴影中
# ---
# SKYLIGHT
# 仅考虑天空光照等级
# 这是默认设置
# ---
# ANYLIGHT
# 任何光源都起作用
# 这可能会过于敏感,请谨慎使用
# ---
# MATERIALCONFIG
# 现在,如果玩家上方有任何不透明方块,则视为处于阴影中
# 如果玩家上方的所有方块都是透明的,则他会暴露在阳光攻击下
# 你可以手动更改哪些方块被视为透明(检查 'settings' 文件夹)
# 在该文件夹中有 'transparent-materials.yml' 和 'transparent-tags.yml'
# ---
min-light-level: 15
# 整数:0 - 16
# 定义造成玩家伤害所需的最小光照等级
# 如果设置为 16 - 则永远不会造成伤害;如果设置为 0 - 则在任何地方都会造成伤害
# 如果设置了 MATERIALCONFIG 模式,此参数无效
player-damage: 0
# 整数:0 - 100
# 定义每次阳光攻击时玩家受到的伤害量
# 注意 - 这是直接伤害,不包括火焰可能造成的额外伤害
helmet-damage: 1
# 整数:0 - 50
# 定义每次阳光攻击时装备的头盔受到的伤害量
# 你可以手动更改被视为头盔的物品列表('settings' 文件夹)
# 在该文件夹中有 "helmet-materials.yml",请检查其内容
non-helmet-drop-chance: 3.5
# 百分比:0 - 100(可以为小数,精度可达4位)
# 定义每次阳光攻击时装备的非头盔物品掉落的概率
# 如果小于 0 - 任何非头盔物品(南瓜头、玩家头颅等)都不能防御阳光!
# 如果设置为 0 - 任何非头盔物品都能防御阳光,除非被取下
# 你可以手动更改被视为“不防护”的物品列表('settings' 文件夹)
# 在该文件夹中有 "helmet-materials.yml",请检查其内容
# 标记为“不防护”的物品将不会防御阳光,即使启用了此配置
# 此类物品也不会从头部槽位掉落(无论掉落概率是多少)
# 标记为“永久防护”的物品将防御阳光,且没有掉落几率
water-defence: false
# 布尔值:true / false
# 如果玩家在水中,则永久阻止任何阳光伤害
材质配置
materials:
- GLASS
- WHITE_STAINED_GLASS
- LIGHT_GRAY_STAINED_GLASS
- GRAY_STAINED_GLASS
- BLACK_STAINED_GLASS
- BROWN_STAINED_GLASS
- RED_STAINED_GLASS
- ORANGE_STAINED_GLASS
- YELLOW_STAINED_GLASS
- LIME_STAINED_GLASS
- GREEN_STAINED_GLASS
- CYAN_STAINED_GLASS
- LIGHT_BLUE_STAINED_GLASS
- BLUE_STAINED_GLASS
- PURPLE_STAINED_GLASS
- MAGENTA_STAINED_GLASS
- PINK_STAINED_GLASS
- GLASS_PANE
- WHITE_STAINED_GLASS_PANE
- LIGHT_GRAY_STAINED_GLASS_PANE
- GRAY_STAINED_GLASS_PANE
- BLACK_STAINED_GLASS_PANE
- BROWN_STAINED_GLASS_PANE
- RED_STAINED_GLASS_PANE
- ORANGE_STAINED_GLASS_PANE
- YELLOW_STAINED_GLASS_PANE
- LIME_STAINED_GLASS_PANE
- GREEN_STAINED_GLASS_PANE
- CYAN_STAINED_GLASS_PANE
- LIGHT_BLUE_STAINED_GLASS_PANE
- BLUE_STAINED_GLASS_PANE
- PURPLE_STAINED_GLASS_PANE
- MAGENTA_STAINED_GLASS_PANE
- PINK_STAINED_GLASS_PANE
- CHAIN
- IRON_BARS
- COPPER_GRATE
- EXPOSED_COPPER_GRATE
- WEATHERED_COPPER_GRATE
- OXIDIZED_COPPER_GRATE
- WAXED_COPPER_GRATE
- WAXED_EXPOSED_COPPER_GRATE
- WAXED_WEATHERED_COPPER_GRATE
- WAXED_OXIDIZED_COPPER_GRATE
- LIGHTNING_ROD
- END_ROD
- TORCH
- SOUL_TORCH
- REDSTONE_TORCH
- LANTERN
- SOUL_LANTERN
- CONDUIT
- COBWEB
- STRING
- TRIPWIRE_HOOK
- REDSTONE_WIRE
- SMALL_AMETHYST_BUD
- MEDIUM_AMETHYST_BUD
- LARGE_AMETHYST_BUD
头盔配置
helmet-materials:
- LEATHER_HELMET
- CHAINMAIL_HELMET
- IRON_HELMET
- GOLDEN_HELMET
- DIAMOND_HELMET
- NETHERITE_HELMET
- TURTLE_HELMET
non-protecting-materials: copy-from-transparent-materials
perm-protecting-materials:
- BEDROCK
Sunburn
Sunburn — a plugin that makes players vulnerable to sunlight, just like zombies.
Key Features
- ? Players ignite in direct sunlight when standing under the open sky.
- ⛑ Helmets protect from sun damage but gradually lose durability.
- ? Any other head-slot item may drop to the ground with a configurable chance, leaving the player exposed and burning.
- ? Burning depends on light level: by default, players are safe at
SunLight < 15. This threshold is configurable.
- ? Being in water provides full protection from the sun.
- ⚙️ Flexible configuration:
- adjustable burn duration
- multiple shadow detection modes (
SKYLIGHT, ANYLIGHT, MATERIALCONFIG)
- customizable lists of helmets and transparent blocks
- configurable drop chance for non-helmet head-slot items
Commands
/sunburn on — activates sunburn
/sunburn off — deactivates sunburn
/sunburn status — shows the current config parameters in chat
/sunburn reload — reloads the config
/sb — alias for /sunburn
You must have OP to execute these commands.
Default config
# _____ _ _ _ _ ____ _ _ _____ _ _
# / ____| | | | \ | | _ \| | | | __ \| \ | |
# | (___ | | | | \| | |_) | | | | |__) | \| |
# \___ \| | | | . ` | _ <| | | | _ /| . ` |
# ____) | |__| | |\ | |_) | |__| | | \ \| |\ |
# |_____/ \____/|_| \_|____/ \____/|_| \_\_| \_|
# Main plugin configuration
cooldown-tick-period: 60
# Ticks: 20 - 100
# Defines how frequently the sun strikes
# CAUTION! May reduce performance on lower values!
burning-duration: 100
# Ticks: 0 - 500
# Defines how long the player will burn after each sun strike
# BE AWARE - if player is already burning, this may do nothing
sun-burn-mode: SKYLIGHT
# Mode: SKYLIGHT / ANYLIGHT / MATERIALCONFIG
# Defines how plugin decides if the player is in shadow
# ---
# SKYLIGHT
# Only sky light level matters
# This is set by default
# ---
# ANYLIGHT
# Any light source matters
# This may be too much, be careful
# ---
# MATERIALCONFIG
# Now player is in shadow if there is any opaque block above him
# If all blocks above the player are transparent - he is exposed to the sun strike
# You can change which block is transparent manually (check 'settings' folder)
# In this folder there are 'transparent-materials.yml' and 'transparent-tags.yml'
# ---
min-light-level: 15
# Integer: 0 - 16
# Defines the minimum level of light required to damage the player
# If set to 16 - it never damages; if set to 0 - it damages anywhere
# This parameter does nothing if MATERIALCONFIG mode is set
player-damage: 0
# Integer: 0 - 100
# Defines how much damage player will receive on each sun strike
# BE AWARE - this is direct damage, it does not include potential damage by fire
helmet-damage: 1
# Integer: 0 - 50
# Defines how much damage equipped helmet will receive on each sun strike
# You can manually change list of items that are considered as helmets ('settings' folder)
# In this folder there is "helmet-materials.yml', check its content
non-helmet-drop-chance: 3.5
# Percentage: 0 - 100 (may be decimal, up to 4 digits accuracy)
# Defines how likely equipped non-helmet will drop on each sun strike
# If less than 0 - any non-helmet item (pumkin, player's head, etc.) does not defend from the sun!
# If set to 0 - any non-helmet item defends from the sun unless taken off
# You can manually change list of items that are considered as 'non-protecting' ('settings' folder)
# In this folder there is "helmet-materials.yml', check its content
# Items marked as 'non-protecting' WILL NOT defend from the sun, even if this config is enabled
# Such items will not be dropped from the head slot either (no matter what the drop chance is)
# Items marked as 'perm-protecting' WILL defend from the sun and have no chance to be dropped
water-defence: false
# Boolean: true / false
# Permanently blocks any sun damage if player is in water
Material Config
materials:
- GLASS
- WHITE_STAINED_GLASS
- LIGHT_GRAY_STAINED_GLASS
- GRAY_STAINED_GLASS
- BLACK_STAINED_GLASS
- BROWN_STAINED_GLASS
- RED_STAINED_GLASS
- ORANGE_STAINED_GLASS
- YELLOW_STAINED_GLASS
- LIME_STAINED_GLASS
- GREEN_STAINED_GLASS
- CYAN_STAINED_GLASS
- LIGHT_BLUE_STAINED_GLASS
- BLUE_STAINED_GLASS
- PURPLE_STAINED_GLASS
- MAGENTA_STAINED_GLASS
- PINK_STAINED_GLASS
- GLASS_PANE
- WHITE_STAINED_GLASS_PANE
- LIGHT_GRAY_STAINED_GLASS_PANE
- GRAY_STAINED_GLASS_PANE
- BLACK_STAINED_GLASS_PANE
- BROWN_STAINED_GLASS_PANE
- RED_STAINED_GLASS_PANE
- ORANGE_STAINED_GLASS_PANE
- YELLOW_STAINED_GLASS_PANE
- LIME_STAINED_GLASS_PANE
- GREEN_STAINED_GLASS_PANE
- CYAN_STAINED_GLASS_PANE
- LIGHT_BLUE_STAINED_GLASS_PANE
- BLUE_STAINED_GLASS_PANE
- PURPLE_STAINED_GLASS_PANE
- MAGENTA_STAINED_GLASS_PANE
- PINK_STAINED_GLASS_PANE
- CHAIN
- IRON_BARS
- COPPER_GRATE
- EXPOSED_COPPER_GRATE
- WEATHERED_COPPER_GRATE
- OXIDIZED_COPPER_GRATE
- WAXED_COPPER_GRATE
- WAXED_EXPOSED_COPPER_GRATE
- WAXED_WEATHERED_COPPER_GRATE
- WAXED_OXIDIZED_COPPER_GRATE
- LIGHTNING_ROD
- END_ROD
- TORCH
- SOUL_TORCH
- REDSTONE_TORCH
- LANTERN
- SOUL_LANTERN
- CONDUIT
- COBWEB
- STRING
- TRIPWIRE_HOOK
- REDSTONE_WIRE
- SMALL_AMETHYST_BUD
- MEDIUM_AMETHYST_BUD
- LARGE_AMETHYST_BUD
Helmet config
helmet-materials:
- LEATHER_HELMET
- CHAINMAIL_HELMET
- IRON_HELMET
- GOLDEN_HELMET
- DIAMOND_HELMET
- NETHERITE_HELMET
- TURTLE_HELMET
non-protecting-materials: copy-from-transparent-materials
perm-protecting-materials:
- BEDROCK
评论 0
登录后参与评分
还没有评论,来抢沙发吧