Last active
October 25, 2018 00:40
-
-
Save topherPedersen/b71891a8bc6337ce1b7aa46b2343a750 to your computer and use it in GitHub Desktop.
Create a Blank World in Minecraft Raspberry Pi Edition
This file contains hidden or 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
| # From Tutorial "Making blank worlds in Minecraft Pi Edition" | |
| # Blog Post & Code by Mike Karthauser | |
| # https://iammikek.wordpress.com/2013/03/07/making-blank-worlds-in-minecraft-pi-edition/ | |
| from mcpi import minecraft | |
| import mcpi.block as block | |
| mc = minecraft.Minecraft.create() | |
| mc.postToChat("Clearing ALL...") | |
| blockId = block.AIR.id | |
| mc.setBlocks(-127,-127,-127,127,127,127,blockId) | |
| mc.postToChat("create floor") | |
| blockId = block.DIRT.id | |
| mc.setBlocks(-127,0,-127,127,0,127,blockId) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment