Lesson 1: First Step

First Program in Minecraft


In our first video we will learn how to use the notepad++ code editor and program a block into Minecraft using Python code!

#Step Block
import mcpi.minecraft as minecraft
import mcpi.block as block

mc = minecraft.Minecraft.create()

playerPos = mc.player.getPos()

mc.setBlock(playerPos.x,playerPos.y,playerPos.z-1,block.GOLD_BLOCK)