mojira.dev
MC-301693

Function/Command "tick" does not work in datapacks.

(what is tick?) “tick” is a command in Minecraft that changes the overall speed everything runs, eg mobs walking speed, time, etc.

(do this>>>>) Using “tick” in a datapack (in datapack/data/example/function/load.mcfunction) does not work. (make sure “tick” is a valid command) but doing “tick” in Minecraft chat box works fine as usual.


(result) This is the log of the function igofast:load loads (note: line 2 is “tick rate 1000”):
[13:51:29] [Server thread/ERROR]: Failed to load function igofast:load

java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 2: Unknown or incomplete command, see below for error at position 0: <--[HERE]

at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]

at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]

at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]

at knot/net.minecraft.class_4014.method_67576(class_4014.java:52) ~[client-intermediary.jar:?]

at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423) ~[?:?]

at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) ~[?:?]

at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) ~[?:?]

at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) ~[?:?]

at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) ~[?:?]

at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) ~[?:?]

Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 2: Unknown or incomplete command, see below for error at position 0: <--[HERE]

at knot/net.minecraft.class_2158.method_9195(class_2158.java:80) ~[client-intermediary.jar:?]

at knot/net.minecraft.class_5349.method_29451(class_5349.java:87) ~[client-intermediary.jar:?]

at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]

... 7 more

[13:51:29] [Server thread/ERROR]: Couldn't load tag minecraft:load as it is missing following references: igofast:load (from file/tickgofast)


(hope) I hope this gets resolved soon, thanks!

Environment

OS: Windows 11 24H2 Version 10.0.26100.4946

CPU: Intel Core i5-10400F

GPU: NVIDIA Geforce GTX 1600 SUPER

Minecraft Java 1.21.8/Fabric

Linked issues

Comments 1

Thank you for your report!
We're actually already tracking this issue in MC-266134, so this ticket is being resolved and linked as a duplicate.

However, that ticket has been resolved as working as intended, which means that this will not be fixed as it is not considered a bug.

Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.

Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord

celeron_my

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved