Skip to content

sokratis12GR/Sword-Displays

Repository files navigation

Sword Displays

Crafting Recipes:

Comparator Caculations

        // x = maxDamage : (maxDamage - currentDamage)
        // if (x > 15) x = 14;
        // if (x == 15) x = 13;
        // return 15 / x
        int x = stack.getMaxDamage() / (stack.getMaxDamage() - stack.getDamage());
        x = x > 15 ? 14 : x == 15 ? 13 : x;
        return 15 / x;

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages