-
Bug
-
Resolution: Fixed
-
Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5
-
Confirmed
(See also this comment on Reddit by brianmcn)
Conditional commands do not work inside of functions. Here's how to reproduce:
- 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. - Create a second function foo:bar2 with the following content:
say foo:bar2 succeeded
- Run /reload.
- Run /function foo:bar
- 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
- is duplicated by
-
MC-117722 Function if and unless always fail when executed in function
- Resolved