How do I get rid of the blank line after an if statement like this?
>>> import mcpi.minecraft as minecraft
>>> import mcpi.block as block
>>> import time as time
>>> mc=minecraft.Minecraft.create()
>>> mc
<mcpi.minecraft.Minecraft instance at 0x767e2f58>
>>> block.GOLD_BLOCK=block.GOLD_BLOCK
>>> while True:
... x,y,z=mc.player.getPos()
... block_beneath=mc.getBlock(x,y-1,z)
... if block_beneath != block.GOLD_BLOCK:
... mc.setBlock(x,y-1,z,block.GOLD_BLOCK)
...
After the ..., it goes to a blank line and won't let me put in anymore code.
This seems like a stupid question to ask, and it is probably an easy fix, but I don't know how to fix it. Thanks for all the help!
Thanks for all your answers! I'll look over it and try the things you guys said to do! :D