ALB Studio

Block Limits

Cap how many hoppers, chests, redstone, mobs and other entities each island may have, and raise the limits with ranks or upgrades.

Docs updated · What changed

On this page

What it is forLink to this section

Hoppers, redstone and big mob farms are the usual cause of server lag on skyblock. The Block Limits addon caps how many of them one island may have:

  • Block limits: the most of one block per island, like 20 hoppers or 100 redstone dust.
  • Entity limits: the most of one mob or entity per island, like 60 animals or 30 armor stands. Groups like "all animals" or "all mobs" count many types at once.
  • Ranks and upgrades can raise each limit, so players have something to work towards.
  • Players see their counts and limits in /is limits.

To install it, put ALBSkyblock-Limits.jar into plugins/ALBSkyblock/addons/ and restart. See Addons.

See your island's limitsLink to this section

Type /is limits. The menu shows your own island: the one you own, or the one whose team you are in.

EntryWhat it shows
A blockHow many your island has placed, and the limit. For example "Placed: 12/20".
A mob or entityHow many are on your island now, and the limit.

An entry turns red and says (full) when the island has reached the limit. The first time you open it after a restart, the island is counted first. This takes a moment.

Block limitsLink to this section

When an island has as many of a block as its limit allows, nobody can place another one there. The action bar says "This island already has the most hopper allowed (20)." Break one to make room.

These are the limits the addon starts with:

BlockIdLimit per island
Hopperhopper20
Chestchest50
Redstone dustredstone_wire100

How it works:

  • The limit counts for the island's whole area, at every height. It counts for everyone who places blocks there: team, trusted players and visitors.
  • Each block counts on its own. A chest limit does not count trapped chests or barrels.
  • Only placing is stopped. Blocks on islands that already have more than the limit stay where they are.
  • Staff with the bypass turned on can place over the limit.

CountingLink to this section

The addon counts each island's limited blocks once, the first time someone places a limited block there after a restart. That first block is refused with "Counting this island's blocks... try again in a second." Place it again a second later.

When a player hits a limit, the island may be counted again to make sure the count is right. This happens at most every 30 seconds per island. The player sees "Checking this island's block count again... try again in a second."

Add a block limitLink to this section

Limit beacons to 5 per island:

  1. Hold a beacon in your hand.
  2. Open /is admin editor > Addons > Block Limits.
  3. Click + Add limit.
  4. Type 5 in chat.

Or add it to the configuration under limits, like beacon: 5.

Some blocks have a different id than the item that places them. Redstone dust places redstone_wire and string places tripwire. In the editor, holding redstone dust or string picks the right block for you. In the file, use the block id.

Entity limitsLink to this section

Entity limits work the same way for mobs and other entities. A key is one entity type, or a group of many types.

KeyCounts
An entity type, like cow, villager, armor_stand, minecart or item_frameOnly that type.
animalsEvery animal: cows, pigs, sheep, chickens and the rest.
monstersEvery hostile mob.
mobsEvery mob: animals, monsters, villagers, golems and the rest.
vehiclesMinecarts and boats.

An entity counts for its type and every group it is in. A cow counts for cow, animals and mobs. A new one may only appear while all of them are below their limit.

These are the limits the addon starts with:

KeyLimit per island
mobs150
animals60
villager20
armor_stand30
vehicles20

What is stoppedLink to this section

When a limit is full, the normal game can't add one more to the island. For example:

  • natural mob spawns and spawners,
  • breeding, spawn eggs, thrown eggs and dispensed spawn eggs,
  • building iron golems, snow golems, copper golems and withers,
  • fish, axolotls and tadpoles from a bucket (the player keeps the bucket),
  • placing armor stands, minecarts, boats, item frames and paintings.

The player who placed it, or the nearest player for breeding, eggs and golems, sees "This island already has the most <entity> allowed (<limit>)." on the action bar.

These are never stopped:

  • entities other plugins make, and /summon,
  • a parrot jumping off a player's shoulder,
  • a mob turning into another one, like curing a zombie villager, a zombie becoming a drowned, a tadpole growing into a frog, lightning or shearing a mooshroom.

Staff with the bypass turned on can still place armor stands, vehicles, frames and bucket mobs over the limit.

How entities are countedLink to this section

  • Only entities in the island's loaded chunks are counted. Entities in unloaded chunks don't spawn, breed or move either.
  • Players and the island helper never count.
  • The count is refreshed at most every 5 seconds per island, and every entity that is let in is added right away.

Add an entity limitLink to this section

Limit cows to 25 per island:

  1. Open /is admin editor > Addons > Block Limits > Entity limits.
  2. Click + Add limit.
  3. Type cow in chat.
  4. Type 25.

Or add cow: 25 to entity-limits in the configuration. A key that is not an entity type or group is skipped, and the console says so.

Raise a limitLink to this section

The limits in the config are the defaults for every island. There are two ways to give an island more.

With a rankLink to this section

Give the rank a permission with the new number:

ForPermissionExample
A blockalbskyblock.limit.<block>.<N>albskyblock.limit.hopper.40
An entity type or groupalbskyblock.entitylimit.<key>.<N>albskyblock.entitylimit.mobs.300

Give VIP islands 40 hoppers:

  1. In your permission plugin, give the VIP group albskyblock.limit.hopper.40.
  2. Islands whose owner is VIP may now have 40 hoppers.

Rules:

  • The permission is read from the island owner, not from the player placing the block.
  • The highest number the owner has is used instead of the config default.
  • It is only read while the owner is online. While they are offline, the config default counts (and any upgrade).
  • The permission must be given by a permission plugin. Being OP is not enough.
  • A rank permission only changes a block or entity that has a limit in the config. It can't add a new limit.

With an upgradeLink to this section

With the Upgrades addon, islands can buy higher limits in /is upgrade. Use the upgrade type limit for a block and entity-limit for an entity type or group. When the upgrade is higher than the rank (or the default), the upgrade wins.

The Upgrades addon ships with four limit upgrades already set up:

UpgradeRaisesTiers
Hopper Limithopper30, 45, 60
Chest Limitchest75, 100, 150
Redstone Limitredstone_wire150, 200, 300
Animal Limitanimals90, 120, 160

Two of them in the Upgrades config:

plugins/ALBSkyblock/addons/upgrades/config.yml
  hopper:
    type: limit
    block: HOPPER
    name: "&#7DD3FCHopper Limit"
    icon: HOPPER
    tiers:
      - {value: 30, cost: 15000, requirements: ["level:10"]}
      - {value: 45, cost: 40000, requirements: ["level:25"]}
      - {value: 60, cost: 100000, requirements: ["level:45"]}
  animals:
    type: entity-limit
    entity: animals
    name: "&#7DD3FCAnimal Limit"
    icon: WHEAT
    tiers:
      - {value: 90, cost: 15000, requirements: ["level:10"]}
      - {value: 120, cost: 40000, requirements: ["level:25"]}
      - {value: 160, cost: 100000, requirements: ["level:45"]}

value is the new limit. For a limit upgrade, block is the block id: REDSTONE_WIRE for redstone dust, TRIPWIRE for string. For an entity-limit upgrade, entity is an entity type or a group.

To add one in game, open /is admin editor > Addons > Upgrades and add an upgrade while you hold:

  • the block, for a limit upgrade,
  • a spawn egg, armor stand, minecart, boat, item frame or painting, for an entity-limit upgrade.

A group like animals can only be set in the file. See Upgrade types.

An upgrade only raises a limit that exists in the Block Limits config. A block or entity without a limit there stays unlimited.

Counts stay rightLink to this section

Block counts are kept in memory and change with every placed and broken block. They also change when blocks come or go without a player, so the count can't drift:

  • explosions (wind charges don't remove blocks, so they don't count),
  • pistons popping blocks, or pushing and pulling blocks onto or off an island,
  • water or lava washing blocks away, like redstone dust,
  • fire burning blocks,
  • falling blocks, endermen and other mobs changing blocks,
  • blocks forming, fading, growing and spreading, leaves decaying, trees growing and bone meal.

When an island is reset, it is counted again. When it is deleted, its counts are forgotten.

CommandsLink to this section

CommandWhat it doesPermission
/is limitsOpens your island's limits: every limited block and entity, with the count and the limit.albskyblock.command.limits

The addon has no admin commands, no island rights, no placeholders and no leaderboard board.

PermissionsLink to this section

PermissionDefaultWhat it does
albskyblock.command.limitstrueUse /is limits and the limits button. The limits count for everyone either way.
albskyblock.limit.<block>.<N>falseThe island may have N of that block. Read from the island owner.
albskyblock.entitylimit.<key>.<N>falseThe island may have N of that entity type or group. Read from the island owner.

ConfigurationLink to this section

The file is plugins/ALBSkyblock/addons/limits/config.yml. These are the defaults:

plugins/ALBSkyblock/addons/limits/config.yml
# Block Limits addon. Also editable in game: /is admin editor > Addons > Block Limits.
# Max of each block per island. The island owner's highest albskyblock.limit.<block>.<N> overrides it
# (e.g. albskyblock.limit.hopper.40). Redstone dust is redstone_wire, string is tripwire.
limits:
  hopper: 20
  chest: 50
  redstone_wire: 100

# Max of each mob / entity per island. A key is an entity type (cow, villager, armor_stand, minecart,
# item_frame...) or a group: animals, monsters, mobs (every mob), vehicles (minecarts and boats).
# An entity counts for its type and its groups, and only appears while all of them are below their limit.
# The owner's highest albskyblock.entitylimit.<key>.<N> overrides it (e.g. albskyblock.entitylimit.mobs.300).
# More with the Upgrades addon (type entity-limit). Only entities in the island's loaded chunks are counted.
# Blocked at the limit: natural spawns, spawners, breeding, eggs, golems, buckets of fish, placing armor
# stands, minecarts, boats, item frames, paintings. Never blocked: other plugins and /summon.
entity-limits:
  mobs: 150
  animals: 60
  villager: 20
  armor_stand: 30
  vehicles: 20
OptionDefaultWhat it does
limits.<block>hopper: 20, chest: 50, redstone_wire: 100The most of that block per island. A block that is not listed has no limit.
entity-limits.<key>mobs: 150, animals: 60, villager: 20, armor_stand: 30, vehicles: 20The most of that entity type or group per island. A type that is not listed (and not in a listed group) has no limit.

To remove a limit, delete its line. A limit of 0 is the same as no limit. A limit you deleted does not come back after an update.

After editing the file, run /is admin reload.

In-game editorLink to this section

Open /is admin editor > Addons > Block Limits. Changes apply at once.

ButtonWhat it does
A blockShows its limit. Click and type a new limit in chat (0 removes it). Right-click or press Q to remove it.
+ Add limitHold a block and click, then type its limit.
Entity limitsOpens the entity limits.

In Entity limits, the buttons work the same way. + Add limit asks you to type an entity type or group in chat, then the limit.

Each entry also shows the permission that raises it, like albskyblock.limit.hopper.<n>.

The menu is plugins/ALBSkyblock/addons/limits/menus/block-limits.yml. Change it in /is admin editor > Menus.

Each entry uses one of four looks:

LookUsed forPlaceholders
blockA block below its limit.{block} {count} {limit}
fullA block at its limit.{block} {count} {limit}
entityAn entity below its limit.{entity} {count} {limit}
entity-fullAn entity at its limit.{entity} {count} {limit}

To open the limits from another menu, use the function open-limits:

YAML
  limits:
    slot: 22
    item: HOPPER
    name: "&#7DD3FCBlock Limits"
    lore:
      - "&#7DD3FC» &fClick &7to open"
    actions:
      - "[function] open-limits"

See Menus and messages.

MessagesLink to this section

The messages are in plugins/ALBSkyblock/addons/limits/lang.yml, in the sections limits and limits-editor. Change them in /is admin editor > Messages. See Messages.

The names of the four groups are in limits.group-animals, limits.group-monsters, limits.group-mobs and limits.group-vehicles.

Type a class, method, config key or topic. Use the arrow keys and Enter to open a result.