mojira.dev
MC-269200

Components for mob spawners and trial spawners use different syntax

Trial spawners use snake case in their block entity tags, while mob spawners use pascal case.

Example: /give @s minecraft:trial_spawner[block_entity_data= {id: trial_spawner, spawn_data:{entity: {id: camel}}}]

Versus: /give @s minecraft:spawner[minecraft:block_entity_data={id: mob_spawner, SpawnData:{entity: {id: camel}}}]

Pascal case also applies for the other spawner tags, like RequiredPlayerRange, MaxNearbyEntities, etc.

Attachments

Comments 1

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Alexander Gignac

(Unassigned)

Confirmed

(Unassigned)

syntax

24w10a

Retrieved