MinecraftManhunt
由 Eric 制作 (yoonicode.com)
Minecraft: TildeTildeTilde
灵感来源于 YouTube 上的 Dream
本项目开源!请在 Github 上查看
出现问题?插件损坏?请查看 常见问题页面 或在此处 报告问题!
工作原理
三个队伍:猎人、逃跑者和观察者。猎人的目标是在逃跑者击败末影龙之前将其击杀。逃跑者必须确保在被击杀前成功击败末影龙!
功能特性
- 指南针追踪:右键点击指南针选择要追踪的目标,随后指南针将指向该逃跑者!
- 传送门追踪:如果逃跑者身处下界,指南针将追踪其最后使用的传送门!
- 队伍分配:自动分配游戏内的
/team 以通过颜色区分玩家!
- Discord 集成:可选择与 Discord 集成以获取额外功能!
- 自动角色分配:根据队伍自动分配 Discord 角色
- 音乐播放器:自动(或手动)在您的 Discord 语音频道中播放反映游戏进程的音乐!
使用说明
- 将 .jar 文件移动到 plugins 文件夹。
- 确保配置文件已更新并包含所有必要选项(更多信息见下文)。
- 使用
/speedrunner、/hunter 和 /spectator 分配角色。
- 如果您想要自动音乐,现在输入
/music auto。
- 输入
/start!
- 领先时间结束后,猎人应能够通过右键点击指南针选择目标来开始追踪逃跑者。
注意:队伍状态不会跨服务器会话保留——如果您关闭服务器,必须重新分配队伍并再次输入 /start。
Discord 设置说明
-
- 从 开发者门户 创建一个 Discord 应用。
- 在“Bots”选项卡下添加一个机器人。
- 记下您的客户端 ID (Client ID)(在“General Information”选项卡中)和令牌 (Token)(在“Bot”选项卡下)。
- 访问以下链接,将
123YourClientID456 替换为您的客户端 ID: https://discord.com/oauth2/authorize?scope=bot&client_id=123YourClientID456&permissions=8
- 将您的客户端 ID 和令牌添加到配置文件中相应的字段。
- 前往您的 Discord 服务器,并根据上方的表格将以下值添加到配置文件中(您可以在 Discord 设置中开启开发者模式后使用
右键 > 复制 ID ):
- 服务器的 ID
- 您希望音乐播放的语音频道的 ID
- 您希望自动分配的猎人、逃跑者和观察者的 Discord 角色 ID
注意:要使自动角色分配生效,每个 Discord 用户在该服务器的昵称必须设置为他们的 Minecraft 用户名。
命令
/speedrunner <username>:分配速通者角色
/hunter <username>:分配猎人角色
/spectator <username>:分配观察者角色
/start:开始比赛
/end:结束比赛
/compass:给自己一个指南针
/music:控制 Discord 音乐
/music list:获取可播放曲目列表。
/music <trackname>:通过昵称播放特定曲目并关闭自动音乐。
/music stop:停止所有正在播放的音乐并关闭自动音乐。
/music auto:开启自动音乐,它会根据游戏事件和猎人/逃跑者之间的距离播放不同的曲目。
/music forceupdate:强制更新音乐以匹配当前的猎人/逃跑者距离。如果正在播放特殊事件曲目,请先使用 /music stop。
配置选项
使用以下选项编辑 plugins/MinecraftManhunt/config.yml 文件:
游戏选项
| 键名 |
描述 |
类型 |
是否必需? |
| headStartDuration |
比赛开始时,猎人获得失明和缓慢效果的持续时间,单位为秒。 |
int |
必需 |
| compassEnabledInNether |
设置为 true 以允许指南针在下界工作。 |
boolean |
可选,默认为 true |
| sendUsageData |
设置为 true 以发送匿名聚合的使用数据,以帮助改进插件。 |
boolean |
可选,默认为 false |
| uuid |
随机生成的 ID,在启用 sendUsageData 时自动分配。请勿修改此字段。 |
string |
不要手动设置 |
额外选项
| 键名 |
描述 |
类型 |
是否必需? |
| setRunnersToSpecOnDeath |
设为 true 可在逃跑者死亡时将其游戏模式设置为旁观者。 |
boolean |
可选,默认为 true |
| huntersColor |
为 hunters(猎人)队伍指定的颜色。 |
string |
可选 |
| runnersColor |
为 runners(逃跑者)队伍指定的颜色。 |
string |
可选 |
| spectatorsColor |
为 spectators(旁观者)队伍指定的颜色。 |
string |
可选 |
| clearRunnerInvOnStart |
设为 true 可在游戏开始时清空逃跑者的物品栏和经验值。 |
boolean |
可选,默认为 false |
| clearHunterInvOnStart |
设为 true 可在游戏开始时清空猎人的物品栏和经验值。 |
boolean |
可选,默认为 false |
| clearItemDropsOnStart |
设为 true 可在游戏开始时清除所有掉落物实体。 |
boolean |
可选,默认为 false |
| setTimeToZero |
设为 true 可在游戏开始时重置游戏时间。 |
boolean |
可选,默认为 true |
| startGameByHit |
设为 true 可在逃跑者击中猎人时开始游戏,而不是使用 /start 命令时开始。 |
boolean |
可选,默认为 false |
| preGameWorldBorder |
设为 true 可在游戏开始前强制启用世界边界(有助于防止玩家跑得太远)。 |
boolean |
可选,默认为 false |
| preGameBorderSize |
如果启用了预游戏世界边界,定义其大小。 |
int |
可选,默认为 100;当 preGameWorldBorder 为 false 时将被忽略 |
Discord 集成
| 键名 |
描述 |
类型 |
是否必需? |
| enableDiscord |
设为 true 以启用 Discord 集成。阅读下文以获取更多信息。 |
boolean |
必需 |
| discordToken |
在此输入你的 Discord 机器人令牌。 |
string |
当 enableDiscord 为 true 时必需 |
| ip |
Discord 状态消息的一部分。将显示为 Playing {value},因此建议将其设置为你服务器的 IP。 |
string |
可选 |
| parseDiscordCommands |
如果你希望通过在 Discord 文本频道发送消息来运行音乐命令,请设为 true。但这意味着你 Discord 服务器中的任何人都可以运行音乐命令。 |
Optional, defaults to false |
|
| discordServerId |
机器人所在的 Discord 服务器 ID。 |
string |
当 enableDiscord 为 true 时必需 |
| musicChannelId |
机器人应播放音乐的语音频道 ID。 |
string |
当 enableDiscord 为 true 时必需 |
| hunterRoleId |
分配给猎人的角色 ID。 |
string |
可选 |
| runnnerRoleId |
分配给逃跑者的角色 ID。 |
string |
可选 |
| spectatorRoleId |
分配给旁观者的角色 ID。 |
string |
可选 |
注意:如果任何角色 ID 缺失或无效,将不会分配任何角色。
权限
| 权限 |
描述 |
推荐级别 |
minecraftmanhunt.hunter |
允许使用 /hunter 命令 |
所有人 |
minecraftmanhunt.speedrunner |
允许使用 /speedrunner 命令 |
所有人 |
minecraftmanhunt.spectator |
允许使用 /spectator 命令 |
所有人 |
minecraftmanhunt.clearteams |
允许使用 /clearteams 命令 |
操作员 |
minecraftmanhunt.start |
允许使用 /start 命令 |
操作员 |
minecraftmanhunt.end |
允许使用 /end 命令 |
操作员 |
minecraftmanhunt.compass |
允许使用 /compass 命令 |
所有人 |
minecraftmanhunt.music |
允许使用 /music 命令。注意,如果在配置中将 processDiscordCommands 设置为 true,也可以通过 Discord 输入音乐命令。 |
所有人 |
minecraftmanhunt.config |
允许更改配置的命令,例如 /setheadstart。 |
操作员 |
音乐队列
这个插件的乐趣之一在于了解每个音乐队列的含义,以获得竞争优势。以下是导致每首曲目播放的原因列表。
距离
音乐的强度取决于逃跑者与追捕者之间的距离。曲目从以下类别中随机选择:
- < 50 格以内:追逐
- < 150 格以内:视线内
- < 300 格以内:潜行
- < 450 格以内:接近
- >= 450 格以外:遥远
此外,如果只有逃跑者在下界(Nether)中,而追捕者不在其中,则会播放一组特定的曲目。
特殊事件
当发生与游戏相关的事件时,会播放特殊的曲目。一些事件包括:
- 逃跑者首次挖掘铁矿石
- 逃跑者首次挖掘钻石矿石
- 追捕者首次制作铁甲装备
- 追捕者和逃跑者互相造成伤害
- 如果猎手和跑者身上的护甲总件数少于 2 件,则播放「追逐」音乐
- 如果身上的护甲总件数多于 2 件,则播放「战斗」音乐
- 一名猎手死亡
- 一名跑者死亡
- 两名玩家都在船里
- 跑者第一次与猪灵交易
- 跑者传送至末地
故障排除
- 自版本 1.2.4 起,server.properties 中的
online-mode 必须设置为 true。
- 如果您正在使用 Discord 集成,请确保服务器的系统时钟设置正确。
- 查看 常见问题页面,或在 问题标签页 报告问题!
制作工具
MinecraftManhunt
Made by Eric (yoonicode.com)
Minecraft: TildeTildeTilde
Inspired by Dream on YouTube
This project is open-source! View on Github
Something wrong? Plugin broken? Check the FAQ Issues page or report the problem here!
How It Works
Three teams: Hunters, Runners, and Spectators Hunters try to kill the runners before they beat the enderdragon. Runners must beat the enderdragon before they get killed once!
Features
- Compass tracking: Right-click with your compass to choose who to track, then the compass will point to that runner!
- Portal tracking: If a runner is in the nether, the compass will track their last-used portal!
- Teams assignment: Automatically assigns in-game
/team to distinguish between players with colors!
- Discord integration: Optionally integrate with Discord for extra features!
- Auto role assignment: Automatically assign Discord roles according to teams
- Music player: Automatically (or manually) play music in your Discord voice channel that mirrors the action happening!
Instructions For Use
- Move the .jar to your plugins folder.
- Make sure your config file is up to date and has all the required options (more info down below).
- Assign roles with
/speedrunner, /hunter, and /spectator.
- If you want automatic music, type
/music auto now.
- Type
/start!
- After the headstart period is over, hunters should be able to start tracking runners by selecting someone to track by right-clicking with their compass.
Note: teams are not persistent between server sessions— if you shut down the server you'll have to re-assign teams and type /start again.
Discord Setup Instructions
-
- Create a Discord app from the Developer Portal.
- Add a Bot under the bots tab.
- Take note of your Client ID (in the General Information tab) and your Token (under the Bot tab).
- Go to the following link, replacing
123YourClientID456 with your client ID: https://discord.com/oauth2/authorize?scope=bot&client_id=123YourClientID456&permissions=8
- Select the Discord server to add your bot to.
- Add your Client ID and Token to the respective fields in the config file.
- Go to your Discord server, and add the following values to the config file, in accordance with the table above (you can
Right Click > Copy ID if you turn on Developer Mode in Discord settings!)
- the ID of your server
- the ID of the voice channel you want your music to play in
- the ID of the hunter, runner, and spectator Discord roles you want to be automatically assigned
Note: For auto-role-assignment to work, each Discord user's nickname for your Server must be set to their Minecraft username.
Commands
/speedrunner <username>: Assign speedrunner role
/hunter <username>: Assign hunter role
/spectator <username>: Assign spectator role
/start: Start the match
/end: End the match
/compass: Give yourself a compass
/music: Controls the Discord music
/music list: Gets a list of available tracks to play.
/music <trackname>: Plays a specific track by nickname and turns off auto-music.
/music stop: Stops all music playing and turns off auto-music.
/music auto: Turns on auto-music, which plays different tracks based on game events and hunter/runner distance.
/music forceupdate: Forces the music to update to match the current hunter/runner distance. Use /music stop first if a special event track is playing.
Configuration Options
Edit the plugins/MinecraftManhunt/config.yml file with the following options:
Game Options
| Key |
Description |
Type |
Required? |
| headStartDuration |
How long the hunters should get blindness and slowness when the match starts, in secs. |
int |
Required |
| compassEnabledInNether |
Set to true to allow the compass to work in the nether. |
boolean |
Optional, defaults to true |
| sendUsageData |
Set to true to send anonymized, aggregated usage data to help improve the plugin. |
boolean |
Optional, defaults to false |
| uuid |
Randomized id that is automatically assigned if sendUsageData is enabled. Please do not touch this field. |
string |
Do not set manually |
Extra Options
| Key |
Description |
Type |
Required? |
| setRunnersToSpecOnDeath |
Set to true to set runners' gamemodes to spectator when they die. |
boolean |
Optional, defaults to true |
| huntersColor |
The color to give to the hunters team. |
string |
Optional |
| runnersColor |
The color to give to the runners team. |
string |
Optional |
| spectatorsColor |
The color to give to the spectators team. |
string |
Optional |
| clearRunnerInvOnStart |
Set to true to clear the runners' inventories and experience when the game starts. |
boolean |
Optional, defaults to false |
| clearHunterInvOnStart |
Set to true to clear the hunters' inventories and experience when the game starts. |
boolean |
Optional, defaults to false |
| clearItemDropsOnStart |
Set to true to clear all Item entities when the game starts. |
boolean |
Optional, defaults to false |
| setTimeToZero |
Set to true to reset the game time when the game starts. |
boolean |
Optional, defaults to true |
| startGameByHit |
Set to true to start the game when a runner hits a hunter, instead of when the /start command is used. |
boolean |
Optional, defaults to false |
| preGameWorldBorder |
Set to true to enforce a world border before the game starts (useful to keep players from running too far). |
boolean |
Optional, defaults to false |
| preGameBorderSize |
States how big the pre-game world border would be, if enabled. |
int |
Optional, defaults to 100; ignored when preGameWorldBorder is false |
Discord Integration
| Key |
Description |
Type |
Required? |
| enableDiscord |
Set to true to turn on Discord integration. Read below for more information. |
boolean |
Required |
| discordToken |
Enter the token of your Discord bot here. |
string |
Required if enableDiscord is true |
| ip |
The Discord status message portion. Will display as Playing {value} so it's recommended that you make this your server's IP. |
string |
Optional |
| parseDiscordCommands |
Set to true if you want music commands to be run by sending a message in Discord text channels. This allows anyone in your Discord server to run music commands, however. |
Optional, defaults to false |
|
| discordServerId |
The ID of your Discord server that the bot is on. |
string |
Required if enableDiscord is true |
| musicChannelId |
The ID of the voice channel that the bot should play music on. |
string |
Required if enableDiscord is true |
| hunterRoleId |
The ID of the role to assign to Hunters. |
string |
Optional |
| runnnerRoleId |
The ID of the role to assign to Runners. |
string |
Optional |
| spectatorRoleId |
The ID of the role to assign to Spectators. |
string |
Optional |
Note: if any of the role IDs are missing or invalid, no roles will be assigned.
Permissions
| Permission |
Description |
Recommended level |
minecraftmanhunt.hunter |
Allow /hunter command |
everyone |
minecraftmanhunt.speedrunner |
Allow /speedrunner command |
everyone |
minecraftmanhunt.spectator |
Allow /spectator command |
everyone |
minecraftmanhunt.clearteams |
Allow /clearteams command |
operators |
minecraftmanhunt.start |
Allow /start command |
operators |
minecraftmanhunt.end |
Allow /end command |
operators |
minecraftmanhunt.compass |
Allow /compass command |
everyone |
minecraftmanhunt.music |
Allow /music command. Note that music commands can also be typed in Discord if processDiscordCommands in config is set to true. |
everyone |
minecraftmanhunt.config |
Allow config-changing commands, such as /setheadstart. |
operators |
Music Queues
Part of the fun of this plugin is learning what each music queue means to get a competitive advantage. Here's a list of what causes each track to play.
Distance
The intensity of the music depends on the distance between the runners and the hunters. Tracks are selected at random from the following categories:
- < 50 blocks away: Chasing
- < 150 blocks away: In Sight
- < 300 blocks away: Stealth
- < 450 blocks away: Approaching
- >= 450 blocks away: Far away
Additionally, there is a set of tracks that play if the runners, but not the hunters, are in the Nether.
Special Events
Special tracks play when events related to the game occur. Some events are:
- The runners mine their first iron ore
- The runners mine a diamond ore
- The hunters craft their first piece of iron armor
- The hunters and runners damage each other
- "Chase" music plays if the fighters have a combined total of less than two pieces of armor
- "Fight" music plays if they have more than two pieces of armor
- A hunter dies
- A runner dies
- Both players are in boats
- A runner trades with a Piglin for the first time
- A runner teleports to the end
Troubleshooting
online-mode in server.properties must be set to true as of version 1.2.4.
- If you are using Discord integration, make sure your server's system clock is set correctly.
- Check the FAQ Issues page, or report a problem on the Issues tab!
Made With
评论 0
登录后参与评分
还没有评论,来抢沙发吧