Blocks: Stash

Maintained by Picture of Adrian Greeve Adrian Greeve, Picture of Frédéric Massart Frédéric Massart
Add an inventory of items to your course and let your students find items by exploring the activities. #game #gamification
147 sites
26 fans

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 (3.0 or newer preferred)
2/ Install the three following plugins (without exception)
3/ Enable the filter "Stash snippets" you just installed through "Site administration > Filters"
4/ Enable conditional access, named enableavailability under "Site administration > Advanced features"
5/ Restore this backup file as a new course

6/ 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 set Stash.


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


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

Comments RSS

Show comments
  • Picture of Mike Nodding
    Mon, 5 Sep 2016, 4:04 PM
    will do - sorry
  • Picture of Stuart Jones
    Tue, 20 Sep 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.
  • Picture of Frédéric Massart
    Tue, 20 Sep 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.
  • Picture of Andrew Barrett
    Mon, 17 Oct 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?


  • Picture of Guido Roessling
    Mon, 31 Oct 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,

  • Picture of Adrian Greeve
    Wed, 2 Nov 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.
  • Picture of Adrian Greeve
    Wed, 2 Nov 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.
  • Picture of Anna Krassa
    Fri, 16 Dec 2016, 6:22 PM
    Hello Adrian and Frederic,
    What a cool tool is this! Just tested and absolutely loved it. Thank you!

    In Moodle 3.2 with Boost theme, while adding a location, the "Supplies" option displays twice. Unfortunately I can't share a screenshot here... :{
  • Picture of Frédéric Massart
    Mon, 19 Dec 2016, 10:00 AM
    Hi Anna,

    Could you please raise an issue for that in the github repo if there isn't one already?

  • Picture of Anna Krassa
    Mon, 19 Dec 2016, 3:33 PM
    Hi Frederic,

    Sure, I would be glad to. Just because I have never worked with github before, please confirm that this is the place where I should raise a New issue (since nothing similar seems to be there).

  • Picture of Frédéric Massart
    Mon, 19 Dec 2016, 3:43 PM
    That's it. Thanks a lot!
  • Picture of Stuart Jones
    Sat, 25 Feb 2017, 4:57 AM
    Do you know yet when you guys will be able to work on this plugin again?
  • Picture of Nicholas Fahey
    Fri, 3 Mar 2017, 8:33 AM
    This is great, is there a way to manually give/take items from students? In a blended k-12 environment this could be the basis of a classroom management system with health points (punishment) and gold (positive reinforcement).
  • Picture of Joseph Liaw
    Thu, 16 Mar 2017, 8:10 AM
    Great plugin for gamification! Idea for future enhancement: for each Stash items availability, it would be nice to have besides the option of time (e.g. appears only every 3 days) to have the option to limit the number of items for the course (e.g. there are only 7 Golden Unicorns hidden in the course!)--then it could be a race or scavenger hunt to find the limited number of items to help encourage course participation, reward high achievement (e.g. unlock Stash item once quiz score is above 90%), etc.
  • Picture of Frédéric Massart
    Thu, 16 Mar 2017, 11:28 AM
    Hi Joseph,

    Thanks for sharing your ideas. We have thought of setting a strict limit on the quantity of an item for the whole course, it's a good idea. We could also add more options to conditionally display the item. The trick is to find the right balance between have too many options, and not enough.

    You can already reward for a high achievement for a quiz. Set a quiz feedback for a result higher than 90% and add the shortcode there.

    Feel free to report your suggestions at

1 2 3
Please login to post comments