GambleHearts
赌上你的生命值。赢取大奖,或输得一败涂地。
GambleHearts 为 PvP 增添了赌博机制。击杀某人后,你可以选择稳妥地获得 1 点生命值,或者开启老虎机进行赌博以博取更多回报。可能额外获得 +5 点生命值,也可能失去 5 点,甚至可能一无所获。
工作原理
当你击杀某人时:
- 聊天栏会出现一个可点击的提示
- 点击 GAMBLE(赌博) 打开老虎机图形用户界面 (GUI)
- 点击 SAFE(稳妥) 获得 1 点生命值并继续
赌博环节:
老虎机会转动几秒钟,然后随机得出一个结果。概率是可配置的,但默认情况下:
- +5 点生命值(稀有)
- +3 点生命值(非普通)
- +2 点生命值(几率尚可)
- +1 点生命值(常见)
- 无奖励(常见)
- -1 点生命值(非普通)
- -2 点生命值(稀有)
- -5 点生命值(极稀有)
在赌博期间,你将处于无敌和冻结状态,因此没有人能在你转动老虎机时击杀你。
生命窃取
当有人死亡时,他们会失去 1 点生命值。击杀者有机会通过赌博获取更多生命值。
如果玩家首次生命值降至 0,他们将在重生时拥有 9 点生命值,并收到警告。如果在此之后再次生命值降至 0,他们将被放逐至虚空 (Void)。
虚空维度
虚空是一个独立的世界,被放逐的玩家必须在那里努力挣得回归的机会。这是一个黑暗且难度极高的维度,其中的怪物经过强化(2 倍生命值,1.5 倍伤害)。玩家在此处重生时拥有 10 点生命值,需要完成以下任务:
- 存活 X 分钟(默认为 60 分钟)
- 击杀僵尸(10 只)、苦力怕(5 只)和骷髅(2 只)
- 找到逃生传送门(在出生点 200 格范围内随机生成)
Boss 进度条会显示剩余存活时间。一旦时间耗尽,逃生传送门的位置将显示在动作栏中,你就可以逃生了。
成功逃脱后,你将恢复 10 点生命值,但你处于 最后一条命 (LAST LIFE) 状态——再死一次 = 永久封禁。
命令
/gh accept - 接受待处理的赌博请求(或点击提示)
/gh decline - 获取稳妥的生命值
/gh reload - 重载配置文件(管理员)
/gh voidremove <player> - 将某人从虚空中拉出(管理员)
/gh regenerateportal - 在随机位置生成新的传送门(管理员)
权限
gamblehearts.use - 允许在击杀后进行赌博(默认为 true)
gamblehearts.admin - 使用管理员命令(默认为 op)
gamblehearts.bypass - 绕过虚空限制(默认为 op)
给服务器所有者
PlaceholderAPI 支持:
如果你安装了 PlaceholderAPI,你可以在计分板上显示生命值、死亡次数、虚空进度等信息。该插件添加了诸如 %gamblehearts_hearts%、%gamblehearts_zombies_killed%、%gamblehearts_time_remaining% 等占位符。当玩家不在虚空中时,虚空相关的占位符会返回空值,从而避免计分板显示乱码。
请查阅 WIKI 页面了解 PlaceholderAPI 用法 WIKI
配置:
所有设置均可在 config.yml 中调整:
- 赌博结果的概率和数值
- 获得的/失去的生命值数量
- 虚空生存时间和怪物击杀要求
- 导致放逐前的死亡次数限制
- GUI 动画速度
- 消息和音效
- Boss 进度条的颜色和样式
GambleHearts
Risk your hearts. Win big. Lose everything.
GambleHearts adds a gambling twist to PvP. Kill someone and you get a choice: play it safe for 1 heart, or open the slot machine and gamble for more. Could get +5, could lose 5, could walk away with nothing.
How it works
When you kill someone:
- A clickable prompt appears in chat
- Click GAMBLE to open the slot machine GUI
- Click SAFE to take 1 heart and move on
The gamble:
The slot machine spins for a few seconds then lands on a random outcome. The chances are configurable but by default:
- +5 hearts (rare)
- +3 hearts (uncommon)
- +2 hearts (decent chance)
- +1 heart (common)
- Nothing (common)
- -1 heart (uncommon)
- -2 hearts (rare)
- -5 hearts (very rare)
You're invincible and frozen while gambling so nobody can kill you mid-roll.
Lifesteal
When someone dies, they lose 1 heart. The killer gets the chance to gamble for more.
If a player hits 0 hearts for the first time, they respawn with 9 hearts and a warning. If they hit 0 again after that, they get sent to the Void.
The Void dimension
The Void is a separate world where banished players go to earn their way back. It's a dark, hard-difficulty dimension with buffed mobs (2x health, 1.5x damage). Players spawn with 10 hearts and need to:
- Survive for X minutes (60 by default)
- Kill zombies (10), creepers (5), and skeletons (2)
- Find the escape portal (generates randomly within 200 blocks of spawn)
A boss bar shows survival time remaining. Once time's up, the portal location is shown in the action bar and you can escape.
After escaping, you get 10 hearts back but you're on LAST LIFE - one more death = permanent ban.
Commands
/gh accept - Accept a pending gamble (or click the prompt)
/gh decline - Take the safe hearts
/gh reload - Reload config (admin)
/gh voidremove <player> - Pull someone out of the void (admin)
/gh regenerateportal - Generate a new portal at a random spot (admin)
Permissions
gamblehearts.use - Can gamble after kills (default true)
gamblehearts.admin - Admin commands (default op)
gamblehearts.bypass - Bypass void restrictions (default op)
For server owners
PlaceholderAPI support:
If you have PlaceholderAPI installed, you can display hearts, death counts, void progress, and more on scoreboards. The plugin adds placeholders like %gamblehearts_hearts%, %gamblehearts_zombies_killed%, %gamblehearts_time_remaining%, etc. Void placeholders return empty when players aren't in the void so your scoreboards won't show garbage.
Refer to WIKI page for PlaceholderAPI WIKI
Configuration:
Everything's adjustable in config.yml:
- Gamble outcome chances and values
- Hearts gained/lost
- Void survival time and mob requirements
- Death limits before banishment
- GUI animation speed
- Messages and sounds
- Boss bar colors/styles
评论 0
登录后参与评分
还没有评论,来抢沙发吧