py2hackCraft2 1.0.32__tar.gz → 1.0.33__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.32
3
+ Version: 1.0.33
4
4
  Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
5
5
  Home-page: https://pypi.org/project/py2hackCraft2/
6
6
  Author: Masafumi Terazono
@@ -797,6 +797,27 @@ class Entity:
797
797
  self.client.sendCall(self.uuid, "digX", [x, y, z, cord])
798
798
  return str_to_bool(self.client.result)
799
799
 
800
+ def pickupItemsX(self, x : int, y: int, z: int, cord: Coordinates = Coordinates.local) -> int :
801
+ """
802
+ 指定した座標の周辺のアイテムを拾う
803
+
804
+ Args:
805
+ x (int): X座標
806
+ y (int): Y座標
807
+ z (int): Z座標
808
+ cord (Coordinates): 座標の種類('', '^', '~')
809
+ """
810
+ self.client.sendCall(self.uuid, "pickupItemsX", [x, y, z, cord])
811
+ return int(self.client.result)
812
+
813
+ def pickupItems(self) -> int :
814
+ """
815
+ 自分の周辺のアイテムを拾う
816
+
817
+ """
818
+ self.client.sendCall(self.uuid, "pickupItemsX", [0, 0, 0, "^"])
819
+ return int(self.client.result)
820
+
800
821
  def action(self) -> bool :
801
822
  """
802
823
  自分の前方の装置を使う
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.32
3
+ Version: 1.0.33
4
4
  Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
5
5
  Home-page: https://pypi.org/project/py2hackCraft2/
6
6
  Author: Masafumi Terazono
@@ -5,7 +5,7 @@ long_description = (this_directory / "py2hackCraft/README.md").read_text()
5
5
 
6
6
  setup(
7
7
  name="py2hackCraft2",
8
- version="1.0.32",
8
+ version="1.0.33",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes
File without changes