[1.16.5] Count Entities For Exporting - Modder Support - Forge Forums

Skip to content View in the app

A better way to browse. Learn more.

Learn more Dismiss Close 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.
Forge Forums Forge Forums
  • Sign In
  1. Home
  2. Mod Developer Central
  3. Modder Support
  4. [1.16.5] Count entities for exporting
  • All Activity
Search the Forums BEFORE making a new post. Hide announcement Currently supported: All versions Hide announcement
  • Start new topic
  • Reply to this topic
silentkiller159 Tree Puncher

silentkiller159

Members
  • 1 posts
  • 0 Badges
  • 0 Reputation
silentkiller159 Tree Puncher

silentkiller159 Members

August 26, 20214 yr

Author stats August 26, 20214 yr

Hello there to all of you,

I am developer, but mostly in C# and Java is on the second track. I am currently hosting a Minecraft server and I wanted to monitor its performance using Grafana with prometheus database. I have found a mod which exports almost all of required data (Players, tps, jvm status etc.) I wanted to improve the mod, to export entity count as well (Old servers often were acting strangely with high entity count in some chunk loaded factory where the machine got stuck .. etc etc) I have tried to find a way of counting those entity, reading the Forge documentation didnt help me (Registering an event handler sounds strange to me, there must be some list of entities which I might be able to siply count). Is there some easy way of getting the count of all living entities? (The exporter I am trying to improve : link to Github) Thank you for the support, Silent

Edited August 26, 20214 yr by silentkiller159 typo

  • Quote
  • Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account. Note: Your post will require moderator approval before it will be visible.

    Guest Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. Reply to this topic...
    • Submit Reply
    Share https://forums.minecraftforge.net/topic/103800-1165-count-entities-for-exporting/
    • Share on X
    • Share on Facebook
    • {lang="reddit_text"
    • Share via email
    More sharing options... Followers Go to topic listing IPS spam blocked by CleanTalk.

    Announcements

    New Discord server Hide announcement
    • Game crashing Ugdhar

      Game crashing

      Please read the FAQ and post logs as described there.I split your reply to an old post into your own topic, you should not piggyback on an old issue when you are having problems.

      By Ugdhar · 18 hours ago18 hr

    • Game crashing Sibonius

      Game crashing

      I also have the problem that it cannot encode empty itemstack but turning of dynamiclights wont work Caused by: java.lang.IllegalStateException: Cannot encode empty ItemStack at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack.save(ItemStack.java:409) ~[client-1.21.1-20240808.144430-srg.jar%23375!/:?] at TRANSFORMER/[email protected]/net.minecraft.world.entity.projectile.AbstractArrow.addAdditionalSaveData(AbstractArrow.java:529) ~[client-1.21.1-20240808.144430-srg.jar%23375!/:?] at TRANSFORMER/[email protected]/net.minecraft.world.entity.Entity.saveWithoutId(Entity.java:1723) ~[client-1.21.1-20240808.144430-srg.jar%23375!/:?]

      By Sibonius · 19 hours ago19 hr

    • Mi mapa de journey map no carga las partes nuevas del mundo que exploro. FinnT730

      Mi mapa de journey map no carga las partes nuevas del mundo que exploro.

      Please use English on the forums.I would suggest getting in contact with the mod creator, and seeing if they have a solution. We are just a modloader that can be used to make mods. If a mod has a issue, it is generally suggested to get in contact with them. Maybe there is something up with the fact that Aternos is used and that they have a max cap on waypoints / loading features, but I am not too sure of that

      By FinnT730 · Sunday at 07:28 PM1 day

    • Silent Accord Mod Idea Hemioafjr

      Silent Accord Mod Idea

      Hello modders,I have a detailed concept for a Minecraft mod called Silent Accord and I’m looking for a collaborator. I don’t have a budget, but I can provide a full design document and help with ideas, testing, and content.The mod idea:Every hostile mob (and most neutral mobs) has a rare neutral variant that is passive unless attacked.Players can gain trust with these rare variants. Trust spreads only to the same species, while killing regular mobs lowers trust and increases fear in nearby regular mobs.Rare variants are always neutral, even if you kill regular mobs.Trust does not drift naturally — the world permanently remembers your choices.Friendly rare variants can eventually help the player in combat or provide small rewards.Normal spawn rates and difficulty remain unchanged.Multiplayer is supported: each player has separate trust/fear levels.Core Features in Detail:1. Rare VariantsUnique visual cue.Always neutral unless attacked.Spread trust via “Trust Pulses” to nearby same-species mobs while alive.2. Trust & Fear SystemKilling 1–2 regular mobs → slight trust decrease.Repeated killing → fear increases, regular mobs revert to hostile.Trust spreads locally through rare variants only.Permanent until changed by player actions.3. Friendly BehaviorRare variants and some influenced regular mobs can become friendly or protective.Friendly mobs may assist the player against threats of the same species.Trust must be earned and maintained.4. ScopeIdeally includes every hostile mob and most neutral mobs across dimensions.Can start with Overworld mobs only as version 1.0.Why This Mod is Exciting:Adds emotional depth and moral choice to survival gameplay.The world reacts permanently to player actions.Rare variants give players allies in dangerous areas without making the game easy.Scalable: start small, expand to full world.What I Can Provide:Full design document with every mob, rare variant, and trust/fear rules.Testing and feedback.Creative input for visuals, names, and behaviors.I’m looking for a modder who wants to collaborate on Silent Accord, starting with a smaller subset of mobs if needed. If you’re interested, I can send the complete design document so you can see exactly how it would work.I’m really excited about this mod and think it could be something unique in the Minecraft community.If you think of someone else who could help me, please let me knowThank you for your time!

      By Hemioafjr · Sunday at 05:40 AM2 days

    • Mi mapa de journey map no carga las partes nuevas del mundo que exploro. Faustina

      Mi mapa de journey map no carga las partes nuevas del mundo que exploro.

      Hacew un mes cree mi mundo en aternos y todo iba bien, hasta que empece a explorr nuevos lugares y el mapa dej+o de cargar, además de que se me borran los waypoints que pongo. Intenté descargar el mod en otro lado, actualizar la versión, borrar el mod y volverlo a poner, pero nada funciona. Mi mundo está muy avanzado y nno puedo borrarlo.

      By Faustina · Sunday at 12:08 AM2 days

    Who's Online (See full list)

    • There are no registered users currently online
    1. Home
    2. Mod Developer Central
    3. Modder Support
    4. [1.16.5] Count entities for exporting
    • All Activity

    Important Information

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

    I accept
    • Sign In
    • Sign Up
    • Search
    • Menu
    • Existing user? Sign In
    • Sign Up
    • Files
    • Docs
    • Discord
    • Browse
      • Forums
      • Staff
      • Online Users
      • Leaderboard
    • Activity
      • All Activity
      • Search
    1. Home
    2. Mod Developer Central
    3. Modder Support
    4. [1.16.5] Count entities for exporting
    Search Where: Everywhere This Forum This Topic Topics Members Search: Content titles and body Content titles only Date Created: Any date Past 24 hours Past week Past month Past six months Past year Use: All of these words Any of these words Last Updated: Any date Past 24 hours Past week Past month Past six months Past year Search...

    Search

    Search Search by content type Everywhere This Forum This Topic Topics Members Find results in Search titles and body Search titles only Date Created Created any time Created past 24 hours Created past week Created past month Created past 6 months Created past year Last Updated Updated any time Updated past 24 hours Updated past week Updated past month Updated past 6 months Updated past year Close

    Configure browser push notifications

    close Chrome Safari Edge Firefox
    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.
    Safari (iOS 16.4+)
    1. Ensure the site is installed via Add to Home Screen.
    2. Open Settings App → Notifications.
    3. Find your app name and adjust your preference.
    Safari (macOS)
    1. Go to Safari → Preferences.
    2. Click the Websites tab.
    3. Select Notifications in the sidebar.
    4. Find this website and adjust your preference.
    Edge (Android)
    1. Tap the lock icon next to the address bar.
    2. Tap Permissions.
    3. Find Notifications and adjust your preference.
    Edge (Desktop)
    1. Click the padlock icon in the address bar.
    2. Click Permissions for this site.
    3. Find Notifications and adjust your preference.
    Firefox (Android)
    1. Go to Settings → Site permissions.
    2. Tap Notifications.
    3. Find this site in the list and adjust your preference.
    Firefox (Desktop)
    1. Open Firefox Settings.
    2. Search for Notifications.
    3. Find this site in the list and adjust your preference.

    Tag » How To Count Entities In Minecraft