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

Spawner with invalid entity data spams log

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.1, 20w51a, 21w03a, 1.18.2, 22w12a, 22w18a, 1.19, 23w43a
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      The bug

      A mob spawner with invalid entity data spams the log:

      Failed to parse entity custom name [{malformed}]
      ...
      

      Expected would be that the spawner refuses invalid spawn data on creation / update or that the warning is only logged once.

      How to reproduce

      /setblock ~ ~ ~ spawner{SpawnData:{entity:{id:"minecraft:armor_stand",CustomName:"[{malformed}]"}},MinSpawnDelay:5s,MaxSpawnDelay:5s,SpawnCount:1s}
      

      The log is spammed with the warning.

      Do not forget to break the spawner afterwards again.

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: