
169
0
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
```python
# 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?
Мод MS Extras куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода MS Extras будет готов за пару минут - BungeeHost сделает всё за вас.
Часто задаваемые вопросы
Совместимость
Создатели
Детали
Лицензия:
Опубликован:8 месяцев назад
Обновлён:8 месяцев назад
