Creating a flat map for your next creation…

Snowbound created a nifty script to create a wide flat desert in your minecraft world.  Run this and everything above “sea level” will be replaced with sandstone.  Everything is gone – you may just see the remains of some trees or other items.

2013-02-14_20.20.28 2013-02-14_20.21.55 2013-02-14_20.31.10

Source code is below and on the repro here.

import sys
import mcpi.minecraft as minecraft
import mcpi.block as block

mc = minecraft.Minecraft.create()
mc.setBlocks(-128,0,-128,128,64,128,0)
if(len(sys.argv) > 1):
        bid = int(sys.argv[1])
else:
        bid = block.SANDSTONE.id

if bid  108:
        bid = block.SANDSTONE.id

mc.setBlocks(-128,0,-128,128,-64,128,bid)

Source

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s