Skip to content

Temp data

XiaoColorful edited this page Mar 23, 2026 · 8 revisions

English

临时数据

临时数据位于 ./minecraft/battleroyale/temp 下的所有json文件

  • 模组的临时数据独立于Minecraft的存档数据,全存档统一
  • 所有临时数据均可以删除,通常不需要手动修改

功能类

注册项

./minecraft/battleroyale/temp/registry.json

{
	"entitySelector": true,
	"selector.gameplayers": true,
	"selector.nongameplayers.player": true,
	"selector.gameplayers.player": true,
	"selector.gameplayers.bot": true,
	"selector.gameplayers.downed": true,
	"selector.standinggameplayers": true,
	"selector.nonstandinggameplayers.player": true,
	"selector.standinggameplayers.player": true,
	"selector.standinggameplayers.bot": true,
	"selector.eliminatedgameplayers": true,
	"selector.eliminatedgameplayers.player": true,
	"selector.eliminatedgameplayers.bot": true,
	"pubgmcCommand": true
}

机制项

./minecraft/battleroyale/temp/feature.json

该功能已于 0.5.1 移至TaCZ护甲缩放

{
	"taczBulletHandler": true
}

配置类

预计算

./minecraft/battleroyale/temp/preCalculate.json

  • 预计算[CircleGridStartN, CircleGridEndN]范围的输入N
  • 预计算 CircleGridNList 的所有N
  • 计算[1, 100]的时间开销小于1 tick,计算[1, 1000]的时间开销小于3 ticks
  • showDebugResult为true时会在debug.log里显示所有预计算点位
{
	"spawnManager": {
		"CircleGridStartN": 1,
		"CircleGridEndN": 51,
		"CircleGridNList": [100, 101, 1000, 1001],
		"showDebugResult": false
	}
}

读取类

该列别的临时数据相当于写入Minecraft存档数据并读取,但本模组并没有这么做,因此有了读取类临时数据,通常不需要手动修改

游戏管理器

./minecraft/battleroyale/temp/gameManager.json

  • globalOffset:大逃杀游戏使用的区域偏移
  • lastGameId:游戏管理器使用的游戏ID,物资刷新生成的物品及实体会附带该游戏ID
{
	"globalOffset": "0.500000,0.000000,-8191.500000",
	"lastGameId": "7f2311a8-a277-4ab5-a59e-0341302375da"
}

English

Temporary data directory located in all json files under ./minecraft/battleroyale/temp

  • The mods' temporary data is separate from Minecraft's save data, all saves are unified
  • All temporary data is deletable and usually doesn't require manual editing

Function category

Registry entry

./minecraft/battleroyale/temp/registry.json

{
	"entitySelector": true,
	"selector.gameplayers": true,
	"selector.nongameplayers.player": true,
	"selector.gameplayers.player": true,
	"selector.gameplayers.bot": true,
	"selector.gameplayers.downed": true,
	"selector.standinggameplayers": true,
	"selector.nonstandinggameplayers.player": true,
	"selector.standinggameplayers.player": true,
	"selector.standinggameplayers.bot": true,
	"selector.eliminatedgameplayers": true,
	"selector.eliminatedgameplayers.player": true,
	"selector.eliminatedgameplayers.bot": true,
	"pubgmcCommand": true
}

Feature entry

./minecraft/battleroyale/temp/feature.json

This feature was moved to TaCZ Armor Scaling in version 0.5.1

{
	"taczBulletHandler": true
}

Configuration category

Pre-Calculation

./minecraft/battleroyale/temp/preCalculate.json

  • Calculates the input N grid points within the range [CircleGridStartN, CircleGridEndN]
  • Pre-calculates all N values in CircleGridNList
  • Calculation time cost for [1, 100] is less than 1 tick, and for [1, 1000] is less than 3 ticks
  • If showDebugResult is true, all pre-calculated points will be displayed in debug.log
{
	"spawnManager": {
		"CircleGridStartN": 1,
		"CircleGridEndN": 51,
		"CircleGridNList": [100, 101, 1000, 1001],
		"showDebugResult": false,
	}
}

Read-Only data

This category's temporary data is similar to writing to and reading from Minecraft's save data, but this mod doesn't do that. Therefore, this read-only data usually doesn't need manual modification.

Game Manager

./minecraft/battleroyale/temp/gameManager.json

  • globalOffset: The Zone offset used by the BattleRoyale game.
  • lastGameId: The game ID used by the Game Manager. Items and entities generated by loot generation will carry this game ID.
{
	"globalOffset": "0.500000,0.000000,-8191.500000",
	"lastGameId": "7f2311a8-a277-4ab5-a59e-0341302375da"
}

🌐 Language / 语言


Clone this wiki locally