#Crash when using `scheduleInTicks()`
1 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of crash-2023-01-24_11.33.29-client.txt from @misty depot
that crash log says something about rendering a block model and accessing random from a wrong thread 
scheduleInTicks is right https://github.com/KubeJS-Mods/KubeJS/blob/1.19/main/common/src/main/java/dev/latvian/mods/kubejs/core/MinecraftServerKJS.java#L31
what exactly were you trying to run
we've been dealing with LegacyRandomSource crashes a lot recently and it has to do with where Random is gotten from
I've got a script that, when I drop an item on the ground, it deletes the item and runs a bunch of stuff. It's almost entirely runCommandSilent() stuff though
I'm not calling any random source myself, but I noticed this started happening after I started calling particle effects
yeah, that one seems to be a thermal particle
This one in particular, when the item is dropped, it does some particle effects around the player, then teleports them
ah, ok, yes it is actually crashing while running the thermal particles
what do you pass into the shockwave?
// spiral shockwave
command = `/execute in ${ritual_dimension} run particle cofh_core:shockwave 3 3 3 0.5 ${coord.x} ${coord.y - 1} ${coord.z} 0.2 0.2 0.2 0.1 10`;
callback.server.runCommandSilent(command);
where all the coords are basically just being generated by some code drawing a spiral
this runs inside a for loop on an array of those coordinates