forked from martinohanlon/mcpi
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtest.py
More file actions
27 lines (22 loc) · 684 Bytes
/
test.py
File metadata and controls
27 lines (22 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from mcpi_e.minecraft import Minecraft
from mcpi_e import block
from time import sleep
from random import *
from mcpi_e.logger import *
address="192.168.1.155"#if not pass address, it will be localhost
port=471 #default port for RaspberryJuice plugin 4711
name="stoneskin"
#mc = Minecraft.create()
mc=Minecraft.create(address,port,name)
debug("debug")
warn("warn")
log("log")
mc.settings.SHOW_DEBUG=False
print("Is show debug msg",mc.settings.SHOW_DEBUG)
print("Is show log msg",mc.settings.SHOW_Log)
print("system speed:",mc.settings.SYS_SPEED)
mc.settings.SYS_SPEED=mc.settings.Speed.FAST
(x,y,z)=pos=mc.player.getTilePos()
debug("this will not dispaly")
log(pos)
warn("warn")