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

SpawnData and SpawnPotentials doesn't work with /give

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 22w44a
    • None
    • Unconfirmed
    • Commands

      SpawnData and SpawnPotentials doesn't work with /give.

      1. Use the following command to generate camel monster spawner:
        /setblock ~ ~1 ~ minecraft:spawner{MaxNearbyEntities: 6s, RequiredPlayerRange: 16s, SpawnCount: 4s, SpawnData: {entity: {id: "minecraft:camel"}}, MaxSpawnDelay: 800s, Delay: 719s, x: 61, y: 67, z: -4, id: "minecraft:mob_spawner", SpawnRange: 4s, MinSpawnDelay: 200s, SpawnPotentials: [{data: {entity: {id: "minecraft:camel"}}, weight: 1}]} destroy
        
      2. Notice that it works.
      3. However, it will not works if the monster spawner is given with the following command:
        /give @p minecraft:spawner{MaxNearbyEntities: 6s, RequiredPlayerRange: 16s, SpawnCount: 4s, SpawnData: {entity: {id: "minecraft:camel"}}, MaxSpawnDelay: 800s, Delay: 719s, x: 61, y: 67, z: -4, id: "minecraft:mob_spawner", SpawnRange: 4s, MinSpawnDelay: 200s, SpawnPotentials: [{data: {entity: {id: "minecraft:camel"}}, weight: 1}]} 1
        

        1. 2022-11-08_14.12.56.png
          2022-11-08_14.12.56.png
          643 kB
        2. 2022-11-08_13.55.26.png
          2022-11-08_13.55.26.png
          711 kB
        3. 2022-11-08_13.55.15.png
          2022-11-08_13.55.15.png
          525 kB
        4. 2022-11-08_13.55.02.png
          2022-11-08_13.55.02.png
          577 kB
        5. 2022-11-08_13.53.56.png
          2022-11-08_13.53.56.png
          764 kB

            Unassigned Unassigned
            Les3awe [Mod] Les3awe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: