Code for standing on a specific block
Hi, I am wondering if there is a pre-built function in Minecraft Education that will run when a player is touching or standing on a specific block (like cobblestone).
0
-
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 -
You could also write something like this:
1 -
You may also be able to do something with command blocks
1
Please sign in to leave a comment.
Comments
3 comments