# Why is the block yellow

**URL:** <https://forum.makecode.com/t/why-is-the-block-yellow/41245>\
**Category:** Help\
**Tags:** game\
**Created:** [December 27, 2025, 5:38pm UTC](https://forum.makecode.com/t/why-is-the-block-yellow/41245 "2025-12-27T17:38:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/spike/32/33316_2.png) [@Spike](https://forum.makecode.com/u/Spike)\
**Post date:** [December 27, 2025, 5:38pm UTC](https://forum.makecode.com/t/why-is-the-block-yellow/41245/1 "2025-12-27T17:38:09Z")

</div>

Can someone please explain to me why the block in my code is yellow. (also the code wont work)

 ![IMG_0453](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/7/17e512385922875b620be4262f656864fec3d23a.jpeg)

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [December 27, 2025, 5:38pm UTC](https://forum.makecode.com/t/why-is-the-block-yellow/41245/2 "2025-12-27T17:38:41Z")

</div>

More than likely, it’s because you already have an event handler for the same event (on sprite of kind Player hits wall at location).

---

<div class="post-metadata">

**Author:** ![Peau12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peau12/32/29299_2.png) [@Peau12](https://forum.makecode.com/u/Peau12)\
**Post date:** [December 27, 2025, 7:27pm UTC](https://forum.makecode.com/t/why-is-the-block-yellow/41245/3 "2025-12-27T19:27:07Z")

</div>

You have another block for it. **IF** there are 2 blocks the same, it won’t work, but it only works for some blocks.
