I want to make the fishing time change based on certain conditions.
For example, if there is a cat around the player, the fishing time increases, if the player is in a swamp biome, the fishing time decreases, if the player is not looking at the fishing hook, the fishing time increases, etc.
However, I don't know how to access the remaining fishing time. According to the Forge event documentation (https://mcstreetguy.github.io/ForgeJavaDocs/1.20.1-latest/net/minecraft/world/entity/projectile/FishingHook.html), there is timeUntilLured, but when I accessed it in kubejs, it was undefined.
Does anyone know how to access the remaining fishing time?
Or does anyone know of another good idea?