I already did.
Creature onAttack method
public static int calculateTimeToHit(int totalAttackTime, WeaponType attackType, boolean twoHanded, boolean secondHit) {
switch (attackType) {
case BOW:
case CROSSBOW:
case TWOHANDCROSSBOW:
return (int)(totalAttackTime * 0.95D);
This is the query in the direction you mentioned. Is this string of codes correct?
If it is correct, I want to know how his time is calculated