Skip to content

Instantly share code, notes, and snippets.

@seantibor
Created December 13, 2021 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seantibor/2594eea079f09d5c8de94049e243002a to your computer and use it in GitHub Desktop.
Save seantibor/2594eea079f09d5c8de94049e243002a to your computer and use it in GitHub Desktop.
Graph Inverted Parabolas in Minecraft Education Edition with Python
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