Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

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.


1.14 is no longer supported on this forum.
Please update to a modern version of Minecraft to receive support.

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.