Game Mod 图标

Game Mod

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/game_mod
资源信息

Minecraft 版本: 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1

平台: neoforge

标签: adventure minigame social

资源介绍

⚔ GameMod

— Fabric 1.21.x

A full-featured mini-game manager with countdown display, settings GUI, custom spawn radius, and world border control.


Required Dependencies (install alongside this mod)

Mod Download
Fabric API https://modrinth.com/mod/fabric-api
Cloth Config https://modrinth.com/mod/cloth-config
ModMenu https://modrinth.com/mod/modmenu

Commands (requires op level 2)

Game Control

Command Effect
/game start Begin countdown (if set) then launch the game
/game stop Cancel countdown or end an active game
/game cooldown <time> Set countdown duration (e.g. 10s, 5m, 2h)
/game cooldown Show current cooldown setting

Settings

Command Effect
/game settings or /game settings list Print all current settings
/game settings display actionbar Show countdown in the action bar
/game settings display bossbar Show countdown in a boss bar
/game settings spawn here Set spawn to your current position
/game settings spawn <x> <y> <z> Set spawn to exact coordinates
/game settings radius <blocks> Scatter players within N blocks of spawn (0 = exact)
/game settings border <size> Set world border diameter for the game
/game settings cooldown <time> Same as /game cooldown <time>
/game settings reset Reset everything to defaults

Settings GUI (ModMenu)

Open the Mods screen in-game → find Game Mod → click the ⚙ button.

Categories:

  • Display — boss bar vs action bar toggle
  • Spawn Location — X / Y / Z coordinates + scatter radius
  • World Border — game size and post-game reset size
  • Cooldown — duration in s / m / h format

Settings are saved to config/gamemod.json automatically.


How it Works

/game start flow

  1. Checks for an active countdown or game (blocks if already running)
  2. If cooldown > 0: counts down, displaying progress on all players' screens
  3. At zero (or instantly): teleports all online players to a random position within the spawn radius, sets world border centred on the spawn coordinates, sets everyone to Survival

Random radius teleport

  • If radius = 0: all players land on the exact spawn point
  • If radius > 0: each player gets a random angle and distance within the radius; Y is found automatically using the terrain heightmap (players always land on solid ground, not in mid-air or underground)

Eliminated players

When a player dies while a game is active they are automatically switched to Spectator mode. /game stop returns all spectators to Survival.

Countdown display

Remaining Action bar colour Boss bar colour
> 10s ? Green Green
6 – 10s ? Yellow Yellow
≤ 5s ? Red Red

Config file

config/gamemod.json — edited by the GUI or commands, reloaded on next server start.

{
  "useBossBar": false,
  "spawnX": 0.0,
  "spawnY": 64.0,
  "spawnZ": 0.0,
  "spawnRadius": 25,
  "gameBorderSize": 200.0,
  "defaultBorderSize": 60000000.0,
  "cooldownSeconds": 30
}

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Scape: Till the End

价格:0 墨喵币
下载量:0

查看详情
EpicSpawner

价格:0 墨喵币
下载量:0

查看详情
OPItems

价格:0 墨喵币
下载量:0

查看详情
Create: Radiation n' Zombies

价格:0 墨喵币
下载量:0

查看详情