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
271 sites
37 fans
Moodle 2.9, 3.0, 3.1, 3.2, 3.3, 3.4

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 sets Stash, Gamification.


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


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 Frédéric Massart
    Tue, 10 Oct 2017, 12:05 PM
    Hi Joseph,

    Thanks for the kind messages.

    Backup should be working, we are distributing a backup of one of our demo course in the description of the plugin here above and it seemed to work whenever we tried to restore it in other sites. Note that you must have the same suite of plugins installed on the other sites.

    Could you describe a bit more what you are experiencing?
  • Picture of Joseph Liaw
    Wed, 11 Oct 2017, 9:08 AM
    Hi Frederic:

    Wow--thanks for your quick reply!

    I was testing out seeing if my course would restore to another server with all of my Stash items / swaps / snippets intact, and I double-checked that all 3 of the Stash plugins (block, availability, and snippet filter) were the same versions. However, after performing the restore, my Stash block shows up empty.

    This is a rather large course (over 270Mb) with over 20 Stash items and several trades, so it is pushing the limits!!! I will try again and restore only a small section of the course to a blank course to see if that makes a difference and report back....

    Thank you again for sharing your great work with the Moodle community--I don't think there is any other tool quite like Stash out there for gamification and it's adds some much needed fun to our courses!!!
  • Picture of Frédéric Massart
    Wed, 11 Oct 2017, 12:27 PM
    Hey Joseph. What happens when you restore the backup in the description of this plugin? I tried and it worked. Perhaps you could share your backup file with me at fred at branchup dot tech, and I'll see what happens.
  • Picture of Govind Soni
    Wed, 8 Nov 2017, 12:12 AM
    will it work with moodle mobile?
  • Picture of Joseph Liaw
    Wed, 8 Nov 2017, 10:21 AM
    Hi Frederic:

    Wanted to report that backup and restore worked perfectly on a Moodle 3.2 instance with 2 very large courses (over 250MB) with several hundred activities, many Stash objects, Trades, and conditional access to activities via the Stash availability plugin...AWESOME set of tools for gamification! Can't wait to see what kind of creative things people come up with the Stash set of tools!!
  • Picture of Joseph Liaw
    Thu, 30 Nov 2017, 10:18 PM
    Small bug report:

    Stash currently prevents the non-editing teacher role from working (they will get an error message and can not access your course). There are also small conflicts with the amazing Snap theme from Moodlerooms, but it is not a big deal (I think it is how Snap deals with blocks--menu navigation doesn't work but the breadcrumb trail does--not a big deal once you train teacher).

    Overall, Stash is the BEST plugin for gamification of your course because it is so brilliantly implemented to allow for teacher creativity with the Trade and Availability tools for conditional access! Thank you!
  • Picture of Carlos López Ardao
    Tue, 16 Jan 2018, 8:38 PM
    Fantastic plugin for gamification. Absolutely recommended!!!. It works fantastic in Moodle 3.4 with Adaptable Theme. The only problem is that non-editing teachers can not see the stash and all the elements that include stash snipets does not work (it appears a message error). Any solution or patch?
  • Picture of Carlos López Ardao
    Tue, 16 Jan 2018, 8:54 PM
    Problem solved. In order for a non-editing teacher to be able to view the inventory, you must access as Administrator and go to Site administration => Users => Permissions ==> Define roles. You must enable the 3 permissions related to the stash plugin (search for stash). Fantanstic plugin. Thanks
  • Picture of Frédéric Massart
    Wed, 17 Jan 2018, 5:16 AM
    Hi Carlos,

    Thanks for sharing your enthousiasm! I believe that Adrian and I already discussed the complexity for non-editing teachers to use the plugin. I'm confident that we will simplify this in a future release.

    Thanks for sharing your solution!
  • Picture of Joseph Liaw
    Wed, 17 Jan 2018, 10:09 PM
    Hi Frederic:

    Wanted to report and verify that Carlos solution worked for adding non-editing teachers to a course--fantastic!

    Small bug report: I tried resetting a course to get ready for a new semester, and it looks like Stash does not have Course Reset implemented yet (not clearing out the Stash items and locations, but rather clearing out old students and items acquired). Not a big deal, but something to implement as Stash is used more and more by teachers around the world!

    Thank you!
  • Picture of Adrian Greeve
    Thu, 18 Jan 2018, 8:45 AM
    Hi Joseph. The course reset is a good idea. I'll try to remember that.
    Sorry about the inaction of late. I've been extremely busy trying to prepare for the GDPR compliance required later on this year.
  • Picture of Sue Stuart
    Wed, 31 Jan 2018, 12:24 AM
    Is there a recommended pixel size for stash icons. I have added ones at 1000x1000 pixels and the same image reduced to 50x50 pixels and they are both the same size. Is there any way to reduce the size they display at?
  • Picture of Frédéric Massart
    Wed, 31 Jan 2018, 2:45 AM
    Hi Sue. We recommended between 200x200 and 100x100. The images weigh the same regardless of where they are displayed, on the display size changes. It is therefore not recommended to upload large images. Ideally, Moodle should offer a tool for resizing images but to my knowledge there isn't any yet. I hope this helps.
  • Picture of Sue Stuart
    Thu, 8 Feb 2018, 5:10 PM
    Is there a facility to change the name of the Stash block. We work with disaffected kids who have been excluded from mainstream education, and the connotation with a stash of drugs is putting us off from using the facility. The the Level Up Block can be renamed but I can't see any way to do it for this.
  • Picture of Adrian Greeve
    Fri, 9 Feb 2018, 9:09 AM
    Hello Sue. The most recent version of this plugin has the ability to change the block title via the "actions" cog. This version however is only located on github You can click the 'Clone or download' button to download a zip of this version. Alternatively you can change the string through the language customisation settings. This is located in 'Site administration > Language > Language customisation'. After loading all of the strings you can select block_stash and then look for the string 'plugin'. Changing this string will change the title of the stash block.
1 2 3 4 5
Please login to post comments