# Where is this block from?

**URL:** <https://forum.makecode.com/t/where-is-this-block-from/30040>\
**Category:** Help\
**Created:** [August 9, 2024, 4:50pm UTC](https://forum.makecode.com/t/where-is-this-block-from/30040 "2024-08-09T16:50:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelpMeh](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@HelpMeh](https://forum.makecode.com/u/HelpMeh)\
**Post date:** [August 9, 2024, 4:50pm UTC](https://forum.makecode.com/t/where-is-this-block-from/30040/1 "2024-08-09T16:50:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/1/914b844137d14209251968aa2d233dd02851550c.jpeg)  
Can someone please tell me what extension gives you this block? (Hurdle)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [August 9, 2024, 4:56pm UTC](https://forum.makecode.com/t/where-is-this-block-from/30040/2 "2024-08-09T16:56:47Z")

</div>

It’s from the old Shang-Chi map that we did back in 2021. It was only up for 6 months or so. Here’s the code for that block and gravity jump.

namespace sprites {

```
 /**
 * Allow your sprite to jump and come back to the ground
 * before jumping again
 */
//% block="make $thisSprite=variables_get(mySprite) gravity jump"
export function gravity_jump (thisSprite: Sprite) {
    if (thisSprite.isHittingTile(CollisionDirection.Bottom)) {
        thisSprite.vy = -200
    }
}

/**
 * Direct sprite to automatically jump only when hitting
 * a wall to the right or left
 */
//% block="make $thisSprite=variables_get(mySprite) hurdle side wall"
export function wall_jump (thisSprite: Sprite) {
    if (thisSprite.isHittingTile(CollisionDirection.Left) || thisSprite.isHittingTile(CollisionDirection.Right)) {
        sprites.gravity_jump(thisSprite)
    }
}

```

}

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 9, 2024, 5:33pm UTC](https://forum.makecode.com/t/where-is-this-block-from/30040/3 "2024-08-09T17:33:37Z")

</div>

what does it even do tho? (i’ve never heard of or used this block lol)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [August 9, 2024, 5:36pm UTC](https://forum.makecode.com/t/where-is-this-block-from/30040/4 "2024-08-09T17:36:00Z")

</div>

It allows your enemy to detect that there’s a barrier in front of it and attempt to jump that barrier. It’s really best for swarms of enemies that are trying to follow the main character.
