promotional bannermobile promotional banner

Counter

Counts Container/or inventory Contents
1. Setup
Before using the commands, you must create the scoreboard objective mentioned in the script:
text
/scoreboard objectives add item_count dummy "Item Counter"
/scoreboard objectives setdisplay sidebar item_count
2. How to Count a Chest
Use this command to scan a container (chest, barrel, hopper) at specific coordinates:
text
/scriptevent my:count <x> <y> <z>
 
<button class="FTsWP RmjGdc IsqrXb" aria-label="Copy code text to clipboard." data-sfc-cp="" data-wiz-attrbind="disabled=wBBBTb_1i/ggNWmb" data-sfc-root="c" data-sfc-cb="KjsqPd=&amp;wBBBTb_1h:UEmoBd" data-complete="true" data-copy-service-computed-style="font-family: Arial; font-size: 13.3333px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(173, 175, 184);"></button>
 
<button id="" class="FTsWP RmjGdc IsqrXb" aria-label="Copy code text to clipboard." data-sfc-cp="" data-wiz-attrbind="disabled=wBBBTb_1i/ggNWmb" data-sfc-root="c" data-sfc-cb="KjsqPd=&amp;wBBBTb_1h:UEmoBd" data-complete="true" data-copy-service-computed-style="font-family: Arial; font-size: 13.3333px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(173, 175, 184);"></button>
  • Example: /scriptevent my:count 10 64 10
  • Result: The scoreboard will show entries like c_10_64_10: iron_ingot with the total amount found in that chest.
3. How to Count a Player's Inventory
Use this command to scan the inventory of the person who runs it (or the person targeted by a command block):
text
/scriptevent my:count_player
  • Example: Run this in chat.
  • Result: If your name is "Steve" and you have 5 Apples, the scoreboard will show Steve: apple 5.

4. Key Features
  • Automatic Cleanup: If you remove all diamonds from a chest and run the command again, the diamond entry will be deleted from the scoreboard automatically.
  • Short Names: It automatically removes the minecraft: prefix to keep the scoreboard tidy (e.g., minecraft:dirt becomes just dirt).
  • Persistent Totals: It sums up all stacks. If you have three stacks of 64 cobblestones, it will show a single entry with the value 192.
 

The Counter Team

profile avatar
  • 9
    Projects
  • 74
    Downloads

More from cript0pandaView all

  • Container Lootpool Generator project image

    Container Lootpool Generator

    • 5
    • Scripts

    generate lootpools with container & scriptevents

    • 5
    • May 5, 2026
    • Scripts
    • +1
  • Floating Text project image

    Floating Text

    • 10
    • Scripts

    Floating Text That Just Doesnt Die unless Use /remove[edu edition] or (nametager has a remove feature one of my other packs)

    • 10
    • May 5, 2026
    • Scripts
    • +1
  • Scoreboard Display Tool project image

    Scoreboard Display Tool

    • 4
    • Scripts

    /scriptevent my:db <source> <target> <range> puts people or fakeplayers on diffent scoreboards based on score

    • 4
    • May 5, 2026
    • Scripts
    • +1
  • Replaceitem X2 project image

    Replaceitem X2

    • 22
    • Scripts

    A more Powerful /replaceitem

    • 22
    • May 5, 2026
    • Scripts
    • +1
  • Container Lootpool Generator project image

    Container Lootpool Generator

    • 5
    • Scripts

    generate lootpools with container & scriptevents

    • 5
    • May 5, 2026
    • Scripts
    • +1
  • Floating Text project image

    Floating Text

    • 10
    • Scripts

    Floating Text That Just Doesnt Die unless Use /remove[edu edition] or (nametager has a remove feature one of my other packs)

    • 10
    • May 5, 2026
    • Scripts
    • +1
  • Scoreboard Display Tool project image

    Scoreboard Display Tool

    • 4
    • Scripts

    /scriptevent my:db <source> <target> <range> puts people or fakeplayers on diffent scoreboards based on score

    • 4
    • May 5, 2026
    • Scripts
    • +1
  • Replaceitem X2 project image

    Replaceitem X2

    • 22
    • Scripts

    A more Powerful /replaceitem

    • 22
    • May 5, 2026
    • Scripts
    • +1