{"id":32288,"date":"2026-06-01T17:40:05","date_gmt":"2026-06-01T14:40:05","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/"},"modified":"2026-06-01T17:40:05","modified_gmt":"2026-06-01T14:40:05","slug":"blockentitylimiter","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/","title":{"rendered":"BlockEntityLimiter"},"content":{"rendered":"<p># BlockEntityLimiter<\/p>\n<p>A Folia-compatible Minecraft plugin that limits the number of block entities per chunk for Minecraft 1.21.x.<\/p>\n<p>## Features<\/p>\n<p>&#8211; **Folia Compatible**: Fully compatible with Folia&#8217;s multi-threaded regions<br \/>\n&#8211; **High Performance**: Smart caching system reduces lag significantly<br \/>\n&#8211; **Chunk-based Limiting**: Limits block entities on a per-chunk basis<br \/>\n&#8211; **Master Limit**: Optional master limit that controls total block entities across all types<br \/>\n&#8211; **Individual Limits**: Each block entity type has its own configurable limit<br \/>\n&#8211; **Toggle System**: Enable\/disable limiting for each block entity type<br \/>\n&#8211; **No Deletion**: Plugin only prevents placement, never removes existing block entities<br \/>\n&#8211; **Hot Reload**: Reload configuration without restarting the server<br \/>\n&#8211; **Shulker Box Support**: Single config entry covers all shulker box colors<br \/>\n&#8211; **Thread-Safe**: Designed for Folia&#8217;s concurrent region system<br \/>\n&#8211; **Auto-Forceload**: Automatically forceloads chunks with high block entity counts<\/p>\n<p>## Tracked Block Entities<\/p>\n<p>&#8211; Decorated Pot<br \/>\n&#8211; Ender Chest<br \/>\n&#8211; Blast Furnace<br \/>\n&#8211; Smoker<br \/>\n&#8211; Furnace<br \/>\n&#8211; Barrel<br \/>\n&#8211; Dropper<br \/>\n&#8211; Dispenser<br \/>\n&#8211; Chest<br \/>\n&#8211; Trapped Chest<br \/>\n&#8211; Hopper<br \/>\n&#8211; Shulker Box (all colors)<\/p>\n<p>## Installation<\/p>\n<p>1. Download the latest release JAR file<br \/>\n2. Place it in your server&#8217;s `plugins` folder<br \/>\n3. Restart your server or load the plugin<br \/>\n4. Configure `plugins\/BlockEntityLimiter\/config.yml` to your needs<\/p>\n<p>## Configuration<\/p>\n<p>### Master Limit<br \/>\nThe master limit controls the total number of block entities across ALL types:<\/p>\n<p>&#8220;`yaml<br \/>\nmaster-limit:<br \/>\n  enabled: true    # Enable\/disable master limit<br \/>\n  amount: 1000     # Maximum total block entities per chunk<br \/>\n&#8220;`<\/p>\n<p>**Example Scenarios** (with master limit of 1000):<br \/>\n&#8211; 500 chests + 500 ender chests = **Allowed**<br \/>\n&#8211; 100 chests + 900 ender chests = **Allowed**<br \/>\n&#8211; 600 chests + 500 ender chests = **Blocked** (exceeds master limit)<\/p>\n<p>### Individual Block Entity Limits<\/p>\n<p>Each block entity type has two settings:<\/p>\n<p>&#8220;`yaml<br \/>\nblock-entities:<br \/>\n  chest:<br \/>\n    enabled: true   # Enable limiting for this type<br \/>\n    limit: 100      # Maximum of this type per chunk<br \/>\n&#8220;`<\/p>\n<p>&#8211; `enabled: true` &#8211; This block entity type will be limited<br \/>\n&#8211; `enabled: false` &#8211; This block entity type can be placed without restriction<br \/>\n&#8211; `limit` &#8211; Maximum number of this specific type per chunk<\/p>\n<p>### How Limits Work Together<\/p>\n<p>When placing a block entity, the plugin checks:<br \/>\n1. Is limiting enabled for this block entity type?<br \/>\n2. Has the individual limit been reached?<br \/>\n3. (If master limit is enabled) Has the master limit been reached?<\/p>\n<p>Placement is **blocked** if any limit is reached.<\/p>\n<p>### Forceload Feature<\/p>\n<p>The plugin can automatically forceload chunks with many block entities:<\/p>\n<p>&#8220;`yaml<br \/>\nforceload:<br \/>\n  enabled: false          # Enable\/disable auto-forceload<br \/>\n  threshold: 50           # Minimum block entities to trigger forceload<br \/>\n  notify-player: true     # Notify player when chunk is forceloaded<\/p>\n<p>  periodic-check:<br \/>\n    enabled: true         # Enable periodic validation of forceloaded chunks<br \/>\n    interval: 30          # Check every X minutes<br \/>\n    delay-per-chunk: 20   # Ticks between checking each chunk (20 = 1 second)<br \/>\n    verbose: false        # Log detailed info for each chunk check<br \/>\n&#8220;`<\/p>\n<p>**How it works:**<br \/>\n&#8211; When a chunk reaches the threshold, it&#8217;s automatically forceloaded<br \/>\n&#8211; Forceloaded chunks stay loaded even when no players are nearby<br \/>\n&#8211; Useful for farms, storage systems, and automated setups<br \/>\n&#8211; **Persistent across restarts**: Forceloaded chunks are saved to `forceloaded-chunks.yml`<br \/>\n&#8211; When block entities drop below threshold (by breaking blocks), forceload is removed<br \/>\n&#8211; Players are notified when their chunk is forceloaded (optional)<\/p>\n<p>**Periodic Validation:**<br \/>\n&#8211; Every X minutes, the plugin checks all forceloaded chunks<br \/>\n&#8211; Validates each chunk still has enough block entities<br \/>\n&#8211; If below threshold, removes forceload automatically<br \/>\n&#8211; Checks chunks one at a time with configurable delay to prevent lag<br \/>\n&#8211; Example: With 100 forceloaded chunks and 20 tick delay, full check takes ~33 seconds<br \/>\n&#8211; **Verbose mode**: When enabled, logs detailed information about each chunk check to console<\/p>\n<p>**Example:** Set threshold to 50. When a chunk has 50+ hoppers\/chests\/furnaces, it stays loaded.<\/p>\n<p>## Commands<\/p>\n<p>| Command | Permission | Description |<br \/>\n|&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;-|<br \/>\n| `\/belimiter reload` | `blockentitylimiter.reload` | Reload the configuration |<br \/>\n| `\/belimiter forceloaded [page]` | `blockentitylimiter.admin` | List all forceloaded chunks (paginated) |<br \/>\n| `\/belimiter` | `blockentitylimiter.use` | Show help message |<\/p>\n<p>**Aliases**: `\/bel`, `\/blocklimiter`<\/p>\n<p>**Forceloaded Command Pages:**<br \/>\n&#8211; Page 1: Shows summary with total count<br \/>\n&#8211; Page 2+: Shows list of chunks (10 per page)<\/p>\n<p>## Permissions<\/p>\n<p>| Permission | Default | Description |<br \/>\n|&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;-|<br \/>\n| `blockentitylimiter.use` | true | Access to main command |<br \/>\n| `blockentitylimiter.reload` | op | Reload configuration |<br \/>\n| `blockentitylimiter.admin` | op | Access admin commands |<\/p>\n<p>## Performance<\/p>\n<p>The plugin uses an intelligent caching system to minimize lag:<br \/>\n&#8211; **Cache Duration**: 500ms (configurable in code)<br \/>\n&#8211; **Automatic Invalidation**: Cache updates when blocks are placed\/broken<br \/>\n&#8211; **Memory Management**: Automatic cleanup of old cache entries<br \/>\n&#8211; **Thread-Safe**: ConcurrentHashMap for Folia compatibility<\/p>\n<p>In testing scenarios with high block placement rates, the cache reduces chunk scanning by over 95%, preventing lag spikes.<\/p>\n<p>### Forceload Safety<\/p>\n<p>The forceload feature is designed to be safe and reversible:<br \/>\n&#8211; \u2705 **Non-destructive**: Only sets chunks to forceloaded, never modifies blocks<br \/>\n&#8211; \u2705 **Automatic cleanup**: Removes forceload when block entities drop below threshold<br \/>\n&#8211; \u2705 **Persistent storage**: Saves to `forceloaded-chunks.yml` and restores on restart<br \/>\n&#8211; \u2705 **Periodic validation**: Automatically checks and removes invalid forceloads<br \/>\n&#8211; \u2705 **Manual override**: Admins can manually remove forceload with `\/forceload remove`<br \/>\n&#8211; \u2705 **Graceful shutdown**: Saves all data before server stops<br \/>\n&#8211; \u26a0\ufe0f **Memory usage**: Forceloaded chunks consume server memory &#8211; use reasonable thresholds<br \/>\n&#8211; \u26a0\ufe0f **Performance**: Too many forceloaded chunks can impact performance &#8211; monitor with `\/belimiter forceloaded`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Limits the number of block entities per chunk<\/p>\n","protected":false},"featured_media":32289,"template":"","meta":{"_minecraft_slug":"blockentitylimiter","_minecraft_project_id":"qQDeaCRo","_minecraft_author":"MistaSoup","_minecraft_license":"MIT","_minecraft_downloads":33,"_minecraft_follows":0,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"blockentitylimiter.zip","_minecraft_size_bytes":82022,"_minecraft_version_count":4,"_minecraft_updated_at":"2026-05-15T21:54:58.679080Z","_minecraft_date_created":"2026-01-25T04:55:44.884940Z","_minecraft_date_modified":"2026-01-31T00:24:38.011436Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/blockentitylimiter","_minecraft_icon_attachment_id":32289,"_minecraft_imported_at":"2026-06-01T14:40:07+00:00","_minecraft_import_hash":"b397a9e1bbf9e7248cb3c7067f6c4eef","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[43,125,89,90,127,128,129,92],"mod_loader":[131,132,133,134],"minecraft_version":[62,37,40,41,73,74,38,78,79,80,81,82],"class_list":["post-32288","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-cursed","mod_category-folia","mod_category-game-mechanics","mod_category-optimization","mod_category-paper","mod_category-purpur","mod_category-spigot","mod_category-utility","mod_loader-folia","mod_loader-paper","mod_loader-purpur","mod_loader-spigot","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>BlockEntityLimiter - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BlockEntityLimiter - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Limits the number of block entities per chunk\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/\",\"name\":\"BlockEntityLimiter - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/blockentitylimiter-icon-335aa6b8bf9d29b5ee9b6188ccfb9c9150bc4a6d_96.webp\",\"datePublished\":\"2026-06-01T14:40:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/blockentitylimiter-icon-335aa6b8bf9d29b5ee9b6188ccfb9c9150bc4a6d_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/blockentitylimiter-icon-335aa6b8bf9d29b5ee9b6188ccfb9c9150bc4a6d_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/blockentitylimiter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BlockEntityLimiter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BlockEntityLimiter - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/","og_locale":"en_US","og_type":"article","og_title":"BlockEntityLimiter - Minecraft","og_description":"Limits the number of block entities per chunk","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/","name":"BlockEntityLimiter - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/blockentitylimiter-icon-335aa6b8bf9d29b5ee9b6188ccfb9c9150bc4a6d_96.webp","datePublished":"2026-06-01T14:40:05+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/blockentitylimiter-icon-335aa6b8bf9d29b5ee9b6188ccfb9c9150bc4a6d_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/blockentitylimiter-icon-335aa6b8bf9d29b5ee9b6188ccfb9c9150bc4a6d_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/blockentitylimiter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"BlockEntityLimiter"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/32288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/32289"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=32288"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=32288"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=32288"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=32288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}