Mojira Archive
MC-117722

Function if and unless always fail when executed in function

The bug

The /function command with if or unless always fails when it is executed in a function.

How to reproduce

  1. Create a function custom:test
    function custom:test2 if @s
    
  2. Create a function custom:test2
    say test2
    
  3. Run the function custom:test
    /function custom:test
    

    → "test2" is not printed

Note: As workaround you can use /execute

execute @s ~ ~ ~ /function custom:test2 if @s

Duplicate

Adam

2017-05-19, 08:51 PM

2017-05-20, 12:09 PM

2017-05-20, 12:09 PM

3

0

Confirmed

function, selector

Minecraft 1.12 Pre-Release 5

-