mojira.dev
MC-305698

Some functions fail to load due to "components not bound yet"

When starting a server with datapacks present, some functions are not loaded

example

2026-01-13 19:42:18 [ERROR] Failed to load function minion:_minion/__seek_via_guide
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 5: Could not parse command: Components not bound yet at position 59: ...d with air<--[HERE]
        at java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:359)
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:364)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1791)
        at net.minecraft.server.packs.resources.SimpleReloadInstance.lambda$prepareTasks$1(SimpleReloadInstance.java:51)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1750)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1742)
        at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1659)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 5: Could not parse command: Components not bound yet at position 59: ...d with air<--[HERE]
        at net.minecraft.commands.functions.CommandFunction.fromLines(CommandFunction.java:80)
        at net.minecraft.server.ServerFunctionLibrary.lambda$reload$3(ServerFunctionLibrary.java:85)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1789)
        ... 8 more

That function failed on item replace entity @n[tag=_guide] weapon.mainhand with air

But mostly it seems to be any function which has something like

give @s music_disc_creator[consumable={consume_seconds:2000000,animation:none,has_consume_particles:false},!jukebox_playable,item_name="Bucket of Pufferfish",item_model=pufferfish_bucket]

Typing reload in the console or logging in and running /reload fixes it, but as far as I can tell I’m not doing anything out of the ordinary.

It’s also being reported as

2026-01-13 19:42:18 [ERROR] Failed to load function evo:inventory_update
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 4: Expected literal # at position 39: ...ntainer.* <--[HERE]

for the command execute if items entity @s container.* #evo:enchantable[!minecraft:enchantments={},!minecraft:custom_data~{tagged:true}] run function evo:update_itemswhich does look like it’s actually the components failure masked as something else.

Comments 4

Hi!
Thank you for your report! 

  • Can you attach an example data pack the issue occurs with?

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

I am still encountering this issue in 26.1 Snapshot 9. I have a function of the form:

give @s minecraft:cow_spawn_egg[minecraft:cow/variant="custom_mobs:custom", minecraft:custom_model_data={strings:["custom_spawn_egg"]}, minecraft:item_name={type:"translatable",translate:"item.custom.custom_spawn_egg",fallback:"Custom Spawn Egg"}]

and I get the error:

Failed to load function custom:give_custom_spawn_egg java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Could not parse command: Components not bound yet at position 31: ..._spawn_egg<--[HERE]

I have confirmed that, as mentioned in the description of this report, that /reload fixes the issue for the moment.

Also encountered the error in 26.1 Snapshot 11, here is my function:

#> mgs:v5.0.0/maps/editor/give_tools
#
# @within   mgs:v5.0.0/maps/editor/enter
#
# Give all editor egg tools
item replace entity @s hotbar.0 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.base_coordinates","color":"light_purple","italic":false},minecraft:item_model="minecraft:endermite_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"base_coordinates"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.base_coordinates"]}]
item replace entity @s hotbar.1 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.red_spawn","color":"red","italic":false},minecraft:item_model="minecraft:magma_cube_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"red_spawn"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.red_spawn"]}]
item replace entity @s hotbar.2 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.blue_spawn","color":"blue","italic":false},minecraft:item_model="minecraft:dolphin_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"blue_spawn"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.blue_spawn"]}]
item replace entity @s hotbar.3 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.general_spawn","color":"yellow","italic":false},minecraft:item_model="minecraft:blaze_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"general_spawn"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.general_spawn"]}]
item replace entity @s hotbar.4 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.out_of_bounds","color":"dark_red","italic":false},minecraft:item_model="minecraft:spider_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"out_of_bounds"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.out_of_bounds"]}]
item replace entity @s inventory.0 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.boundary_corner","color":"gray","italic":false},minecraft:item_model="minecraft:skeleton_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"boundary"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.boundary"]}]
item replace entity @s inventory.1 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.sd_objective","color":"gold","italic":false},minecraft:item_model="minecraft:fox_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"search_and_destroy"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.search_and_destroy"]}]
item replace entity @s inventory.2 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.domination_point","color":"green","italic":false},minecraft:item_model="minecraft:creeper_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"domination"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.domination"]}]
item replace entity @s inventory.3 with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.hardpoint_zone","color":"dark_purple","italic":false},minecraft:item_model="minecraft:warden_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"hardpoint"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.hardpoint"]}]
item replace entity @s weapon.offhand with minecraft:bat_spawn_egg[minecraft:item_name={"translate": "mgs.destroy","color":"dark_red","italic":false,"bold":true},minecraft:item_model="minecraft:wither_skeleton_spawn_egg",minecraft:custom_data={mgs:{editor:true,type:"destroy"}},minecraft:entity_data={id:"minecraft:bat",NoAI:1b,Silent:1b,Invulnerable:1b,Tags:["mgs.new_element","mgs.element.destroy"]}]

Error log:

14:08:59 [ServerMain/ERROR]: Failed to load function mgs:v5.0.0/maps/editor/give_tools
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 8: Could not parse command: Components not bound yet at position 60: ..._spawn_egg<--[HERE]
        at java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:359)
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:364)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1791)
        at net.minecraft.server.packs.resources.SimpleReloadInstance.lambda$prepareTasks$1(SimpleReloadInstance.java:51)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1750)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute(ForkJoinTask.java:1742)
        at java.base/java.util.concurrent.ForkJoinTask$InterruptibleTask.exec(ForkJoinTask.java:1659)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 8: Could not parse command: Components not bound yet at position 60: ..._spawn_egg<--[HERE]
        at net.minecraft.commands.functions.CommandFunction.fromLines(CommandFunction.java:80)
        at net.minecraft.server.ServerFunctionLibrary.lambda$reload$3(ServerFunctionLibrary.java:85)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1789)
        ... 8 more

knirch

boq

Plausible

Platform HC

Important

Data Packs

26.1 Snapshot 3

26.1 Snapshot 5

Retrieved