# Simple Cookie Clicker

**URL:** https://forum.makecode.com/t/simple-cookie-clicker/10144
**Category:** Minecraft
**Created:** [September 20, 2021, 8:36pm UTC](https://forum.makecode.com/t/simple-cookie-clicker/10144 "2021-09-20T20:36:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![EgeoTube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/egeotube/32/5797_2.png) [@EgeoTube](https://forum.makecode.com/u/EgeoTube)
#### Post date: [September 20, 2021, 8:36pm UTC](https://forum.makecode.com/t/simple-cookie-clicker/10144/1 "2021-09-20T20:36:21Z")

</div>

I noticed this was kind of a trend to my friends so I made a simple cookie clicker in Minecraft!  
Basically:

> ```auto
> player.onItemInteracted(COOKIE, function () {
> gameplay.xp(1, mobs.target(LOCAL_PLAYER))
> })
> 
> ```

Sure that its way too simple but it works! This isn’t really a game i’m publishing here but you can copy the code and play it! Just get a cookie and click it! Enjoy!
