Updated:

Trial Spawner: item ID and commands

The ID for Trial Spawner is minecraft:trial_spawner. It is a placeable block, so the same ID works in /give, /setblock and /fill. It was added in Java 1.21.

Basic data

NameTrial Spawner
ID (Java Edition)minecraft:trial_spawner
TypeBlock (also an item)
Java versionsJava 1.21 and later
Bedrock 26.52Same ID works (tested on a server)
Stack size64
Hardness50
Blast resistance50

Commands you can copy

Java Edition

Give one

/give @p minecraft:trial_spawner 1

Give a full stack (64)

/give @p minecraft:trial_spawner 64

Place at your feet

/setblock ~ ~ ~ minecraft:trial_spawner

Fill a 5×5 floor

/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:trial_spawner

Remove from inventory

/clear @p minecraft:trial_spawner

Open this command in the Give generator

Bedrock Edition

Give one

/give @p trial_spawner 1

Give a full stack (64)

/give @p trial_spawner 64

Place at your feet

/setblock ~ ~ ~ trial_spawner

Remove from inventory

/clear @p trial_spawner

Block states

StateValuesDefault
ominoustrue, falsefalse
trial_spawner_stateinactive, waiting_for_players, active, waiting_for_reward_ejection, ejecting_reward, cooldowninactive

Place it with a state

/setblock ~ ~ ~ minecraft:trial_spawner[ominous=true]

Bedrock uses different state names and syntax (for example ["facing_direction"=2]).

Version notes

It was added in Java 1.21. Older versions report that the ID is unknown.

Java 1.20.5 and later write extra item data in [ ] (components); 1.20.4 and earlier use { } (NBT). A plain /give with only the ID is the same in both.

Questions

What is the ID for Trial Spawner?

It is minecraft:trial_spawner. In commands you can also write trial_spawner without minecraft:.

Why does the command turn red?

The ID is misspelled, or it does not exist in that version yet. Trial Spawner works in Java 1.21 and later. The Command Error Doctor can check it.

Related IDs