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:
1196 sites
87 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


  • Fri, Sep 25, 2020, 7:52 PM
    Hi, after installing and enabling i cant seem to find it... i cant add the block nor can i configure/add items... any hint/help?
  • Tue, Oct 27, 2020, 6:47 PM
    Hi, after trying to add the block to a course, I got the error: 'The stash is not enabled. Was the block added to the course?'. How do I solve this issue? Stash block and availability stash were enabled.
  • Fri, Jan 8, 2021, 6:49 AM
    Hi, excuse me, may be it's so simple, but i'm using stash into a simple page, i put the code [stashdrop secret="lEpBwF" text="Pick up!" image] into the content (i tried both, content and description), but when I click on the button, nothing happens. I don´t know what to do. Please help me.
  • Fri, Jan 8, 2021, 8:50 AM
    Hello Xochitl CP.
    The only thing that I can think of that would result in the above code not being changed is that the filter has been disabled. As an administrator go to Site administration > Plugins > Filters > Manage filters - and check that "Shortcodes" is active.

    Can you also describe what a simple page is? Does it have an editor when you are adding text to it? Is block_stash working in other areas?
  • Fri, Jan 8, 2021, 10:36 AM
    Hi again, I checked the filters and "shortcodes" is active. A simple page is a page created with moodle with text into a

    . I just copy and paste the code into the page. This is my first block_stash. :'(. The page is available when I mark a lesson as finished. So, it suppossed that student gets in and take the reward. That's all. Is the code right? I saw in the video other instructions in javascript.

  • Fri, Jan 8, 2021, 10:46 AM
    Hi Oxchitl:

    Which theme are you using? If you are using Snap, because of the unique way it shows pages in-line, the Stash filter isn't active on the main course page. If you manually create a link to the page (e.g. "Enter HERE to pick up treasure!" and create a hyperlink to the page), then students can pick up the Stash item since the shortcode filter can parse the code.

    Hope that helps.
  • Fri, Jan 8, 2021, 12:04 PM
    You were right. It is the theme. I followed your advice. It works. Thank you so much.
  • Fri, May 28, 2021, 11:25 PM
    Hello ! First of all thanks for your plugin, I just discovered it and I see all the way to gamify my future courses !
    Just a question : I saw a trade option ; I created a trade (a object for an other) but when I test it as a student I don't see where I can trade my objects ?
  • Wed, Jun 2, 2021, 2:14 PM
    Hello Sébastien, Thanks for your kind words about the plugin. I don't have much detail to go on as to what might be the problem here, so I'll try to explain the process. The trade option works in a similar way to the items. You copy the "Snippet" (it looks like [stashtrade secret="123"]) and paste it in an editor somewhere on the course. The trade object should become visible for both the teacher and the student. If you can't see it as a teacher then you may have to try copy and pasting the snippet again.
  • Thu, Jun 3, 2021, 1:15 AM
    Hi Adrian ! Thanks for feedback, I just found trade snippets thanks to your indications ! Thanks again for your work !
  • Mon, Jun 7, 2021, 7:49 PM
    Great plugin.
    I set up one item to be picked up once (supplies:1) in one location. It appears when the condition is satisfied. But if the item isn't picked up or one day pass, it "disappears" or doesn't appear until I reset it--what I usually do is to set the interval to any time (10 minutes, 1 hour) and then save it.
    The same thing happens if I have a scarce item to be picked once in different locations.
    Thank you for any help.
  • Fri, Jun 18, 2021, 10:11 AM
    Hello Victor Azuaje,
    I'm sorry to hear that you're having problems with items that have a limited supply. I haven't been able to replicate the problem. Are you running a standard install of Moodle or do you have some plugins / themes installed? If you list them then I could install them on my machine and see if they are some how interfering with the stash items. Any further information would be most useful.
  • Wed, Jun 30, 2021, 5:05 AM
    I was able to isolate the problem. This is an item (two or three instances of it) with some two restrictions: pass a test with a certain grade and before a certain date.
    If a student who has not satisfied the restrictions tries to pick the item up, the system allows her to do it. If there is one instance, this is bad for the trade option when only one item is needed to earn another item. If more than one item is needed, the student got the first one, but the other instances "disappear."
    Settings for more than one instance:
    Scarce item: not enabled.
    Supplies:1 (instance per location)
    Collection Interval: 16 weeks (I've trying any combination just to see if this fixes the issue. The student is supposed to pick only one instance during the semester.)
    We're running Moodle 3.8.6 with the Lambda theme. We're moving to 3.10 soon.
    We "solved" the problem by hiding the clickable items and posting non-clickable images in different labels and inverse mirror restrictions. (Images work better for students with disabilities.) When the restrictions are satisfied, the non-clickable image goes away and the pick-up one replaces it.
    The ideal situation: if restrictions are not satisfied, "pick up!" button does nothing.
    Thank you for the help.
    ** My students love the trade option since allows them to choose different forms of evaluations based on their performance. On their behalf, thank you for your hard work.)
  • Fri, Aug 27, 2021, 3:36 PM
    you did a really nice job with the plugin.
    I just tried the plugin and I have the problem that logged in students can change the setup of the plugin, they can add and delete items and they can change which person has which item. So, they can change the settings and they can give themselves the items without doing the work. Do you maybe know what the problem here is?
  • Sat, Oct 2, 2021, 5:05 PM
    This plugin is not working in moodle mobile app. How to make it work?
Please login to post comments