PythonConnectMod 图标

PythonConnectMod

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0-SNAPSHOT
本资源为搬运资源,原资源地址: https://modrinth.com/mod/pythonconnectmod
资源信息

Minecraft 版本: 1.21.4

平台: fabric

标签: utility

资源介绍

A simple mod to connect to apps. This mod allows your code to easily interact with your Minecraft client by sending / commands to localhost:2542.

An example in Python:

from socket import socket, AF_INET, SOCK_STREAM

client = socket(AF_INET, SOCK_STREAM)
client.connect(("localhost", 2542))

client.sendall("/give @s minecraft:diamond 64\x00".encode("utf-8"))
# Use \x00 (\u0000, ...) to seperate messages

client.close()
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
PvE Lag Compensation

价格:0 墨喵币
下载量:0

查看详情
Avaritia Spear

价格:0 墨喵币
下载量:0

查看详情
WeltenGui

价格:0 墨喵币
下载量:0

查看详情
OPaC BlueMap

价格:0 墨喵币
下载量:0

查看详情