From the book:
Learn to Program with Minecraft by Craig Richardson
- Open Spigot by clicking Start_Server.
- Open Minecraft and connect to the Spigot server by selecting Minecraft Python World from mulitplayer menu.
- Hit ESC on your keyboard to free your cursor from the Minecraft window, and then open a Python shell in IDLE. Make sure you are running Python 3!
You’ll need to have these three pieces of software open whenever your write programs that interact with Minecraft.
Then enter the following into your shell:
from mcip.minecraft import Minecraft
mc = Minecraft.create()