D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] python - minecraft pi

 

Ok so my code is now

import minecraft
import block

mc = minecraft.Minecraft.create()

x = raw_input("Block required ?")
x = int(x)

#block.BLOCK = float(BLOCK)

for x in xrange(0, 10):
  mc.setBlock(x, 13, 0, block.Block(x))


it no longer produces any errors can anyone spot anything obvious as to
why when i run this (and mc is also running) why it doesn't appear on
screen as in nothing appears in minecraft, if I enter 4 it should
produce a line of 13 blocks.

Paul

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq