介绍
中文介绍正在准备中,下面暂时显示原文。
This mod is disigned as an API for scripting mods like Minescript.
How to use it
( Minescript Example )
from minescript import echo
# Import the API
PathfinderAPI = JavaClass("gamchu.pathfinder.api.PathfinderAPI")
GoalBlock = JavaClass("gamchu.pathfinder.goals.GoalBlock")
# Get pathfinder instance
pathfinder = PathfinderAPI.getProvider().getPathfinder()
# Create a goal and find a smoothed path
goal = GoalBlock(100, 64, 200)
future = pathfinder.findSmoothedPathAsync(goal)
# Wait for result
result = future.get()
if result.getSuccess():
echo(f"Path found with {result.getPathSize()} waypoints")
else:
echo("No path found")
Checking Pathfinding Status
# Check if pathfinding is currently running
if pathfinder.isPathing():
echo("Pathfinding in progress...")
else:
echo("No pathfinding running")
Cancelling Pathfinding
# Cancel the current pathfinding operation
if pathfinder.isPathing():
pathfinder.cancel()
echo("Pathfinding cancelled")
常见问题
MS Extras 支持哪些 Minecraft 版本?
MS Extras 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
MS Extras 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分