Created
December 13, 2021 19:31
-
-
Save seantibor/2594eea079f09d5c8de94049e243002a to your computer and use it in GitHub Desktop.
Graph Inverted Parabolas in Minecraft Education Edition with Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x, y, z = player.position | |
z += 10 | |
def f(a): | |
return -(a ** 2) // 2 + 25 | |
for i in range(-20,20): | |
pos1 = (x + i, y+ f(i), z) | |
pos2 = (x + i, y+ f(i+1), z) | |
world.fill(pos1, pos2, "diamond block") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment