本插件已存档,暂停更新。请不用担心,我们并没有放弃这个插件!
SanityMC 是一款创新的 Minecraft 插件,引入了动态理智系统以增强游戏体验。玩家会根据环境条件、行为以及游戏内事件经历不同水平的理智值——从微妙的听觉提示到强制禁言和生命值损失等严重惩罚。凭借广泛的配置选项、渐进式的理智调整以及与 PlaceholderAPI 的集成,SanityMC 提供了沉浸式的可定制挑战。
加入 Discord 频道,比其他人更早获取更新!
功能特性:
理智追踪与持久化
当前与最大理智值:
每位玩家都有一个当前理智值和最大理智值。默认情况下,两者都从配置文件中定义的数值开始(通常为 100),但玩家可以通过消耗特殊的升级物品来增加他们的最大理智值。
持久化:
当前和最大理智值都会保存到磁盘(分别在 sanityData.yml 和 maxSanityData.yml 中),确保玩家的理智值在会话之间得以保留。
渐进式理智调整
渐进变化:
所有理智变化(无论是获得还是失去理智)都是逐步发生的。例如,如果某个事件导致损失 3 点理智,插件会每隔 0.5 秒扣除 1 点理智,直到总损失完全应用。
数值钳制:
玩家的当前理智值始终被限制在 0 和其最大理智值之间。
环境与游戏内条件
自然流失与恢复:
基础再生:每 10 个刻(0.5 秒),玩家获得 +1 点理智。
饥饿惩罚:如果玩家的饥饿值低于 6,他们每 10 个刻会失去 1 点理智。
环境影响:
黑暗、下雨、洞穴与敌对生物:处于低光照、暴风雨中、洞穴内或靠近敌对生物等条件会触发渐进式的理智流失。
下界与下界传送门:在下界停留或站在下界传送门内会导致额外的理智流失。
特殊事件:
受到伤害:每次玩家受到伤害时,会逐渐失去 0.25 点理智。
苦力怕嘶声:偶尔,当玩家理智值低于或等于 75 时,会播放苦力怕的嘶声(每位玩家每 45 秒仅触发一次),并造成额外的理智流失。
进度达成:完成一项进度奖励玩家随时间推移获得 +20 点理智。
方块交互:破坏铃铛或刷怪笼会逐渐消耗理智,而某些操作如钓鱼则能恢复理智。
阈值效果
随着玩家理智值的降低,不同的效果会被激活:
理智 ≤75:
持续播放踩踏碎石的声音。
偶尔出现的洞穴声音增添了诡异的气氛。
理智 ≤49:
幻觉生物(无 AI 控制的僵尸)短暂生成。
播放石头破碎的声音,并可执行自定义命令(例如发送一条聊天消息)。
理智 ≤24:
出现惊吓信息和随机挥动武器的动作。
执行自定义命令,玩家可能会短暂失明。
理智 <10:
玩家获得虚弱效果并受到随机伤害。
可能出现强制聊天消息,并且玩家被禁止聊天。
理智归零死亡:
当玩家的理智值降至 0 时,插件将其生命值设为 0,导致其死亡并显示自定义死亡信息。
WorldGuard 支持:
目前 WorldGuard 中有 4 个标志位,未来版本将增加更多,其中只有 2 个真正重要:sanity-gain 和 sanity-loss,它们允许在指定区域内进行理智的获取/流失。另外两个标志位是 sanity-death 和 pet-death,如果启用,sanity-death 会在附近玩家死亡时扣除理智,pet-death 会在附近宠物死亡时扣除理智。
该插件完全可通过 config.yml 进行配置,服务器管理员可以在这里启用/禁用各个条件,设置理智获取/流失的时间间隔和数量,并自定义阈值效果的消息和命令。你可以利用 Skript 插件创建自定义命令,从而发挥无限的创意。
PlaceholderAPI 集成允许你在记分板或聊天中显示当前的理智值(例如通过 %sanity_level% 占位符)。
This plugin is archived until further notice. Do not worry, we are not abandoning this plugin!
SanityMC is an innovative Minecraft plugin that introduces a dynamic sanity system to enhance gameplay. Players experience varying sanity levels based on environmental conditions, actions, and in-game events—ranging from subtle auditory cues to severe penalties like forced chat suppression and health loss. With extensive configuration options, gradual sanity adjustments, and integration with PlaceholderAPI, SanityMC offers immersive, customizable challenges.
Join the Discord to get updates earlier than others!
Features:
Sanity Tracking & Persistence
Current & Maximum Sanity:
Each player has a current sanity value and a maximum sanity. By default, both start at a value defined in the config (typically 100), but players can increase their maximum sanity by consuming special upgrade items.
Persistence:
Both current and maximum sanity values are saved to disk (in sanityData.yml and maxSanityData.yml), ensuring that a player’s sanity persists between sessions.
Gradual Sanity Adjustments
Gradual Changes:
All sanity changes (whether gaining or losing sanity) occur gradually. For example, if an event causes a loss of 3 sanity, the plugin subtracts 1 sanity point every 0.5 seconds until the total loss is applied.
Clamping:
A player’s current sanity is always clamped between 0 and their maximum sanity.
Environmental & Gameplay Conditions
Natural Drains & Gains:
Baseline Regeneration: Every 10 ticks (0.5 seconds), players gain +1 sanity.
Hunger Penalty: If a player’s food level falls below 6, they lose 1 sanity every 10 ticks.
Environmental Effects:
Darkness, Rain, Caves, & Hostile Mobs: Conditions such as being in low light, during a storm, in a cave, or near hostile mobs trigger gradual sanity loss.
Nether & Nether Portals: Spending time in the Nether or standing in a Nether portal causes additional sanity loss.
Special Events:
Damage: Every time a player takes damage, they lose 0.25 sanity gradually.
Creeper Hiss: Occasionally, if a player’s sanity is 75 or below, a creeper hiss will play (only once every 45 seconds per player) and cause extra sanity loss.
Advancements: Completing an advancement rewards the player with +20 sanity over time.
Block Interactions: Breaking bells or monster spawners will drain sanity gradually, while certain actions like fishing grant sanity.
Threshold Effects
As a player’s sanity decreases, different effects become active:
Sanity ≤75:
Constant gravel-step sounds play.
Occasional cave sounds add to the eerie atmosphere.
Sanity ≤49:
Hallucination mobs (zombies with no AI) spawn briefly.
Stone break sounds are played, and a custom command (e.g., a chat message) can be executed.
Sanity ≤24:
Jumpscare messages and random weapon swings occur.
A custom command is executed and players may briefly experience blindness.
Sanity <10:
Players receive weakness and take random damage.
Forced chat messages may appear, and they are prevented from chatting.
Death at 0:
When a player’s sanity reaches 0, the plugin sets their health to 0, causing them to die with a custom death message.
Worldguard Support:
Currently there are 4 flags in the worldguard, more coming in future versions, only 2 really matters, sanity-gain, and sanity-loss, which will allow sanity gain/loss in a region. The other two, sanity-death, and pet-death, if enabled, sanity-death will drop sanity if a nearby player dies, pet-death will drop sanity if a nearby pet dies.
The plugin is fully configurable via config.yml, where server admins can enable/disable individual conditions, set the intervals and amounts of sanity gain/loss, and customize threshold effect messages and commands. You can get real creative with the custom commands by creating custom commands using the Skript plugin.
PlaceholderAPI integration allows you to display the current sanity value (e.g., via %sanity_level% placeholders) in scoreboards or chat.
评论 0
登录后参与评分
还没有评论,来抢沙发吧