Baritone API for 1.12.2 does NOT move
satyamedh opened this issue ยท 6 comments
Some information
Operating system: Ubuntu 20.10
Java version: 8
Minecraft version: 1.12.2
Baritone version: latest
Other mods (if used): Custom mod I'm working on
Exception, error or logs
Please find your latest.log
or debug.log
in this folder and attach it to the issue
[17:30:46] [Server thread/INFO] [minecraft/PlayerList]: Player277[local:E:f8f69f91] logged in with entity id 314 at (-33.33239020308017, 65.0, 202.69999998807907)
[17:30:46] [Server thread/INFO] [minecraft/MinecraftServer]: Player277 joined the game
[17:30:46] [Client thread/DEBUG] [FML]: Overriding dimension: using 0
[17:30:47] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[17:30:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Mod Tests'/overworld
[17:30:47] [Server thread/DEBUG] [FML]: Gathering id map for writing to world save Mod Tests
[17:30:47] [Client thread/INFO] [minecraft/AdvancementList]: Loaded 2 advancements
//triggered baritone API here, does nothing nor output some logs
//alt-tabbed out of mc
[17:30:53] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game...
[17:30:53] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'Mod Tests'/overworld
[17:30:53] [Server thread/DEBUG] [FML]: Gathering id map for writing to world save Mod Tests
How to reproduce
Run latest baritone API release in a custom mod
Related code
BaritoneAPI.getSettings().allowSprint.value = true;
BaritoneAPI.getSettings().primaryTimeoutMS.value = 2000L;
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(10000, 20000));
Modified settings
None
Final checklist
- I know how to properly use check boxes
- I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- I have included logs, exceptions and / or steps to reproduce the issue.
- I have not used any OwO's or UwU's in this issue.
needs to run on main thread, try doing Minecraft.getMinecraft().addScheduledTask(() -> BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(10000, 20000));)
Are you sure that that code is running? I can't see anything directly wrong with it.
@scorbett123 yeah, i have debug breakpoints, it DOES execute