Skip to main content

Code for standing on a specific block

Comments

3 comments

  • Cathy Cheo-Isaacs Community moderator
    Moderator

    Hi Jason Luff, there is a block in Code Builder that tests for a block. It can be found in the Blocks toolbox.

    You can code a conditional to test for a block at the player's world position as the player is walking, and in the screenshot below, a chicken will be spawned when the player is on cobblestone. Hope this helps!

    1
  • Cathy Cheo-Isaacs Community moderator
    Moderator

    You could also write something like this:

    0
  • Aleece Landis
    Expert (Gold)

    You may also be able to do something with command blocks

    1

Please sign in to leave a comment.