MS Extras 图标

MS Extras

作者:rebot | 分类:模组

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

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: fabric

标签: technology utility

资源介绍

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")
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Landmarks

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

查看详情
Chatting

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

查看详情
/echest Command

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

查看详情
Custom Villager Professions

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

查看详情