You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The villager despawns, throwing IllegalArgumentException
[16:12:33] [Server thread/ERROR]: Entity threw exception at MainLands:152.5,62.0,35.5
java.lang.IllegalArgumentException: Can't find attribute minecraft:tempt_range
at net.minecraft.world.entity.ai.attributes.AttributeSupplier.getAttributeInstance(AttributeSupplier.java:20) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.ai.attributes.AttributeSupplier.getValue(AttributeSupplier.java:27) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(AttributeMap.java:73) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.LivingEntity.getAttributeValue(LivingEntity.java:2796) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.ai.goal.TemptGoal.canUse(TemptGoal.java:55) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.ai.goal.WrappedGoal.canUse(WrappedGoal.java:22) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.ai.goal.GoalSelector.tick(GoalSelector.java:100) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.Mob.serverAiStep(Mob.java:968) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3643) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.Mob.aiStep(Mob.java:700) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.AgeableMob.aiStep(AgeableMob.java:156) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3352) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.Mob.tick(Mob.java:465) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.entity.npc.Villager.tick(Villager.java:396) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1366) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.level.Level.guardEntityTick(Level.java:1535) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:826) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:39) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:808) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1917) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1705) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1367) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:342) ~[purpur-1.21.3.jar:1.21.3-2332-962ee30]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Issue is the mobs.villager.follow-emerald-blocks option, adds a TemptGoal to a villager, which accesses the tempt_range attribute which is (for some reason) no longer accessible for villagers.
@thegatesdev do you know when tempt_range was removed for villagers? I am currently working on a PR to fix it and I need the tempt_range value. (Which in vanilla 1.21.3 is at 10.0D and is probably different in older versions)
Spark link
https://spark.lucko.me/NBJUKdAhfV
Expected behavior
The villager spawns correctly
Observed/Actual behavior
The villager despawns, throwing IllegalArgumentException
Steps/models to reproduce
Summon a villager with a spawn egg/command
Purpur version
1.21.3-2332-ver/1.21.3@962ee30
Agreements
Other
https://mclo.gs/KSb7ciJ
The text was updated successfully, but these errors were encountered: