`script run('function')` is wrong if a function file contains `execute store result`
gamingredpandas opened this issue ยท 0 comments
when execute store result
is in a function file it will store the result of the function when doing script run('function')
when you use /script run run('function ...')
on a function that has execute store result
the last execute store result
in the function will store the number of commands run instead of what comes after execute store result
To Reproduce
- download the datapack I provided
- make a world with the datapack
- in chat it will show the commands
/function test:test
and/script run run('function test:test')
you need to run
(you can also just click them to run them) - as you can see on the sidebar when you run
/script run run('function test:test')
UUID4 is 5 (the number of commands run in the function) and this is wrong it should be the result of the command
Expected behavior
when running /script run run('function test:test')
the last execute store result
should store its result instead of the result of the function
files
scarpetBugReport.zip
Environment
- Carpet version: 1.4.32+v210414
- Minecraft version: 1.16.4