cabaletta / cabaletta/baritone

baritone tries to build up to the same level as blocks its building in selection, gets stuck in nether roof due to bedrock

Open
#1,511 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
9.2k
Forks
2.1k
Avg merge
4d 3h
Merged PRs (30d)
3

Description

## Some information
Operating system: windows 10 64bit
Java version: Version 8 Update 241 (build 1.8.0_241-b07)
Minecraft version: 1.15.2
Baritone version: 1.5.1
Forge mods (if used): Impact is installed (not via forge)

## Exception, error or logs
Please find your `latest.log` or `debug.log` in this folder and attach it to the issue

```[14:52:41] [main/INFO]: [CHAT] [Baritone] > sel replace netherrack air cobblestone obsidian
[14:52:41] [main/INFO]: [CHAT] [Baritone] Filling now
[14:52:41] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:41] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1013,y=120,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]
[14:52:41] [main/INFO]: [CHAT] [Baritone] Took 1ms, 1254 movements considered
[14:52:41] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[14:52:41] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=1013,y=120,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]. 58 nodes considered
[14:52:42] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:42] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalBlock{x=1016,y=124,z=0}] Fallback: GoalComposite[]
[14:52:44] [pool-5-thread-4/INFO]: [STDOUT]: 2573824 movements considered
[14:52:44] [pool-5-thread-4/INFO]: [STDOUT]: Open set size: 12349
[14:52:44] [pool-5-thread-4/INFO]: [STDOUT]: PathNode map size: 129341
[14:52:44] [pool-5-thread-4/INFO]: [STDOUT]: 58466 nodes per second
[14:52:44] [main/INFO]: [CHAT] [Baritone] Even with a cost coefficient of 10.0, I couldn't get more than 2.0 blocks
[14:52:44] [main/INFO]: [CHAT] [Baritone] No path found =(
[14:52:44] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:44] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]
[14:52:44] [main/INFO]: [CHAT] [Baritone] Took 0ms, 132 movements considered
[14:52:44] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[14:52:44] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]. 7 nodes considered
[14:52:44] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:44] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalBlock{x=1016,y=124,z=0}] Fallback: GoalComposite[]
[14:52:45] [main/INFO]: AutoCasting
[14:52:46] [pool-5-thread-4/INFO]: [STDOUT]: 2556928 movements considered
[14:52:46] [pool-5-thread-4/INFO]: [STDOUT]: Open set size: 12287
[14:52:46] [pool-5-thread-4/INFO]: [STDOUT]: PathNode map size: 128511
[14:52:46] [pool-5-thread-4/INFO]: [STDOUT]: 58112 nodes per second
[14:52:46] [main/INFO]: [CHAT] [Baritone] Even with a cost coefficient of 10.0, I couldn't get more than 2.0 blocks
[14:52:46] [main/INFO]: [CHAT] [Baritone] No path found =(
[14:52:46] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:46] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]
[14:52:46] [main/INFO]: [CHAT] [Baritone] Took 1ms, 132 movements considered
[14:52:46] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[14:52:46] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]. 7 nodes considered
[14:52:46] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:46] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalBlock{x=1016,y=124,z=0}] Fallback: GoalComposite[]
[14:52:48] [pool-5-thread-4/INFO]: [STDOUT]: 2685056 movements considered
[14:52:48] [pool-5-thread-4/INFO]: [STDOUT]: Open set size: 12617
[14:52:48] [pool-5-thread-4/INFO]: [STDOUT]: PathNode map size: 134665
[14:52:48] [pool-5-thread-4/INFO]: [STDOUT]: 60993 nodes per second
[14:52:48] [main/INFO]: [CHAT] [Baritone] Even with a cost coefficient of 10.0, I couldn't get more than 2.0 blocks
[14:52:48] [main/INFO]: [CHAT] [Baritone] No path found =(
[14:52:48] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:48] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]
[14:52:48] [main/INFO]: [CHAT] [Baritone] Took 0ms, 132 movements considered
[14:52:48] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[14:52:48] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalGetToBlock{x=1016,y=123,z=0}] Fallback: GoalComposite[]. 7 nodes considered
[14:52:48] [main/INFO]: [CHAT] [Baritone] Favoring size: 5419
[14:52:48] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=1016,y=121,z=0} to JankyComposite Primary: GoalComposite[GoalBlock{x=1016,y=124,z=0}] Fallback: GoalComposite[]
[14:52:49] [main/INFO]: [CHAT] [Baritone] > stop
[14:52:49] [main/INFO]: [CHAT] [Baritone] ok canceled
```

## How to reproduce
- `.b sel replace netherrack air cobblestone obsidian` in the nether roof (some bedrock is there)
- it tries to get to the same level as the obsidian to place instead of just looking up and placing

## Modified settings
To get the modified settings run `#modified` in game
![image](https://user-images.githubusercontent.com/35177464/78508590-a2753980-774d-11ea-906e-d2438c7da88a.png)
![image](https://user-images.githubusercontent.com/35177464/78508597-a6a15700-774d-11ea-9e8a-e13690269d83.png)
[pFw2jgjAma.zip](https://github.com/cabaletta/baritone/files/4434683/pFw2jgjAma.zip)

## Final checklist
- [x] I know how to properly use check boxes
- [x] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- [x] I have included logs, exceptions and / or steps to reproduce the issue.
- [x] I have not used any OwO's or UwU's in this issue.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with `.b sel replace netherrack air cobblestone obsidian` on the Nether roof, using the supplied logs and modified-settings archive. Start by tracing the selection-replacement path around the logged GoalBlock and GoalGetToBlock targets. Done means Baritone handles bedrock in the selection without repeatedly trying to reach the obsidian level and can place the replacement blocks as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.