#Sleep - Tick sprint stop function not loading when datapack loads in server

1 messages · Page 1 of 1 (latest)

languid epoch
#

Whenever I load my server with sleep mod 4.2.12 i keep getting this error and i see some quirks with the sleeping such as phantoms spawning when sleeping and villagers not restocking their traders
Playing on 1.21.7

[15:30:51] [Server thread/ERROR]: Failed to load function sleep:app/tick_sprint_stop
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Incorrect argument for command at position 134: ...hes 1 run <--[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) ~[server-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 1: Incorrect argument for command at position 134: ...hes 1 run <--[HERE]
at knot/net.minecraft.class_2158.method_9195(class_2158.java:80) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_5349.method_29451(class_5349.java:87) ~[server-intermediary.jar:?]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 7 more

crude ravine
#

Villagers not restocking their trades has nothing to do with my datapack, as its only bound to the daytime
Phantoms still spawning is something I have to work on, as I can't just set the phantom cooldown to 0, I would have simulate the phantom cooldown or something, but idk how Ill do that. For the time Id suggest to just disable phantoms (I got a datapack for that too, where phantom membrane gets dropped from bats instead)

#

About the error:
Do you have the tick accelerate setting turned on?
Either way, to remove the error you have to set the function-permission-level to 3 in the server.properties

#

if you run /scoreboard objectives setdisplay sidebar sleep.time_values you can see &daytime
If its on 2000 villagers should restock