Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14 ]Getting the count of all ChickenEntity

Recommended Posts

MC 1.14.4

I'm fairly new into mc modding, like 4 hours. So what i'm saying is probably not giving much sense but anyway, i'm trying to count all living chickens and i thought that it would be really simple but i guess it ain't.

I've got 

   public void onLivingSpawnEvent(LivingEvent event)

      LivingEntity entity = event.getEntityLiving();
      if(!(entity instanceof ChickenEntity && entity.hasCustomName()))



I saw that each entity has its own id so i thought that i'd just remove the duplicates and get the final count but that wouldn't work and it's probably nowhere near the real solution.
So what's the proper way to count all living chickens per tick?

Link to comment
Share on other sites

4 minutes ago, FunkyDonkyPunky said:

MC 1.14.4

1.14 is out of support, you'd be better off going for 1.16 or right for 1.17; once there is a release build of 1.17, I believe 1.15 will be out of support as well.

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.