@asterobot:base is an official package of ready-made functions that most bots need. For now it re-exports move(), the built-in function of asterobot:movement that walks the bot's character to a cell of its map.
Note
Coming soon. @asterobot:base isn't on the marketplace yet, so no script can install it. You don't need it to walk: import move() from asterobot:movement.
Add it to a package
Once @asterobot:base is in your library, declare it in your package's dependencies, as Dependencies shows, then import move() by that name:
import { move } from "@asterobot:base";
It's the same function as the one asterobot:movement exports, and asterobot:movement describes its options, errors and limits.
Aucun avis à afficher.