I tried many ways and I couldn't do it XD
I use separate files (main.js, isRain.js and races.js), I want to use the function in races.js
I tried with beforeEvent(weatherChange), no success. I also tried with getDimension("overworld").getWeather, but it gives me error(||[Scripting][error]-ReferenceError: Native function [Dimension::getWeather] does not have required privileges. at isRain (functions/isRain.js:4)||).
Help, wise people. (@minecraft/[email protected])
