Type:Pig can't attack
Summary
I write a mythicmob,want summon it to attack others.I set the type: PIG first,everytime the pig attack,the console warn
Can't find attribute minecraft:generic.attack_damage
,but I change the type to others(for example,wolf,hoglin,chicken),it works
Steps to reproduce
Copy my code to create one pig,and let it attack others.The pig will remove when attack.
`test_pig: Type: PIG Display: '野猪[召唤物]' Health: 20 Damage: 5 Faction: Summons AIGoalSelectors:
- 0 clear
- 1 gotoowner 10
- 2 meleeattack
- 3 randomstroll AITargetSelectors:
- 0 clear
- 1 players # use these two for pvp
- 2 OtherFactionMonsters`
Current behavior
[01:42:19 ERROR]: Entity threw exception at world:929.3596645140476,64.0,-637.4912540832288 java.lang.IllegalArgumentException: Can't find attribute minecraft:generic.attack_damage at net.minecraft.world.entity.ai.attributes.AttributeProvider.d(AttributeProvider.java:22) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.ai.attributes.AttributeProvider.a(AttributeProvider.java:28) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.ai.attributes.AttributeMapBase.c(AttributeMapBase.java:66) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityLiving.b(EntityLiving.java:2480) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityInsentient.attackEntity(EntityInsentient.java:1625) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.ai.goal.PathfinderGoalMeleeAttack.a(PathfinderGoalMeleeAttack.java:142) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.ai.goal.PathfinderGoalMeleeAttack.e(PathfinderGoalMeleeAttack.java:134) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.ai.goal.PathfinderGoalWrapped.e(PathfinderGoalWrapped.java:53) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.ai.goal.PathfinderGoalSelector.doTick(PathfinderGoalSelector.java:154) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityInsentient.doTick(EntityInsentient.java:883) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityLiving.movementTick(EntityLiving.java:3234) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityInsentient.movementTick(EntityInsentient.java:662) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityAgeable.movementTick(EntityAgeable.java:154) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.animal.EntityAnimal.movementTick(EntityAnimal.java:60) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityLiving.tick(EntityLiving.java:2960) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.entity.EntityInsentient.tick(EntityInsentient.java:424) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.level.WorldServer.entityJoinedWorld(WorldServer.java:1198) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.level.WorldServer.lambda$tick$7(WorldServer.java:802) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.world.level.entity.EntityTickList.a(EntityTickList.java:43) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.level.WorldServer.doTick(WorldServer.java:781) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1635) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:493) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1490) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1283) ~[patched_1.17.1.jar:git-Purpur-1377] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[patched_1.17.1.jar:git-Purpur-1377] at java.lang.Thread.run(Thread.java:831) [?:?]
Intended correct behavior
The pig attack normally just like other mob type
Server log file
Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.
Debug log snippet
Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.
Proposed fixes
Describe what you think the issue or any potential fixes may be.