#Is there a way to detect if a villager is a baby villager?

7 messages · Page 1 of 1 (latest)

prisma hearth
#

I am making custom bounties through Kubejs and one of them is for villagers since they are able to fight back in my modpack. However, I do not want the kill to count if its a baby villager. Is there a way to do this?

gaunt zephyrBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

fast plover
#

All mobs with babies have an age value

#

Below 0 it means they are a baby

uncut hound
#

entity.isBaby()

fast plover
#

That also exists

#

(I'm too used to datapacks to find easy solutions)