mojira.dev
MC-121674

Execute doesn't work in Functions

attempting to run a function with one results in "java.lang.NullPointerException"

this only happens once you reach the command. Commands previous work. This does not invalidate the function.

say foo
execute at @s run tp ~ ~5 ~
say bar

prints:
[name of player] foo
java.lang.NullPointerException

and nothing else

Linked issues

Comments 2

Does this occur with selectors other than @s? In which case, this may be MC-121627.

it occurs with other selectors. MC-121627 is unrelated. It would happen if you do

execute run help

Andrew

Nathan Adams

Confirmed

/execute, function

Minecraft 17w45a

Minecraft 17w45b

Retrieved