Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269200

Components for mob spawners and trial spawners use different syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 24w10a
    • Confirmed
    • (Unassigned)

      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.

        1. 2024-03-08_10.48.46.png
          1.22 MB
          Alexander Gignac
        2. 2024-03-08_10.52.04.png
          1.20 MB
          Alexander Gignac

            Unassigned Unassigned
            AJgignac Alexander Gignac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: