Test Commands PY

# Test Commands
import time
import telnetlib
LCM = telnetlib.Telnet('mc.livingcomputers.org', 4711)
input('world.getBlock')
LCM.write(('world.getBlock(100,100,100)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.getBlocks')
LCM.write(('world.getBlocks(100,100,100,101,101,101)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.getBlockWithData')
LCM.write(('world.getBlockWithData(100,100,100)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.setBlock')
LCM.write(('world.setBlock(100,100,100,0)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.setBlocks')
LCM.write(('world.setBlocks(100,100,100,101,101,101,0)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.getPlayerIds')
LCM.write(('world.getPlayerIds()\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.getPlayerId')
LCM.write(('world.getPlayerId(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('chat.post')
LCM.write(('chat.post(Howdy)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('events.clear')
LCM.write(('events.clear()\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('events.block.hits')
LCM.write(('events.block.hits()\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('events.chat.posts')
LCM.write(('events.chat.posts()\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.getTile')
LCM.write(('player.getTile(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.setTile')
LCM.write(('player.setTile(Sigma9,-964,65,-500)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.getAbsPos')
LCM.write(('player.getAbsPos(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.setAbsPos')
LCM.write(('player.setAbsPos(Sigma9,-964.5,65,-500.5)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.getPos')
LCM.write(('player.getPos(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.setPos')
LCM.write(('player.setPos(Sigma9,-964.5,65,-500.5)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.getDirection')
LCM.write(('player.getDirection(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.getRotation')
LCM.write(('player.getRotation(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('player.getPitch')
LCM.write(('player.getPitch(Sigma9)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('world.getHeight')
LCM.write(('world.getHeight(100,100)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('entity.getTile')
LCM.write(('entity.getTile(Mansion)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
#input('entity.setTile')
#LCM.write(('entity.setTile(args[0]; x = args[1]; y = args[2]; z = args[3]);
#time.sleep(2)
#print(LCM.read_lazy())
input('entity.getPos')
LCM.write(('entity.getPos(Mansion)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
#input('entity.setPos')
#LCM.write(('entity.setPos(args[0]; x = args[1]; y = args[2]; z = args[3]);
#time.sleep(2)
#print(LCM.read_lazy())
input('entity.getDirection')
LCM.write(('entity.getDirection(Mansion)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('entity.getRotation')
LCM.write(('entity.getRotation(Mansion)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
input('entity.getPitch')
LCM.write(('entity.getPitch(Mansion)\n').encode('ascii'))
time.sleep(2)
print(LCM.read_lazy())
LCM.close