Adds a condition for is divisible by
Description
This PR simply adds a condition to check if a number is divisible by another number, without having to use the mod function.
Target Minecraft Versions: any Requirements: none Related Issues: none
and tests!
😭 okay
I believe a negated version of the pattern should exist. Something like
if {_number} is not divisible by 8:should be possible.
added!
I do not understand why tests are failing, if someone can help point it out that would be nice
I do not understand why tests are failing, if someone can help point it out that would be nice
You should read the build logs
Failed:
is divisible (on 2 environments)
5 cannot be divided by 10! [CondIsDivisibleBy.sk, line 3] (on paper-1.20.6)
5 cannot be divided by 10! [CondIsDivisibleBy.sk, line 3] (on paper-1.21.0)
I do not understand why tests are failing, if someone can help point it out that would be nice
You should read the build logs
Failed: is divisible (on 2 environments) 5 cannot be divided by 10! [CondIsDivisibleBy.sk, line 3] (on paper-1.20.6) 5 cannot be divided by 10! [CondIsDivisibleBy.sk, line 3] (on paper-1.21.0)
I have, it just doesn't tell me WHY it's failing.