Blocks ::: block_stash
Maintained by Adrian Greeve, Frédéric Massart ⭐
Add an inventory of items to your course and let your students find items by exploring the activities. #game #gamification
Latest release:
1201 sites
86 fans
Current versions available: 2

The stash block is a good way to encourage more interaction with activities and is invaluable for teachers looking to gamify their course.

This plugin introduces a block that shows students items that they have picked up through the course.

The teacher can create items and then place them in activities and resources for students to find.

Items can be set to be collected once and encourages exploration of the course material. It is also possible to set an item to have an unlimited supply from a set location. This could encourage  students to return to specific areas to collect more items. 

You can also check out this video:

Quick start

We've crafted a sample course for you to try, it is the best way to see what this plugin has to offer. Please accurately follow those steps:

1/ Get your hands on a Moodle installation
2/ Install the three following plugins (without exception)
3/ Enable conditional access, named enableavailability under "Site administration > Advanced features"
4/ Restore this backup file as a new course

5/ Enrol a student in the new course
Now, login as that student and try the course

Important note

In order to make this plugin easier to use and fully featured, please also install:

They are highly recommended.


This plugin is part of sets Stash, Gamification.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6


Adrian Greeve (Lead maintainer)
Frédéric Massart ⭐: (The real lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Thu, Aug 18, 2016, 4:10 PM
    Hi Adrian, Thanks for the quick response. I am giving a presentation on Stash in three weeks at a regional conference and am thrilled that you have taken gamification to another level. As you know, Pokemon Go is the rage, and this same kind of hunt-and-collect gaming leads to innumerable language learning tasks. We even have a plan to make 5-6 images connected so they can be combined to make a story or solve a mystery, that students create after they have collected the pieces. But to do those tasks, students have to see the dialogue in the images (we use short balloons that students copy and match with other images and texts). So 100x100 pixals is too tiny to read. Perhaps, I can send you some screenshots. However, if you are convinced, then I hope you can at least put something editable into the code snippet that I can change manually. But the click and popup to something 4x as large may work as well. The more serious problem is that the stash is not working at all despite logging in as a student, placing the image in several teacher-only spots, and refreshing/logging in/out. Any more suggestions I can do to get it working? If it is better to work via email, contact me here: hinkel at Thanks so much!
  • Thu, Aug 18, 2016, 4:31 PM
    When I click on the button under the image, it does *not* disappear. Just nothing happens. I changed the setting to allow ulimited supplies and 1 second intervals, but still no change. As a student, in the Stash block, it says "Your inventory is empty" which stays the same. I am using Moodle 3.0.3+, block_stash 1.0.0 2016072100 enabled.
  • Wed, Aug 24, 2016, 2:59 AM
    I'm having the same problem Don Hinkelman describes above. It was working a couple of weeks ago, but now new instances that I add have this problem. I'm on 3.1, and I haven't updated the plugin or anything. I can't figure out what could have changed.
  • Wed, Aug 24, 2016, 11:01 AM
    Don and I figured out that the problem he was having was due to the use of the TinyMCE editor. Using the Atto editor fixed the problem.
  • Sun, Aug 28, 2016, 10:33 AM
    Does obtaining an item in Stash trigger an event? If so, could I add XP to such an action using the Level UP! plugin? If so, that indirectly allows teachers to give XP from student achievement by restricting access to item-containing resources based on achievements.
  • Mon, Aug 29, 2016, 10:49 AM
    Hi Stuart, in fact, "Level UP" should already reward students for picking up an object, the event triggered is '\block_stash\event\item_acquired'.
  • Mon, Sep 5, 2016, 3:51 PM
    hi, looks really interesting - i'm getting a testing error at installation. Using Moodle 3.0.5 plugin version 2016082601 / 1.1.0

    error output below:

    Static function block_stash\restore_decode_rule::encode_content() should not be abstract


    any help appreciate - cheers.
  • Mon, Sep 5, 2016, 4:01 PM
    Hi Mike,

    This is not an ideal place to report bugs. Please follow-up at

  • Mon, Sep 5, 2016, 4:04 PM
    will do - sorry
  • Tue, Sep 20, 2016, 9:39 AM
    A needed update to this plugin would be a feature to subtract items conditionally. For example, students can lose 5 gold coins to "buy" a sword (click on the sword, 5 gold coins go away), or exchange component pieces to make a sword or something. It would make an item-based system/economy for gamification much more interactive and dynamic.
  • Tue, Sep 20, 2016, 4:35 PM
    Hi Stuart, thanks for your interest. Yes, you're absolutely right that feature is needed. Adrian and I already discussed it and plan to implement "trading/crafting/buying" the next time we get an opportunity to work on this plugin.
  • Mon, Oct 17, 2016, 6:06 PM
    Hi Adrian and Frederic,

    Thanks for such a useful plugin. Quick question, is there any way for this to work site wide across multiple courses?


  • Mon, Oct 31, 2016, 9:34 PM
    Hi Frédéric,
    I really like the plugin! One nice addition would be if there could be statistical overview for the teacher (probably not very difficult to do?), similar to what is shown in "assign" elements.
    For example - number of participants, number of stashes available (in total), average number of stashes, and perhaps (if the total is not too large) a breakdown of the number of users with "X" stashes. Alternatively, perhaps a tabulated view of who has which stash, with one user per row and one column for each stash, and a simply checkmark (or filled green vs. grey) box.
    That would really be great - my course currently has 1250+ students, and getting an impression of their "stash progress" is hard to achieve, as I currently seem to be limited to "sorting by name"...
    Best regards,

  • Wed, Nov 2, 2016, 8:46 AM
    Hello Andrew Barrett,

    We're glad to hear that our plugin is of some use. Unfortunately stashes are currently restricted to a single course.
  • Wed, Nov 2, 2016, 8:49 AM
    Hello Guido Roessling,

    Thank you for trying out our plugin. We currently only have a limited report setup for the stash which shows which items have been collected by each student. I can understand that it could be difficult to make your way around this report with so many students. I think that your suggestions are useful. When we expand the reports, hopefully we can incorporate these ideas.
Please login to post comments