一款允许你执行 Python 脚本或使用 Python 制作模组的模组。
它拥有“Minecraft”API,允许你放置方块、召唤实体、监听事件等;自上次更新后,你还能够以自定义命名空间注册物品、方块、创造模式标签页、标签等。
你可以随心所欲地操作:无论是为你的整合包添加方块和合成配方,还是将 LLM API 密钥接入服务器。
用户无需安装任何 Python 环境即可使用该模组。
本模组在 jar 包中内置了 GraalPy(一种 Java 实现的 Python)及 pip。
你可以在你的模组中安装任意纯 Python 编写的 Python 包。
部分原生库已用 Java 重写并包含在 PyFish 中。现已内置以下原生库:
requests, sqlite3, asyncio, logging, pathlib, 以及 websocket
你需要将脚本放入 <你的我的世界实例>/pyfish/<你的文件夹>/scripts/(“你的文件夹”的名称将用作注册物品等的命名空间),或者放入 <你的我的世界实例>/pyfish/scripts/(如果放入 pyfish/scripts,则会在 pyfish 的命名空间下注册)。这些脚本会被自动执行。
你还可以制作 .jar 格式的模组以及 .pyz(100% Python)格式的模组。
详细文档(现已支持 IDE!)请见 此处,并在 Discord 获取支持
(文档包含了 MCAPI 所有可用函数的列表及其使用方法,以及所有必要信息)
A mod that allows you to execute python scripts or to make your own mods using python.
It has a "Minecraft" API that allows you to set blocks, summon entities, listen to events, etc. and since the last update you can also register items, blocks, creative tabs, tags, etc. under the namespace you want.
You can do whatever you want from adding blocks and crafts to your modpack to connecting your LLM API key to your server.
The user don't have to have anything installed for Python to work.
This mod has GraalPy (a java Python) and pip integrated in its jar.
You can install every python package that is pure python you want in your mod.
Some Native packages are recoded in Java and included in PyFish. Native libs built-in now :
requests, sqlite3, asyncio, logging, pathlib, and websocket
You have to put your scripts in <your_mc_instance>/pyfish/<your_folder>/scripts/ (the name of "your_folder" will be the namespace used to register items, etc.) or in <your_mc_instance>/pyfish/scripts/ (if you put in pyfish/scripts it will register under pyfish's namespace), they are executed automatically.
You can also make .jar mods and also .pyz (100% python) mods.
Fully detailed Documentation (IDE Support now !) here and Support on Discord
(the documentation contains the list of every functions available from the MCAPI and how to use them and also all needed informations)
评论 0
登录后参与评分
还没有评论,来抢沙发吧