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

Incomplete 'execute summon' command still runs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w41a
    • 1.19.4 Pre-release 1, 1.19.4, 23w14a
    • Confirmed
    • Commands
    • Normal
    • Platform

      Trying to execute summon with (partial) subcommands (those that follow syntax but do not have all the required parameters) often works in ways you don't expect it to.

      Try to run:

      /execute at @e summon tnt
      

      Nothing happens.

      Now try to run:

      /execute at @e summon tnt at
      

      or

      /execute at @e summon tnt as
      

      or any other subcommand.

      Even though the command isn't completed (run ...) the command still succeeds and summons the entity. At the very least you'd expect the sub command to end in

      execute ... if ...
      

      for example. This would be valid since you expect if/unless to work as a test. Also execute store should work. However, for summon, it would not make sense to end the command with a partial sub command.

      Expected to work

      /execute at @e summon tnt
      

      (currently doesn't work. Should spawn once)

      /execute at @e summon tnt summon tnt
      

      (currently only spawns once, but should spawn twice.)

            boq [Mojang] Bartosz Bok
            m124367 AgentM
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: