from mcpi_e.minecraft import Minecraft
mc = Minecraft.create(address="127.0.0.1", port=25565, playerName="777")
mc.postToChat("Wolfik777 say hello")
Вот код но он выдаёт вот такую ошибку
C:\Users\wolfi\AppData\Local\Programs\Python\Python312\python.exe "C:\Users\wolfi\OneDrive\Рабочий стол\Minecraft use python use game\Posttochat.py"
('Running Python version:3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]',)
Traceback (most recent call last):
File "C:\Users\wolfi\OneDrive\Рабочий стол\Minecraft use python use game\Posttochat.py", line 3, in <module>
mc = Minecraft.create(address="127.0.0.1", port=25565, playerName="777")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wolfi\AppData\Local\Programs\Python\Python312\Lib\site-packages\mcpi_e\minecraft.py", line 399, in create
playerId= int(conn.sendReceive(b"world.getPlayerId", playerName))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
Помогите пожалуйста
mc = Minecraft.create(address="127.0.0.1", port=25565, playerName="777")
mc.postToChat("Wolfik777 say hello")
Вот код но он выдаёт вот такую ошибку
C:\Users\wolfi\AppData\Local\Programs\Python\Python312\python.exe "C:\Users\wolfi\OneDrive\Рабочий стол\Minecraft use python use game\Posttochat.py"
('Running Python version:3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]',)
Traceback (most recent call last):
File "C:\Users\wolfi\OneDrive\Рабочий стол\Minecraft use python use game\Posttochat.py", line 3, in <module>
mc = Minecraft.create(address="127.0.0.1", port=25565, playerName="777")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wolfi\AppData\Local\Programs\Python\Python312\Lib\site-packages\mcpi_e\minecraft.py", line 399, in create
playerId= int(conn.sendReceive(b"world.getPlayerId", playerName))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
Помогите пожалуйста