# Event for interacting with world objects\>

**URL:** <https://forum.makecode.com/t/event-for-interacting-with-world-objects/15690>\
**Category:** Minecraft\
**Created:** [October 3, 2022, 5:22pm UTC](https://forum.makecode.com/t/event-for-interacting-with-world-objects/15690 "2022-10-03T17:22:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![misha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/misha/32/6911_2.png) [@misha](https://forum.makecode.com/u/misha)\
**Post date:** [October 3, 2022, 5:22pm UTC](https://forum.makecode.com/t/event-for-interacting-with-world-objects/15690/1 "2022-10-03T17:22:33Z")

</div>

Hi, I couldn’t find a way to catch an event of pressing levers or buttons placed in the world. “[on Item Used](https://minecraft.makecode.com/reference/player/on-item-used)” seems is running only if you use some items while holding them in your hand and doesn’t work for buttons at all for some reason. While I was looking for a handler which runs if you press a lever or button which is placed on a wall for example.  
Maybe there is a workaround to do that using the existing functionality?

Thank you.

---

<div class="post-metadata">

**Author:** ![rymc88](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rymc88/32/13577_2.png) [@rymc88](https://forum.makecode.com/u/rymc88)\
**Post date:** [December 9, 2022, 5:27pm UTC](https://forum.makecode.com/t/event-for-interacting-with-world-objects/15690/2 "2022-12-09T17:27:49Z")

</div>

I was hoping for a code block for this too and if there is a way to detect what a projectile hit/position. Is there a workaround for these? @richard @jwunderl
