Hello..
How to pass `player` entity via function and called under `open chest`?
This works fine:
```
command /testButton:
trigger:
foo(player)
function foo(player: player):
send "FOO" to {_player}
bar({_player})
function bar(player: player):
send "BAR" to {_player}
baz({_player})
function baz(player: player):
send "BAZ" to {_player}
```
Result:
FOO
BAR
BAZ
But this won't work:
```
command /testButton:
trigger:
foo(player)
function foo(player: player):
send "FOO" to {_player}
bar({_player})
function bar(player: player):
send "BAR" to {_player}
open chest with 1 rows named "&cTESTER" to {_player}
wait 1 ticks
format slot 5 of {_player} with blaze powder of unbreaking 10 named "&4&lTest Button" to close then run [baz({_player})]
function baz(player: player):
send "BAZ" to {_player}
```
Result:
FOO
BAR
and it doesn't execute the `baz` function
Add-ons:
> SkRayFal
> SkQuery
> Skellet
How to pass `player` entity via function and called under `open chest`?
This works fine:
```
command /testButton:
trigger:
foo(player)
function foo(player: player):
send "FOO" to {_player}
bar({_player})
function bar(player: player):
send "BAR" to {_player}
baz({_player})
function baz(player: player):
send "BAZ" to {_player}
```
Result:
FOO
BAR
BAZ
But this won't work:
```
command /testButton:
trigger:
foo(player)
function foo(player: player):
send "FOO" to {_player}
bar({_player})
function bar(player: player):
send "BAR" to {_player}
open chest with 1 rows named "&cTESTER" to {_player}
wait 1 ticks
format slot 5 of {_player} with blaze powder of unbreaking 10 named "&4&lTest Button" to close then run [baz({_player})]
function baz(player: player):
send "BAZ" to {_player}
```
Result:
FOO
BAR
and it doesn't execute the `baz` function
Add-ons:
> SkRayFal
> SkQuery
> Skellet