Sueta
PY

Python plugin for mcpi

0.0.3

python mcpi RaspberryJuice

·Plugin
  1. 0.0.3latestsupport pass args to your python codeJul 19, 2020
    /py test 10, 50 and your test.py code will look like below: Code (Text): from mcpi_e.minecraft import Minecraft from mcpi_e import block import sys serverAddress = "127.0.0.1" playerName = "any" pythonApiPort = 4711 blockId=block.SANDSTONE.id size=5 if len(sys.argv)-1>0: playerName=sys.argv[1] if len(sys.argv)-1>1: try: size=int(sys.argv[2]) except: print("1nd argument is not a number, will use default size=5") if len(sys.argv)-1>2: try: blockId=int(sys.argv[3]) except: print("2nd argument is not a number, will use default blockId= Sand") mc = Minecraft.create(serverAddress,pythonApiPort,playerName) pos = mc.player.getPos() x = pos.x y = pos.y z = pos.z
    2 downloads
  2. 0.0.2add reload the config, save default configJul 19, 2020
    /py reload could reload the config file
    4 downloads
  3. 0.0.1Jul 19, 2020
    1 download

Similar projects

Plugin →