Help with minecraft:generic.attack_damage PLEASE reply quickly
Hi, I am having problems when I try to make a passive mob (sheep in this instance) attack a player. Below is the log.
Error Log
[ERROR] .... Entity threw exception at darkworld:51.4391766786137,63.0,55.40632534872562java.lang.IllegalArgumentException: Can't find attribute minecraft:generic.attack_damage
at net.minecraft.world.entity.ai.attributes.AttributeSupplier.getAttributeInstance(AttributeSupplier.java:22) ~[?:?]
at net.minecraft.world.entity.ai.attributes.AttributeSupplier.getValue(AttributeSupplier.java:28) ~[?:?]
at net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(AttributeMap.java:65) ~[?:?]
at net.minecraft.world.entity.LivingEntity.getAttributeValue(LivingEntity.java:2423) ~[?:?]
at net.minecraft.world.entity.Mob.doHurtTarget(Mob.java:1561) ~[?:?]
at net.minecraft.world.entity.ai.goal.MeleeAttackGoal.checkAndPerformAttack(MeleeAttackGoal.java:152) ~[?:?]
at net.minecraft.world.entity.ai.goal.MeleeAttackGoal.tick(MeleeAttackGoal.java:144) ~[?:?]
at net.minecraft.world.entity.ai.goal.WrappedGoal.tick(WrappedGoal.java:63) ~[?:?]
at net.minecraft.world.entity.ai.goal.GoalSelector.tickRunningGoals(GoalSelector.java:152) ~[?:?]
at net.minecraft.world.entity.ai.goal.GoalSelector.tick(GoalSelector.java:143) ~[?:?]
at net.minecraft.world.entity.Mob.serverAiStep(Mob.java:857) ~[?:?]
at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3256) ~[?:?]
at net.minecraft.world.entity.Mob.aiStep(Mob.java:628) ~[?:?]
at net.minecraft.world.entity.AgeableMob.aiStep(AgeableMob.java:154) ~[?:?]
at net.minecraft.world.entity.animal.Animal.aiStep(Animal.java:63) ~[?:?]
at net.minecraft.world.entity.animal.Sheep.aiStep(Sheep.java:145) ~[?:?]
at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2906) ~[?:?]
at net.minecraft.world.entity.Mob.tick(Mob.java:396) ~[?:?]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1128) ~[?:?]
at net.minecraft.world.level.Level.guardEntityTick(Level.java:970) ~[?:?]
at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:670) ~[?:?]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:43) ~[paper-1.18.1.jar:git-Paper-141]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:650) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1607) ~[paper-1.18.1.jar:git-Paper-141]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-141]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-141]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-141]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-141]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
The coding is fine, figured I would post it anyways