# Minecraft Trial Spawner Config

> Minecraft Trial Spawner Config 试炼生成器配置：TRIAL_SPAWNER_CONFIG 注册表、data/<namespace>/trial_spawner/ 数据包路径、tags/trial_spawner/ 标签、JSON 格式（items_to_drop_when_ominous 不祥物品生成器掉落战利品表 默认spawners/trial_chamber/items_to_drop_when_ominous、loot_tables_to_eject 试炼后奖励加权列表 data+weight 默认spawners/trial_chamber/consumables+key 一张表抽取后每个参与玩家弹出一次、simultaneous_mobs 同时存活最小数量 默认2、simultaneous_mobs_added_per_player 每玩家同时存活增加 默认1 最大=t+p(n-1)、spawn_potentials 生成潜力加权列表 data+weight 每次生成后选择下一个、spawn_range 生成范围 切比雪夫距离 1-128 默认4 越近越可能、total_mobs 总生成最小数量 默认6、total_mobs_added_per_player 每玩家总生成增加 默认2 总计=t+p(n-1)、ticks_between_spawn 生成间隔最小刻数 默认40）、Behavior 行为（服务器启动加载一次、配置在试炼生成器方块实体中 normal_config ominous=false 或 ominous_config ominous=true 未设置字段使用默认值）、Loot Ejection 战利品弹出（使用empty战利品上下文 表格不能使用任何战利品上下文参数、不祥物品生成器：1个物品 计数1、试炼后奖励：一张表抽取 每个参与玩家弹出一次）。

- Skill: `zmjjkk123-hub/minecraft-trial-spawner-config` (Agent Skill)
- Install (CLI): `npx skillmds@latest add zmjjkk123-hub/minecraft-trial-spawner-config`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zmjjkk123-hub/minecraft-trial-spawner-config/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ZMJJKK123-hub (https://skillmd.com/u/zmjjkk123-hub)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/zmjjkk123-hub/minecraft-trial-spawner-config

---


# Trial Spawner Config

Trial spawner configurations define the trial behavior of trial spawners (mob spawning + post-trial loot). Java Edition only.

## Definition Format

Registry `TRIAL_SPAWNER_CONFIG`, data pack path `trial_spawner` (files in `data/<namespace>/trial_spawner/`; tags in `tags/trial_spawner/`).

- `items_to_drop_when_ominous` — loot table for items inside ominous item spawners generated by active ominous trial spawners (default `spawners/trial_chamber/items_to_drop_when_ominous`).
- `loot_tables_to_eject` — weighted list of `{data (loot table), weight (>0)}` for post-trial rewards (default: `spawners/trial_chamber/consumables` + `spawners/trial_chamber/key`, weight 1). One table is drawn, then loot ejects once per participating player.
- `simultaneous_mobs` (≥0, default 2) — minimum simultaneously alive mobs (one player).
- `simultaneous_mobs_added_per_player` (≥0, default 1) — max simultaneous = ⌊t + p(n−1)⌋.
- `spawn_potentials` (default empty) — weighted list of `{data (spawn data), weight (>0)}`; after each spawn attempt the game picks the next spawn's data from it.
- `spawn_range` (1–128, default 4) — Chebyshev spawn range (closer to the spawner = more likely).
- `total_mobs` (≥0, default 6) — minimum total spawned (one player).
- `total_mobs_added_per_player` (≥0, default 2) — total = ⌊t + p(n−1)⌋.
- `ticks_between_spawn` (≥0, default 40) — min interval between spawn attempts.

## Behavior

Definitions load once at server startup (restart required). The config sits in the trial spawner's block entity as `normal_config` (block state `ominous` false) or `ominous_config` (true); unset fields use defaults.

### Loot Ejection

Both loot behaviors use the **`empty` loot context** — the tables must not use any loot context parameters. Ominous item spawners: one item generated with count 1. Post-trial rewards: one table drawn, items ejected once per participating player.

