mojira.dev
MC-117663

Conditional function commands do not work inside of functions

(See also this comment on Reddit by @unknown)

Conditional commands do not work inside of functions. Here's how to reproduce:

  1. Create a function foo:bar with the following content:

    say foo:bar succeeded
    function foo:bar2 if @e[c=1]

    The [c=1] is important here, see MC-117661.

  2. Create a second function foo:bar2 with the following content:

    say foo:bar2 succeeded
  3. Run /reload.

  4. Run /function foo:bar

  5. Notice that the only thing written into the chat is foo:bar succeeded and the success message telling you that both commands have been run

Linked issues

Comments 2

yeah, this is happening to me too

violine1101

Nathan Adams

Confirmed

command, condition, function

Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5

Minecraft 1.12 Pre-Release 6

Retrieved