Bag of items

If you would like to store items like having a bag of cobblestone, or bag of different stuff, this is your place

This needs PlaceholderAPI and its extension of CheckItem, it can be done without it but its better with it, that's why this tutorial uses it.


In this case the bag will store COBBLESTONE and ANDESITE (2 items for you to see how to manage with more than one item). First we will create the one with COBBLESTONE and then, after finishing that one, the one with ANDESITE.

  • Create the EI with /ei create <id>

  • Set the material, name, lore, etc

In this case I already know that the "stuff" stored will be stored in a variable, that's why I wrote it instantly as variable in the lore.

  • Now let's create the variables (I will create both instantly, the cobblestone and andesite)


  • Now let's create the activator that will store the cobblestone, in this case RIGHT CLICK activator

    • Let's add the modification of the variable

    • Let's add the placeholder condition so this only works if the player has at least 1 cobblestone

    • And now the commands (the first one to display how many cobblestone he stored and the second to remove the cobblestones.)

  • And that's it, now our bucket pickups the cobblestone perfectly, but we need a way to take out the cobblestone, there are many ways to achieve this:

    • Make an activator that pickups cobblestone x1

    • Make an activator that pickups cobblestone x16

    • Make an activator that pickups cobblestone x64

    • Make an activator that gives as many cobblestone as you hold shift

    • Make an activator that drops ALL cobblestone stored inside the bucket

    • etc

  • I will make the one that pickups x32 cobblestone, the another ones follow the same method, its the same idea.


  • Activator LEFT CLICK

  • Condition the player has at least 32 cobblestone stored in the variable

  • Let's modify the variable

  • And let's give the player the cobblestone

  • Now everything is done, we just need to test it.

And its working perfectly !! Now let's do the same with andesite :P

And all goooood !!!, if have any question feel free to ask, there are many ways to complex this, such as creating a selector inside the lore of the item to select what to store, or how much to take, this is the most basic bag you can create ^^

Last updated