Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
skydiving in minecraft with teachcraft
from mcpi import minecraft
from mcpi import block
from minecraftstuff import MinecraftTurtle
from random import randint
import time
import os.path, sys
mc = minecraft.Minecraft.create(address="158.69.221.37", name="steve")
block_air = 0
block_flowing_water = 8
block_glass = 20
block_flower = 38
block_torch = 50
block_gold = 41
block_slime = 165
pos = mc.player.getPos()
mc.setBlocks(pos.x + 10, pos.y, pos.z, pos.x - 10, pos.y + 1, pos.z, block_glass)
while True:
me = mc.player.getTilePos()
for blockhit in mc.player.pollProjectileHits():
height = 10
pos = blockhit.pos
mc.player.setPos(pos.x, pos.y + 350, pos.z)
mc.setBlocks(pos.x, pos.y + height, pos.z, pos.x, pos.y + height, pos.z, block_slime)
mc.setBlocks(me.x, me.y, me.z, me.x, me.y + 1, me.z, block_gold)
time.sleep(0.025)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.