⚔️ JamOnToast's Hunger Games ⚔️

与朋友们一起体验现代版的生存竞技游戏!此插件提供了所需工具,只需稍作准备,即可将你想象中的任何饥饿游戏地图转化为完全可玩的竞技场。
功能
自定义竞技场
调整并定制竞技场的尺寸、战利品、补给点、终局机制等更多内容!几乎可以将任何你想要的地图变为完全可玩的状态。
完整的观战者系统
观战者可以传送至存活的玩家身边,并且拥有一个可选的商店,他们可以使用在游戏中赚取的资金来“赞助”剩余的玩家,并给予他们有用的物品!
陨落时刻
可选的夜间展示功能,显示每天死亡的玩家名单!
基于“分段组”的游戏内事件
通过分段效果将特定电影中的场景带入你的游戏中 ;)!这些效果可以设置为按顺序触发或单独触发!
注意:目前优化程度极低,某些效果可能会导致服务器崩溃。请自行承担风险使用,直到未来的更新带来更稳定的表现!
入门指南
设置好竞技场后,你可以在 arenas.yml 中对其进行修改。在此之前,你需要先创建一个竞技场。
| 命令 |
描述 |
| /hgarena create |
创建竞技场 |
此命令需要一些基本信息:/hgarena create <name> <type> <radius> <height> <maximum number of players>。“Type”指的是 circle(圆形) 或 square(方形),这是竞技场接受的两种形状。对于方形竞技场,半径是按直线计算而非对角线。竞技场的中心坐标将记录为你当前的坐标。
如果出错,请使用 /hgarena delete <name> 删除。使用 /hgarena list 查看你的竞技场是否已创建成功!
竞技场创建完成后,在开始游玩之前还有一些工作要做。
进入 arenas.yml,首先输入竞技场大厅的信息。这是玩家必须所在的位置才能加入游戏。其信息与竞技场本身大致相同:中心坐标、区分是圆形还是方形大厅,以及大厅的半径和高度。
接下来,填写玩家的出生点,格式如下:'1': 0.5,0,0.5,从 1 开始直到该竞技场设定的最大玩家数量。建议为每个潜在玩家设置一个独立的出生点,具体取决于地图,可能已经有指定的位置,你只需要获取它们的坐标即可。
箱子位置部分通常位于底部。虽然也可以按照以下格式手动添加坐标:'1': 565,58,510,但使用以下命令会更简单。
| 命令 |
描述 |
| /hgarena chest add |
向竞技场添加箱子位置 |
add 命令也需要一些信息:/hgarena chest add <type> <arena name> [x] [y] [z]。这里的“type”指的是箱子是“normal(普通)”、“center(中心)”还是“prime(高级)”,主要区别在于它们使用的战利品表和补给时间。
使用插件默认的战利品表时,普通箱子通常包含较低品质的物品,但有少量几率出现高品质物品;中心箱子包含低至中等品质的物品,没有稀有物品;高级箱子则包含更好、更稀有的物品。所有箱子的品质在补给战利品表中会按比例提升。
箱子的坐标是可选的,取决于你是否身处你要添加箱子的竞技场内部。如果你不想输入坐标且身处相关竞技场内部,省略命令中的坐标会使箱子的位置设定为你的当前坐标。
如果出错,/hgarena chest remove 的工作原理完全相同。你可以使用 /hgarena chest list <type> <arena name> 查看竞技场中某类类型的所有箱子。点击坐标即可传送至该箱子!
自定义
几乎所有内容都可以自定义!以下是让你的竞技场和游戏独一无二的方法:
战利品表
JoT Hunger Games 有三种主要的箱子类型,你可以将它们散布在你的地图中:普通、中心和高级。
初始填充和补给的默认战利品表已内置代码,但你可以轻松替换为自己定制的版本!你可以编辑插件文件夹中 loot_table 文件夹内的战利品表,或者完全替换它们。只要确保文件名完全一致即可!
如果出错,或者只是想恢复默认战利品表,删除该战利品表文件即可。重启后它会被重新替换。
注意!目前,由于数据包和插件加载顺序的交互方式,你必须重启服务器两次,插件才能识别任何战利品表的更改。
竞技场与游戏事件
所有竞技场数据均可在插件文件夹内的 arenas.yml 文件中编辑。
时间与天气
要更改游戏开始的时间,只需输入以刻(ticks)为单位的一天中的时间。默认值为 6000,大约是正午。天气输入的选项有三个:“clear”(晴朗)、“rain”(雨)和 “storm”(雷暴)。
宽限期
如果您希望您的游戏拥有一个宽限期,在此期间无法进行战斗,您可以调整该宽限期的时长。如果不需要宽限期,请将长度设置为 0。
终局及其他事件
世界边界、高亮玩家和定位栏都是您可以启用或禁用的终局事件,同时您还可以设置它们的激活时间。
对于世界边界事件(即边界收缩),您可以设置起始时间、收缩所需的时间、最终边界的半径大小,以及该半径是以竞技场中心为圆心还是以竞技场内随机点为圆心。
高亮玩家和定位栏事件都可以帮助玩家互相定位,从而加快终局的进程,在较大的地图上效果更为明显。高亮玩家功能会为所有玩家施加发光效果,而定位栏功能则会启用定位栏,插件在游戏开始时默认会关闭此功能。
您还可以更改箱子补充的时机,以及每种箱子的数量(如果有)。
您可以选择是否通过动作栏公告或侧边栏计时器向玩家广播这些事件。默认情况下,这两种方法均处于启用状态。
分段效果也可以作为游戏事件触发!如果您的竞技场配置文件中没有“linked segment group:”字段,请添加它,并输入您希望与竞技场关联的分段组名称。建议分段效果组的尺寸和位置与竞技场保持一致,这使得该方法在方形竞技场中可能无法完美生效。
所有命令
| /hgarena start | <竞技场名称> [玩家数量] | 在竞技场中开始一局游戏。如果未指定玩家数量,且竞技场大厅内至少有一名玩家,系统将自动从大厅范围内随机选择玩家,直至达到该竞技场的最大玩家上限,从而创建一局游戏。 |
| /hgarena stop | <竞技场名称> | 停止在指定竞技场中运行的游戏。 |
| /hgarena create | <竞技场名称> <类型> <半径> <高度> <最大玩家数> | 使用提供的信息创建一个竞技场。仅接受“circle”(圆形)和“square”(方形)两种类型。 |
| /hgarena delete | <竞技场名称> | 删除指定的竞技场。 |
| /hgarena list | | 列出所有竞技场。 |
| /hgarena chest add | <类型> <竞技场名称> [x] [y] [z] | 在竞技场中创建指定类型的箱子。如果未指定坐标,且使用该命令的玩家位于竞技场内,则使用玩家的坐标。 |
| /hgarena chest remove | <类型> <竞技场名称> [x] [y] [z] | 删除指定类型的箱子所在的竞技场。如果未指定坐标,且使用命令的玩家身处竞技场内,则使用该玩家的坐标。 |
| /hgarena chest refill | <type> [竞技场名称] | 填充指定类型的所有箱子。如果未指定竞技场,且执行命令的玩家身处某个竞技场中,则使用该竞技场。 |
| /hgarena chest list | <type> <竞技场名称> | 列出指定竞技场中所有指定类型的箱子。如果未指定竞技场,且使用命令的玩家位于某个竞技场内,则默认使用该竞技场。 |
| /hgsegmentgroup create | <组名称> <半径> <分段数量> <高度> [内半径] | 使用提供的信息创建一个分段组。“内半径”是可选的,用于创建环形(甜甜圈形)的分段组,而非实心圆形。 |
| /hgsegmentgroup delete | <组名称> | 删除指定的分段组。 |
| /hgsegmentgroup list | | 列出所有分段组。 |
| /hgsegmentgroup clearCache | <组名> | 清除分段组存储的所有数据(例如实体和方块),用于解决异常或服务器卡顿问题。紧急命令。 |
| /hgsegmentfill | <组名称> <分段编号> <方块类型> [层] | 用指定方块填充分段组中的所有分段(或单个分层)。确定正确的分段编号可能需要一些试错。 |
| /hgsegmenteffect start | <组名> <分段编号> <效果名称> | 开始运行指定分段中的指定效果。 |
| /hgsegmenteffect stop | <组名> <分段编号> <效果名称> | 取消运行指定分段中的指定效果。 |
| /hgsegmenteffect list | [active] | 列出所有可能的区块效果。如果指定了 [active],则仅列出当前激活的效果。 |
⚔️ JamOnToast's Hunger Games ⚔️

Survival games with your friends for the modern era! This plugin gives you the tools to, with a just little bit of prep, turn any hunger games map you can imagine into a fully playable arena.
Features
Customisable Arenas
Tweak and tailor your arena's dimensions, loot, refills, endgame, and more! Make almost any map you want fully playable.
Full Spectator Implementation
Spectators have the ability to teleport to alive players, and an optional shop where they can spend money earned through playing to "sponsor" remaining players and give them helpful items!
The Fallen
Optional nightly display of the players that have died each day!
In-Game Events with "Segment Groups"
Bring scenes from a certain movie ;) to your games with segment effects that can be set to activate in a circuit or individually!
NOTE: currently HIGHLY unoptimised, and certain effects may crash your server. Use at your own peril, until future updates bring more stability!
Getting Started
Once you have an arena set up, you can modify it in arenas.yml. Before that, you have to create one.
| Command |
Description |
| /hgarena create |
Creates an arena |
This command requires some basic info: /hgarena create <name> <type> <radius> <height> <maximum number of players>. "Type" refers to either circle or square, the two accepted shapes for arenas. In the case of square arenas, the arena radius is calculated on a straight line, not a diagonal. The arena's center will be logged as your current coordinates.
If you make a mistake, use /hgarena delete <name>. Use /hgarena list to see if your arena was created!
Once your arena has been created, there's still some work to do before you can start playing.
Inside arenas.yml, start by entering the information for the arena's lobby. This is the location that players will need to be in in order to be able to join a game. The information is generally the same as for the arena itself: coordiantes for the center, a distinction between whether the lobby is a circle or a square, and the lobby's radius and height.
Next, fill out the spawnpoints for players in this format: '1': 0.5,0,0.5, from 1 until whatever your maximum number of players for that arena is. It is recommended to set a distinct spawnpoint for each potential player, and depending on the map they may already be designated locations you just need to get the coordinates of.
The chest locations section should be located near the bottom. Though it is possible to manually add coordinates here as well following this format: '1': 565,58,510, it is easier to use the following command.
| Command |
Description |
| /hgarena chest add |
Adds a chest location to an arena |
The add command requires some info too: /hgarena chest add <type> <arena name> [x] [y] [z]. Here, "type" refers to whether the chest is a "normal", "center", or "prime" chest, the only real distinction being which loot table and which refill times the chest will use.
With the plugin default loot tables, normal chests have generally lower quality items but a small chance of good items, center chests have low-to-mid-range items with no chance of rare items, and prime chests have better, rare items. The quality for all chests increases proportionally in the refill loot tables.
The coordinates for the chest are optional, depending on if you are inside the arena you are adding a chest to. If you prefer not to type in coordinates, and are inside the arena in question, leaving out the coordinates from the command will cause the chest's location to be at your coordinates.
If you make a mistake, /hgarena chest remove works in the exact same way. You can use /hgarena chest list <type> <arena name> to see all chests of a certain type in an arena. Click on the coordinates to teleport to the chest!
Customisation
Almost everything can be customised! Here's how you can make your arenas and games your own:
Loot Tables
JoT Hunger Games has three main types of chests you can scatter throughout your maps: normal, center, and prime.
Default loot tables for both initial fills and refills are coded in, but you can easily replace them with your own! Either edit the loot tables found in the loot_table folder located in the plugin folder, or replace them entirely. Just make sure the file name is exactly the same!
If you make a mistake, or simply want the default loot table back, delete the loot table. It will be replaced on a restart.
ATTENTION! Currently, you must restart your server TWICE for any loot table changes to be recognised by the plugin, due to how datapack and plugin load orders interact.
Arenas and Game Events
All arena data can be edited from the arenas.yml file, found within your plugin's folder.
Time and Weather
To change the time a game starts at, simply input the time of day in ticks. The default is 6000, which is about noon. The three options for weather inputs are "clear", "rain", and "storm".
Grace period
If you would like your games to have a grace period, where no violence is possible, you can tweak how long you want that to be. To have no grace period, set the length to 0.
Endgame and Other Events
World border, highlight players, and locator bar are all endgame events that you can enable or disable, as well as being able to set the activation time.
For the world border event, where the border shrinks, you can set the start time, how long it will take to shrink, how big the final border radius will be, and if that radius will be centred on your arena's center or a random point within the arena.
The highlight players and locator bar event both help players locate each other to speed up the endgame, and are more helpful on larger maps. Highlight players will apply glowing to all players, while locator bar will enable the locator bar, which the plugin turns off by default whenever a game starts.
You can also change when chest refills will occur, as well as how many of each there will be, if any.
You can choose whether these events will be broadcast to the player, either through action bar announcements or through the sidebar timer. Be default both methods are set to be enabled.
Segment effects can be triggered as game events as well! If there isnt a "linked segment group:" field in your arena config, add it, and type in the name of the segment group you want to be linked with your arena. It is recommended to have the segment effect group be the same dimensions and location as your arena, making this not work quite as well with square arenas.
All Commands
| Command |
Arguments |
Description |
| /hgarena start |
<arena name> [player count] |
Starts a game in an arena. If a player count is not specified, and there is at least one player in the arena lobby, a game will be created by randomly selecting all players within the lobby bounds up until the arena's player limit. |
| /hgarena stop |
<arena name> |
Stops the game running in the specified arena. |
| /hgarena create |
<arena name> <type> <radius> <height> <maximum number of players> |
Creates an arena with the provided information. The only accepted "types" of arena are "circle" and "square". |
| /hgarena delete |
<arena name> |
Deletes the indicated arena. |
| /hgarena list |
|
Lists all arenas. |
| /hgarena chest add |
<type> <arena name> [x] [y] [z] |
Creates a chest of the specified type in an arena. If coordinates are not specified and the player using the command is inside an arena, the player's coordinates are used instead. |
| /hgarena chest remove |
<type> <arena name> [x] [y] [z] |
Deletes a chest of the specified type an arena. If coordinates are not specified and the player using the command is inside an arena, the player's coordinates are used instead. |
| /hgarena chest refill |
<type> [arena name] |
Refills all chests of the specified type in an arena. If an arena is not specified, and the player using the command is inside an arena, that arena will be used instead. |
| /hgarena chest list |
<type> <arena name> |
Lists all chests of the specified type in an arena. If an arena is not specified, and the player using the command is inside an arena, that arena will be used instead. |
| /hgsegmentgroup create |
<group name> <radius> <number of segments> <height> [inner radius] |
Creates a segment group with the provided information. "Inner radius" is optional, and used to create a group with a donut shape, as opposed to a whole circle. |
| /hgsegmentgroup delete |
<group name> |
Deletes the specified segment group. |
| /hgsegmentgroup list |
|
Lists all segment groups. |
| /hgsegmentgroup clearCache |
<group name> |
Clears all data stored by a segment group, such as entitites and blocks, in case of issues or server lag. Emergency command. |
| /hgsegmentfill |
<group name> <segment number> <block type> [layer] |
Fills all of a segment (or a single layer) in a segment group with a block. Figuring out which segment number is correct may require some trial and error. |
| /hgsegmenteffect start |
<group name> <segment number> <effect name> |
Starts running the specified effect in a segment. |
| /hgsegmenteffect stop |
<group name> <segment number> <effect name> |
Cancels the specified effect in a segment. |
| /hgsegmenteffect list |
[active] |
Lists all possible segment effects. If specified, lists all effects that are active instead. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧