py2hackCraft2 1.0.16__tar.gz → 1.0.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/PKG-INFO +1 -1
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft/modules.py +20 -17
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft2.egg-info/PKG-INFO +1 -1
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/setup.py +1 -1
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/README.md +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft/__init__.py +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft/material.py +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackcraft2-1.0.16 → py2hackcraft2-1.0.17}/setup.cfg +0 -0
|
@@ -480,7 +480,7 @@ class Entity:
|
|
|
480
480
|
"""
|
|
481
481
|
if(len(self.positions) > 0):
|
|
482
482
|
pos = self.positions.pop()
|
|
483
|
-
self.teleport(pos
|
|
483
|
+
self.teleport(pos)
|
|
484
484
|
return True
|
|
485
485
|
else:
|
|
486
486
|
return False
|
|
@@ -573,39 +573,41 @@ class Entity:
|
|
|
573
573
|
"""
|
|
574
574
|
self.client.sendCall(self.uuid, "turn", [degrees])
|
|
575
575
|
|
|
576
|
-
def placeX(self, x, y, z,
|
|
576
|
+
def placeX(self, cord: Coordinates, x: int, y: int, z: int, block=None, side=None) -> bool :
|
|
577
577
|
"""
|
|
578
578
|
指定した座標にブロックを設置する。
|
|
579
579
|
|
|
580
580
|
Args:
|
|
581
|
+
cord (Coordinates): 座標の種類('', '^', '~')。
|
|
581
582
|
x (int): X座標。
|
|
582
583
|
y (int): Y座標。
|
|
583
584
|
z (int): Z座標。
|
|
584
|
-
|
|
585
|
+
block (str): 設置するブロックの種類。
|
|
586
|
+
side (str): 設置する面。
|
|
585
587
|
"""
|
|
586
|
-
self.client.sendCall(self.uuid, "placeX", [x, y, z, cord])
|
|
588
|
+
self.client.sendCall(self.uuid, "placeX", [x, y, z, cord, side, block])
|
|
587
589
|
return str_to_bool(self.client.result)
|
|
588
590
|
|
|
589
|
-
def place(self) -> bool :
|
|
591
|
+
def place(self, side=None) -> bool :
|
|
590
592
|
"""
|
|
591
593
|
自分の前方にブロックを設置する。
|
|
592
594
|
"""
|
|
593
595
|
self.client.sendCall(self.uuid, "placeFront")
|
|
594
|
-
return str_to_bool(self.client.result)
|
|
596
|
+
return str_to_bool(self.client.result, [side])
|
|
595
597
|
|
|
596
|
-
def placeUp(self) -> bool :
|
|
598
|
+
def placeUp(self, side=None) -> bool :
|
|
597
599
|
"""
|
|
598
600
|
自分の真上にブロックを設置する。
|
|
599
601
|
"""
|
|
600
602
|
self.client.sendCall(self.uuid, "placeUp")
|
|
601
|
-
return str_to_bool(self.client.result)
|
|
603
|
+
return str_to_bool(self.client.result, [side])
|
|
602
604
|
|
|
603
|
-
def placeDown(self) -> bool :
|
|
605
|
+
def placeDown(self, side=None) -> bool :
|
|
604
606
|
"""
|
|
605
607
|
自分の真下にブロックを設置する。
|
|
606
608
|
"""
|
|
607
609
|
self.client.sendCall(self.uuid, "placeDown")
|
|
608
|
-
return str_to_bool(self.client.result)
|
|
610
|
+
return str_to_bool(self.client.result, [side])
|
|
609
611
|
|
|
610
612
|
def useItem(self) -> bool :
|
|
611
613
|
"""
|
|
@@ -628,15 +630,15 @@ class Entity:
|
|
|
628
630
|
self.client.sendCall(self.uuid, "useItemDown")
|
|
629
631
|
return str_to_bool(self.client.result)
|
|
630
632
|
|
|
631
|
-
def useItemX(self, x, y, z
|
|
633
|
+
def useItemX(self, cord: Coordinates, x: int, y: int, z: int) -> bool :
|
|
632
634
|
"""
|
|
633
635
|
指定した座標にアイテムを使う
|
|
634
636
|
|
|
635
637
|
Args:
|
|
638
|
+
cord (Coordinates): 座標の種類('', '^', '~')。
|
|
636
639
|
x (int): X座標。
|
|
637
640
|
y (int): Y座標。
|
|
638
641
|
z (int): Z座標。
|
|
639
|
-
cord (str): 座標の種類('', '^', '~')。
|
|
640
642
|
"""
|
|
641
643
|
self.client.sendCall(self.uuid, "useItemX", [x, y, z, cord])
|
|
642
644
|
return str_to_bool(self.client.result)
|
|
@@ -676,15 +678,15 @@ class Entity:
|
|
|
676
678
|
self.client.sendCall(self.uuid, "digDown")
|
|
677
679
|
return str_to_bool(self.client.result)
|
|
678
680
|
|
|
679
|
-
def digX(self, x, y, z
|
|
681
|
+
def digX(self, cord: Coordinates, x : int, y: int, z: int) -> bool :
|
|
680
682
|
"""
|
|
681
683
|
指定した座標のブロックを壊す。
|
|
682
684
|
|
|
683
685
|
Args:
|
|
686
|
+
cord (Coordinates): 座標の種類('', '^', '~')。
|
|
684
687
|
x (int): X座標。
|
|
685
688
|
y (int): Y座標。
|
|
686
689
|
z (int): Z座標。
|
|
687
|
-
cord (str): 座標の種類('', '^', '~')。
|
|
688
690
|
"""
|
|
689
691
|
self.client.sendCall(self.uuid, "digX", [x, y, z, cord])
|
|
690
692
|
return str_to_bool(self.client.result)
|
|
@@ -772,15 +774,15 @@ class Entity:
|
|
|
772
774
|
"""
|
|
773
775
|
self.client.sendCall(self.uuid, "sendChat", [message])
|
|
774
776
|
|
|
775
|
-
def inspectX(self, x: int, y: int, z: int
|
|
777
|
+
def inspectX(self, cord: Coordinates, x: int, y: int, z: int) -> Block :
|
|
776
778
|
"""
|
|
777
779
|
指定された座標のブロックを調べる。
|
|
778
780
|
|
|
779
781
|
Args:
|
|
782
|
+
cord (Coordinates): 座標の種類('', '^', '~')。
|
|
780
783
|
x (int): X座標。
|
|
781
784
|
y (int): Y座標。
|
|
782
785
|
z (int): Z座標。
|
|
783
|
-
cord (str): 座標の種類('', '^', '~')。
|
|
784
786
|
Returns:
|
|
785
787
|
Block: 調べたブロックの情報。
|
|
786
788
|
"""
|
|
@@ -889,7 +891,7 @@ class Entity:
|
|
|
889
891
|
自分と真上のターゲットとの距離を調べる。
|
|
890
892
|
"""
|
|
891
893
|
self.client.sendCall(self.uuid, "getTargetDistanceUp")
|
|
892
|
-
return self.client.result
|
|
894
|
+
return float(self.client.result)
|
|
893
895
|
|
|
894
896
|
def getDistanceDown(self) -> float :
|
|
895
897
|
"""
|
|
@@ -910,6 +912,7 @@ class Entity:
|
|
|
910
912
|
指定された座標にブロックを設置する。
|
|
911
913
|
|
|
912
914
|
Args:
|
|
915
|
+
cord (Coordinates): 座標の種類('', '^', '~')。
|
|
913
916
|
x (int): 絶対的なX座標。
|
|
914
917
|
y (int): 絶対的なY座標。
|
|
915
918
|
z (int): 絶対的なZ座標。
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|