? 关于 Biomentry
Biomentry 不仅仅是一个生物群系通知插件——它是一个完整的 沉浸式系统,用于 Minecraft。
它让每个生物群系都感觉 鲜活、独特且具有交互性。
从 动态标题 和 环境音效 到 高级条件规则,Biomentry 将环境与玩家的旅程紧密相连——无论是穿越沙漠、探索繁茂洞穴,还是在模组维度中漫游。
对于 RPG、冒险、生存和叙事类服务器 来说,Biomentry 将探索变成了一种体验。
✨ 核心功能
? 智能生物群系检测
- 实时检测 地表和地下 的生物群系。
- 通过 自定义逻辑 增强,以准确识别洞穴(光照等级、方块密度、天空可见度、Y 轴高度、结构)。
- 支持 特殊洞穴生物群系:
lush_caves、deep_dark、dripstone_caves。
?️ 高级洞穴检测
采用多标准评分系统来判断玩家是否真正处于洞穴中,考量因素包括:
- 环境光照等级,
- 玩家周围的方块密度,
- 天空可见度,
- Y 轴高度和自然结构上下文。
这使得即使在人工洞穴或开放峡谷中也能实现精准检测。
?️ 沉浸式视觉通知
- 进入生物群系时显示动画 标题与副标题(淡入、打字机效果等)。
- 支持按生物群系或生物群系组进行 自定义样式。
- 生物群系分组 以减少消息刷屏(例如森林、海洋)。
? 环境音效
- 每个生物群系拥有独特的循环音效:
- 告别重复的雨声 → 拥抱沉浸感。
⚙️ 玩家自定义
/biomentry toggle → 启用/禁用通知。
/biomentry language <en|fr> → 更改语言。
- 偏好设置按玩家保存,提供完全的控制权。
?️ 区域与服务端集成
- WorldGuard 支持 → 在出生点、竞技场、安全区或自定义区域禁用通知。
- 多语言就绪 → 包含英语和法语;提供德语、俄语、西语模板。
- 性能优化 → 智能缓存减少冗余计算。
? v0.3 – Sappling 更新亮点
1️⃣ 高级条件系统
- 全新的
conditions.yml 解锁深度自定义:
- 触发器 → 进入生物群系、地表 vs 洞穴、一天中的时间、玩家状态
- 逻辑门 → 组合
and、or、not 以构建复杂规则
- 条件 → 权限、生命值、护甲、药水效果、世界时间
- 动作 → 执行命令、施加效果、授予临时权限、治疗、给予饱和度
2️⃣ 自定义生物群系与洞穴支持
- 全面支持 模组和数据包生物群系(Terralith、Biomes O’ Plenty 等)。
- 自动识别自定义洞穴,使用
in_cave: true/false。
- 完整生物群系 ID 支持(如
terralith:skylands)确保条件、音效和通知适用于 任何生物群系,无论是原版还是模组添加的。
3️⃣ 增强的沉浸感与稳定性
- 环境音效全面重构。
- 更智能的洞穴检测。
- 可靠的 Boss 条与通知。
- Bug 修复 → 条件动作现在始终能正确执行。
? 为什么选择 Biomentry?
Minecraft 中的生物群系是 故事、氛围和身份的象征。
Biomentry 赋予它们声音。
非常适合希望实现以下目标的服务器:
- 沉浸感 → RPG、半角色扮演、冒险世界
- 叙事工具 → 进入区域时触发事件
- 氛围营造 → 环境音效与视觉效果
- 自定义 → 高级配置与玩家偏好设置
有了 Biomentry,踏入每一个新生物群系——无论是地表还是洞穴,原版还是模组——都感觉像是翻开新篇章。
配置文件
config.yml
#Biomentry 配置
# 常规设置
general:
language: 'en' # 插件语言:'fr' (法语) 或 'en' (英语)
enableParticles: false # 全局启用或禁用粒子效果
enableCommands: false # 全局启用或禁用命令执行
enableAmbientSounds: true # 全局启用或禁用环境音效
# 标题显示设置
titleInfo:
fadeIn: 10 # 淡入时间(以刻为单位)
stay: 70 # 显示持续时间(以刻为单位)
fadeOut: 20 # 淡出时间(以刻为单位)
animationType: 'fade' # 动画类型:'fade'(淡入)、'typewriter'(打字机)或 'slide'(滑动)
typewriterSpeed: 2 # 打字机速度(每刻字符数)
# 显示管理的优先级系统
priority:
enabled: true # 启用优先级系统
level: 'medium' # 优先级级别:'low'(低)、'medium'(中)、'high'(高)
pauseOnOtherPlugins: true # 当其他插件显示标题时暂停生物群系显示
resumeDelay: 40 # 在其他插件完成后恢复显示的延迟(以刻为单位)
checkInterval: 5 # 检查其他插件活动的间隔(以刻为单位)
# 生物群系组 —— 同一组内的生物群系之间转换时不会触发通知
# 例如在桦木林内部移动
biomeGroups:
# 桦木林
- ['birch_forest', 'old_growth_birch_forest']
# 泰加林
- ['taiga', 'old_growth_spruce_taiga', 'old_growth_pine_taiga', 'snowy_taiga']
# 深色森林
- ['dark_forest']
# 海洋
- ['ocean', 'deep_ocean', 'warm_ocean', 'lukewarm_ocean', 'cold_ocean', 'frozen_ocean', 'deep_cold_ocean', 'deep_frozen_ocean', 'deep_lukewarm_ocean']
# 沙漠
- ['desert']
# 山脉与山峰
- ['windswept_hills', 'windswept_forest', 'windswept_gravelly_hills', 'windswept_savanna', 'jagged_peaks', 'frozen_peaks', 'stony_peaks']
# 洞穴
- ['deep_dark', 'dripstone_caves', 'lush_caves']
# 荒地
- ['badlands', 'eroded_badlands', 'wooded_badlands']
# 热带草原
- ['savanna', 'savanna_plateau', 'windswept_savanna']
# 禁用通知的 WorldGuard 区域
disabledRegions:
- spawn
- safe_zone
- pvp_arena
# 完全禁用此插件的世界列表(此处仅为示例)
disabled-worlds:
- "a_minigame_world"
- "world_the_end"
biomes.yml
# 生物群系配置文件的摘录
# 在此处定义每个生物群系的 BEHAVIOR(行为)。
# 标题和副标题的实际文本位于语言文件中。
biomes:
plains:
title: 'biomes.plains.title'
subtitle: 'biomes.plains.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_GRASS_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
forest:
title: 'biomes.forest.title'
subtitle: 'biomes.forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_CHERRY_WOOD_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
dark_forest:
title: 'biomes.dark_forest.title'
subtitle: 'biomes.dark_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'AMBIENT_CAVE'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
birch_forest:
title: 'biomes.birch_forest.title'
subtitle: 'biomes.birch_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_CHERRY_WOOD_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
old_growth_birch_forest:
title: 'biomes.old_growth_birch_forest.title'
subtitle: 'biomes.old_growth_birch_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_CHERRY_WOOD_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
flower_forest:
title: 'biomes.flower_forest.title'
subtitle: 'biomes.flower_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_GRASS_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
'clifftree:desert_cliff':
title: 'biomes.clifftree.desert_cliff.title'
subtitle: 'biomes.clifftree.desert_cliff.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_SAND_BREAK'
bossBar:
color: 'YELLOW'
style: 'SOLID'
duration: 120
particle:
type: "DUST"
count: 15
offset: 0.6
speed: 0.1
conditions.yml
# Biomentry 条件系统的配置文件。
# 每个“规则”定义一个触发器、条件和动作。
rules:
# --- 示例 1:简单的 “IF ... AND ...” 条件 (与) ---
# 玩家在沙漠中会获得速度效果,但仅当是白天且拥有权限时。
desert_speed_day:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:desert'
conditions:
and: # “and” 是一个条件列表,所有条件必须全部为真
- type: 'WORLD_TIME'
operator: 'LESS_THAN'
value: 12500 # 日落之前
- type: 'HAS_PERMISSION'
permission: 'biomentry.condition.desert_speed'
actions:
- type: 'APPLY_EFFECT'
effect: 'SPEED'
duration: 600 # 以刻为单位 (30秒)
amplifier: 0
# --- 示例 2:“IF IN CAVE” 条件 ---
# 如果玩家进入任何洞穴并拥有权限,则获得火把。
generic_cave_torch:
trigger:
type: 'ENTER_BIOME'
in_cave: true # 此规则仅在玩家处于洞穴内时生效。
conditions:
or: # 至少一个条件必须为真
- type: 'HAS_PERMISSION'
permission: 'biomentry.condition.torch_giver'
- type: 'HAS_EFFECT'
effect: 'NIGHT_VISION'
actions:
- type: 'RUN_COMMAND'
command: 'give %player_name% minecraft:torch 4'
- type: 'SEND_MESSAGE'
message: '<gray>You feel like an explorer in these caves.</gray>'
# --- 示例 3:“IF NOT ...” 条件 (非) ---
# 如果玩家在全套钻石盔甲的情况下进入下界,则会收到警告。
nether_warning:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:nether_wastes'
in_cave: false # 仅适用于下界的“地表”
conditions:
not: # “not” 反转其包含的条件
type: 'HAS_ARMOR'
material: 'DIAMOND'
pieces: 4 # 全套盔甲需要4件
actions:
- type: 'SEND_MESSAGE'
message: '<#FF6347><b>Warning!</b> The Nether is dangerous without proper equipment.'
--- 示例 4:“既非……也非……”条件(NOT + OR)---
如果玩家既没有再生效果,也没有抗性提升效果,那么在深暗之城中会受到伤害。
deep_dark_danger:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:deep_dark'
conditions:
# 逻辑为:NOT (A OR B)
not:
or:
- type: 'HAS_EFFECT'
effect: 'REGENERATION'
- type: 'HAS_EFFECT'
effect: 'RESISTANCE'
actions:
- type: 'APPLY_EFFECT'
effect: 'WITHER' # 施加凋零效果
duration: 100
amplifier: 0
- type: 'SEND_MESSAGE'
message: '<#8B0000>你感到一股邪恶的存在正在吸取你的生命力...'
--- 示例 5:请求的操作 ---
在进入特定生物群系时给予临时权限以及生命值和饱和度加成。
ancient_forest_bonus:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:old_growth_pine_taiga'
conditions:
# 无条件,对所有人触发
and: []
actions:
- type: 'ADD_PERMISSION'
permission: 'essentials.fly'
duration: 300 # 单位为秒(5分钟)
- type: 'HEAL'
amount: 4.0 # 单位为半颗心(此处为2颗心)
- type: 'GIVE_SATURATION'
amount: 5.0
- type: 'SEND_MESSAGE'
message: '<#2E8B57>远古森林的力量在你体内流淌。'
</details>
? About Biomentry
Biomentry is not just a biome notifier – it’s a full immersion system for Minecraft.
It makes each biome feel alive, unique, and reactive.
From animated titles and ambient sounds to advanced conditional rules, Biomentry connects the environment to the player’s journey — whether they’re crossing deserts, exploring lush caves, or wandering in modded dimensions.
Perfect for RPG, adventure, survival, and storytelling servers, Biomentry turns exploration into an experience.
✨ Core Features
? Intelligent Biome Detection
- Real-time detection above ground and underground.
- Enhanced with custom logic for accurate cave recognition (light levels, block density, sky access, Y-level, structures).
- Supports special cave biomes:
lush_caves, deep_dark, dripstone_caves.
?️ Advanced Cave Detection
A multi-criteria scoring system determines whether a player is truly in a cave, factoring in:
- ambient light level,
- block density around the player,
- sky access,
- Y-level and natural structure context.
This allows accurate detection even in artificial caves or open ravines.
?️ Immersive Visual Notifications
- Animated titles & subtitles (fade, typewriter, etc.) on biome entry.
- Customizable styles per biome or biome group.
- Biome grouping to reduce message spam (e.g., forests, oceans).
? Ambient Sounds
- Unique looping sounds per biome:
- Desert camels
- Jungle parrots
- Swamp frogs
- Mountain winds
- Goodbye repetitive rain noise → hello immersion.
⚙️ Player Customization
/biomentry toggle → Enable/disable notifications.
/biomentry language <en|fr> → Change language.
- Preferences saved per player for full control.
?️ Region & Server Integration
- WorldGuard support → disable notifications in spawn, arenas, safe zones, or custom areas.
- Multi-language ready → English & French included; templates for German, Russian, Spanish.
- Optimized performance → smart caching reduces redundant calculations.
? New in v0.3 – Sappling Update
1️⃣ Advanced Condition System
- Brand-new
conditions.yml unlocks deep customization:
- Triggers → biome entry, surface vs cave, time of day, player stats
- Logic gates → combine
and, or, not for complex rules
- Conditions → permissions, health, armor, potion effects, world time
- Actions → run commands, apply effects, grant temporary permissions, heal, give saturation
2️⃣ Custom Biome & Cave Support
- Full support for modded and datapack biomes (Terralith, Biomes O’ Plenty, etc.).
- Custom caves recognized automatically using
in_cave: true/false.
- Full biome ID usage (
terralith:skylands) ensures conditions, sounds, and notifications apply to any biome, vanilla or modded.
3️⃣ Enhanced Immersion & Stability
- Ambient sounds fully overhauled.
- Smarter cave detection.
- Reliable Boss Bars & notifications.
- Bug fixes → condition actions now always execute correctly.
? Why Biomentry?
Biomes in Minecraft are stories, atmospheres, and identities.
Biomentry gives them a voice.
Ideal for servers that want:
- Immersion → RPG, semi-RP, adventure worlds
- Storytelling tools → triggers when entering zones
- Atmosphere → ambient sounds & visuals
- Customization → advanced configs & player preferences
With Biomentry, every step into a new biome — surface or cave, vanilla or modded — feels like a new chapter.
Config files
config.yml
#configuration for Biomentry
# General settings
general:
language: 'en' # Plugin language: 'fr' (French) or 'en' (English)
enableParticles: false # Enable or disable particle effects globally
enableCommands: false # Enable or disable command execution globally
enableAmbientSounds: true # Enable or disable ambient sounds globally
# Title display settings
titleInfo:
fadeIn: 10 # Fade-in time (in ticks)
stay: 70 # Display duration (in ticks)
fadeOut: 20 # Fade-out time (in ticks)
animationType: 'fade' # Animation type: 'fade', 'typewriter', or 'slide'
typewriterSpeed: 2 # Typewriter speed (characters per tick)
# Priority system for display management
priority:
enabled: true # Enable priority system
level: 'medium' # Priority level: 'low', 'medium', 'high'
pauseOnOtherPlugins: true # Pause biome displays when other plugins show titles
resumeDelay: 40 # Delay (in ticks) before resuming after other plugin finishes
checkInterval: 5 # Interval (in ticks) to check for other plugin activities
# Biome groups – Biomes in the same group won’t trigger a notification
# when transitioning between each other
biomeGroups:
# Birch forests
- ['birch_forest', 'old_growth_birch_forest']
# Taigas
- ['taiga', 'old_growth_spruce_taiga', 'old_growth_pine_taiga', 'snowy_taiga']
# Dark forests
- ['dark_forest']
# Oceans
- ['ocean', 'deep_ocean', 'warm_ocean', 'lukewarm_ocean', 'cold_ocean', 'frozen_ocean', 'deep_cold_ocean', 'deep_frozen_ocean', 'deep_lukewarm_ocean']
# Deserts
- ['desert']
# Mountains and peaks
- ['windswept_hills', 'windswept_forest', 'windswept_gravelly_hills', 'windswept_savanna', 'jagged_peaks', 'frozen_peaks', 'stony_peaks']
# Caves
- ['deep_dark', 'dripstone_caves', 'lush_caves']
# Badlands
- ['badlands', 'eroded_badlands', 'wooded_badlands']
# Savannas
- ['savanna', 'savanna_plateau', 'windswept_savanna']
# WorldGuard regions where notifications are disabled
disabledRegions:
- spawn
- safe_zone
- pvp_arena
# List of worlds where the plugin is completely disabled (just exemple here)
disabled-worlds:
- "a_minigame_world"
- "world_the_end"
biomes.yml
# And extract of the biome configurations
# Here you define the BEHAVIOR of each biome.
# The actual text for titles and subtitles is in the language files.
biomes:
plains:
title: 'biomes.plains.title'
subtitle: 'biomes.plains.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_GRASS_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
forest:
title: 'biomes.forest.title'
subtitle: 'biomes.forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_CHERRY_WOOD_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
dark_forest:
title: 'biomes.dark_forest.title'
subtitle: 'biomes.dark_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'AMBIENT_CAVE'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
birch_forest:
title: 'biomes.birch_forest.title'
subtitle: 'biomes.birch_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_CHERRY_WOOD_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
old_growth_birch_forest:
title: 'biomes.old_growth_birch_forest.title'
subtitle: 'biomes.old_growth_birch_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_CHERRY_WOOD_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
flower_forest:
title: 'biomes.flower_forest.title'
subtitle: 'biomes.flower_forest.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_GRASS_BREAK'
commands: []
particle:
type: "VILLAGER_HAPPY"
count: 10
offset: 0.5
speed: 0.1
bossBar:
color: 'WHITE'
style: 'SOLID'
ambient_sound:
sound: 'ambient.weather.rain'
volume: 0.1
pitch: 1.0
delay: 200
'clifftree:desert_cliff':
title: 'biomes.clifftree.desert_cliff.title'
subtitle: 'biomes.clifftree.desert_cliff.subtitle'
display: 'actionbar'
animationType: 'typewriter'
separator: ' | '
sound: 'BLOCK_SAND_BREAK'
bossBar:
color: 'YELLOW'
style: 'SOLID'
duration: 120
particle:
type: "DUST"
count: 15
offset: 0.6
speed: 0.1
conditions.yml
# Configuration file for the Biomentry condition system.
# Each "rule" defines a trigger, conditions, and actions.
rules:
# --- EXAMPLE 1: Simple "IF ... AND ..." condition (AND) ---
# The player receives speed in the desert, but only if it's daytime AND they have the permission.
desert_speed_day:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:desert'
conditions:
and: # "and" is a list of conditions that must ALL be true
- type: 'WORLD_TIME'
operator: 'LESS_THAN'
value: 12500 # Before sunset
- type: 'HAS_PERMISSION'
permission: 'biomentry.condition.desert_speed'
actions:
- type: 'APPLY_EFFECT'
effect: 'SPEED'
duration: 600 # in ticks (30 seconds)
amplifier: 0
# --- EXAMPLE 2: "IF IN CAVE" condition ---
# The player receives a torch if they enter any cave and have the permission.
generic_cave_torch:
trigger:
type: 'ENTER_BIOME'
in_cave: true # This rule only applies when the player is in a cave.
conditions:
or: # AT LEAST ONE condition must be true
- type: 'HAS_PERMISSION'
permission: 'biomentry.condition.torch_giver'
- type: 'HAS_EFFECT'
effect: 'NIGHT_VISION'
actions:
- type: 'RUN_COMMAND'
command: 'give %player_name% minecraft:torch 4'
- type: 'SEND_MESSAGE'
message: '<gray>You feel like an explorer in these caves.</gray>'
# --- EXAMPLE 3: "IF NOT ..." condition (NOT) ---
# The player receives a warning if they enter the Nether WITHOUT full diamond armor.
nether_warning:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:nether_wastes'
in_cave: false # Only applies on the "surface" of the Nether
conditions:
not: # "not" inverts the condition it contains
type: 'HAS_ARMOR'
material: 'DIAMOND'
pieces: 4 # 4 pieces for full armor
actions:
- type: 'SEND_MESSAGE'
message: '<#FF6347><b>Warning!</b> The Nether is dangerous without proper equipment.'
# --- EXAMPLE 4: "IF NEITHER ... NOR ..." condition (NOT + OR) ---
# The player takes damage in the Deep Dark if they have NEITHER the Regeneration effect, NOR the Resistance effect.
deep_dark_danger:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:deep_dark'
conditions:
# The logic is: NOT (A OR B)
not:
or:
- type: 'HAS_EFFECT'
effect: 'REGENERATION'
- type: 'HAS_EFFECT'
effect: 'RESISTANCE'
actions:
- type: 'APPLY_EFFECT'
effect: 'WITHER' # Applies the Wither effect
duration: 100
amplifier: 0
- type: 'SEND_MESSAGE'
message: '<#8B0000>You feel a malevolent presence draining your life...'
# --- EXAMPLE 5: Requested Actions ---
# Gives a temporary permission and health/saturation upon entering a specific biome.
ancient_forest_bonus:
trigger:
type: 'ENTER_BIOME'
biome: 'minecraft:old_growth_pine_taiga'
conditions:
# No conditions, triggers for everyone
and: []
actions:
- type: 'ADD_PERMISSION'
permission: 'essentials.fly'
duration: 300 # in seconds (5 minutes)
- type: 'HEAL'
amount: 4.0 # in half-hearts (here, 2 hearts)
- type: 'GIVE_SATURATION'
amount: 5.0
- type: 'SEND_MESSAGE'
message: '<#2E8B57>The strength of the ancient forest flows through you.'
评论 0
登录后参与评分
还没有评论,来抢沙发吧