Can't use /origin with custom origins in .mcfunction files
krysal14 opened this issue ยท 1 comments
I have a .mcfunction file that checks if a player has a custom origin every tick with the following command:
execute store result score @a playerOrigin as @a at @s run origin has origin @s origins:origin evolution:fire_elemental
The problem is that this function file loads before the origin itself, throwing the following error:
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown origin: evolution:fire_elemental
When reloading the data pack, the function loads and works fine using the /function command but does not execute every tick (as far as I can tell).
My log and .mcfunction files are attached below.