Jump to content

FunkyDonkyPunky

Members
  • Posts

    5
  • Joined

  • Last visited

FunkyDonkyPunky's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Am i supposed to call it per tick? Does it give a list of entities? How does it work? Is there some documentation on how to properly use it?
  2. Ugh, how? my mod is tiny so i didn't have to change much
  3. Hi, once again now with a supported version, how am i supposed to count all living ChickenEntities? I was thinking about getting every chicken entity uid on LivingEvent and then remove duplicates which could potentionally result in a chicken count. But there has to be some better way to do that. I've got like 5 hours of experience so dont expect much from me.
  4. The solution should be similar on all versions, so i'd welcome any help now.
  5. 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 @SubscribeEvent public void onLivingSpawnEvent(LivingEvent event) { LivingEntity entity = event.getEntityLiving(); if(!(entity instanceof ChickenEntity && entity.hasCustomName())) return; LOGGER.warn(entity); } 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?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.