Commit Graph

678 Commits

Author SHA1 Message Date
Brady
65bfe466bb
Clean up retrieving tags by string 2018-08-27 20:06:48 -05:00
leijurv
af3bc18079 add GoalNear 2018-08-27 18:00:11 -07:00
Brady
43b7aece74
Move events to api package 2018-08-27 19:37:21 -05:00
Brady
423087cc12
Add a way to hook into Baritone's post-init stage 2018-08-27 17:45:43 -05:00
Brady
8f8bedb1b0
If we're going to have a getter we might as well use it 2018-08-27 14:35:30 -05:00
Brady
92e0b842be
Double frown? Let's be more positive! 2018-08-27 13:51:22 -05:00
Brady
3bf4b997b0
Rename getByValueType to getAllValuesByType 2018-08-27 13:39:36 -05:00
Leijurv
3bb1c1a972
unneeded 2018-08-26 13:51:50 -07:00
Leijurv
5abadc6fe5
address cost calculation of blockfalling stacks 2018-08-26 13:48:08 -07:00
Leijurv
74916dd24e
consistency between byte and short read methods 2018-08-26 13:09:20 -07:00
Leijurv
f052c91cda
map 0 to 65536 2018-08-26 12:54:01 -07:00
Brady
68c2537d20
Leijurv doesn't know how unsigned works in java 2018-08-26 12:09:23 -05:00
Leijurv
6408e678ff
fix short int conversion 2018-08-26 08:51:56 -07:00
Leijurv
45631fa12a
brady pls 2018-08-26 08:50:30 -07:00
Leijurv
9a24e6a1a3
fixed overzealous cost check 2018-08-26 08:49:56 -07:00
Leijurv
5f6a5ea403
extend MovementFall breakability one more, fixes #97 2018-08-26 08:31:03 -07:00
Leijurv
e8c644fc63
haha 2018-08-26 08:22:34 -07:00
Leijurv
6dd501a46b
add cost verification lookahead 2018-08-26 08:19:14 -07:00
Leijurv
50fd63647b
sprint through descend, fixes #29 and #38 2018-08-26 08:12:57 -07:00
Brady
91c4d8292d
Cleaned up 7 duplicate switch statements 2018-08-26 02:53:50 -05:00
Brady
5c7ffe6ed1
Removed irrelevant TODO 2018-08-26 02:25:13 -05:00
Brady
8de7963c74
Allow opening of fence gates that are blocking movement, fixes #46 2018-08-26 02:17:52 -05:00
Brady
f1fcacf241
Fix refmap not generating with the proper name 2018-08-26 01:45:33 -05:00
Brady
5ec99977fa
Fix water bucket falling, fixes #91 2018-08-26 00:09:44 -05:00
Brady
1801551d3b
A less atrocious approach to fixing 95 2018-08-25 23:12:43 -05:00
Brady
7d863ebfed
Intercept toStringHelper to fix BlockPos obfuscated name, fixes #95 2018-08-25 23:03:36 -05:00
Leijurv
d655745d1a
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-25 17:09:43 -07:00
Leijurv
f834bcec08
add BlockFalling check for MovementFall, fixes #94 2018-08-25 17:09:35 -07:00
Brady
72c2a58ef2
Replace ArrayList type fields with List 2018-08-25 18:35:41 -05:00
Brady
32a0f4eaac
All around minor cleanups to movement classes 2018-08-25 18:30:23 -05:00
Leijurv
85cf5322f9
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-25 15:40:33 -07:00
Leijurv
879d72d715
don't sprint if allowSprint is false 2018-08-25 15:34:19 -07:00
Brady
c6ca584847
Clean up isDoorPassable 2018-08-25 17:24:10 -05:00
Leijurv
199d69d79c
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-25 15:09:54 -07:00
Leijurv
fdf11f9d76
invert goal to run away 2018-08-25 15:09:47 -07:00
Brady
871dc98acc
Change SOLID pathing types based on dimension, fixes #88 2018-08-25 14:22:39 -05:00
Leijurv
342bb8616c
fix passable and replacable checks for snow in cached chunks, fixes #87 2018-08-25 08:44:33 -07:00
Leijurv
db6453fae0
accuracy 2018-08-25 07:07:09 -07:00
Brady
21c1fc09e7
Added newlines after every declaration in PathEvent enum 2018-08-25 02:10:31 -05:00
Brady
8ff89e7400
Block break simulation instead of input override for breaking, fixes #74 2018-08-25 01:38:53 -05:00
Brady
d14d0e131b
Better comment explaining new folder depth check 2018-08-25 00:24:19 -05:00
Leijurv
c51a65488a
lol what 2018-08-24 14:24:09 -07:00
Brady
cbec60472b
Replace anonymous thread in PathingBehavior with lambda body 2018-08-24 13:54:01 -05:00
leijurv
5b60d01c11 peace and quiet 2018-08-24 08:42:54 -07:00
leijurv
37d4e7b178 fixed prefix logic 2018-08-23 20:12:36 -07:00
leijurv
6631f9c80f reformat 2018-08-23 20:04:23 -07:00
leijurv
bf37d50d6f fix mixin json file name 2018-08-23 19:58:11 -07:00
leijurv
a18ff092d8 finally fixed MovementAscend 2018-08-23 19:57:49 -07:00
Brady
830c90dd97
Use relative path to main game dir as comparison, fixes #86 2018-08-23 21:26:28 -05:00
Brady
71ce9cd901
Make the prefix optional 2018-08-23 21:01:35 -05:00
Brady
93de55318f
Force # command prefix 2018-08-23 20:57:32 -05:00
Brady
c8de4a4e00
Fix coloring across multiple lines 2018-08-23 20:43:37 -05:00
Brady
6ce0f40451
Waypoint magic 2018-08-23 20:16:40 -05:00
Brady
c3009b46a8
End of file magic values are bad change my mind 2018-08-23 20:09:40 -05:00
Brady
e778a79a7b
Loading an mp4? nah. Saving one? yep. 2018-08-23 19:44:30 -05:00
Brady
05ba817052
get owned idiot
https://i.imgur.com/NoMJHXE.png
2018-08-23 19:39:50 -05:00
Brady
00b0266c43
Fix duplicate waypoint issues and bad bed positions 2018-08-23 19:39:04 -05:00
Brady
18a9206058
Fix comparison between incompatible types, fixes #83 2018-08-23 19:27:18 -05:00
Brady
42b7597cd6
Remove printed debug code 2018-08-23 19:19:24 -05:00
Brady
4de52cfec2
Fix duplicate onPlayerDeath call b/c mojang is bad, fixes #85 2018-08-23 19:18:49 -05:00
Brady
85c88e669c
Potentially fix issue in obfuscated environment 2018-08-23 19:05:54 -05:00
Brady
54151b9a30
Fix baritone not using its own refmap 2018-08-23 18:43:24 -05:00
Brady
40545c0c5d
Add player null check to our allowUserInput hook, fixes #81 2018-08-23 18:34:54 -05:00
Leijurv
e85f439c0f
multi threaded 2018-08-23 15:57:29 -07:00
Leijurv
9accdf097f
single threaded 2018-08-23 15:55:25 -07:00
Leijurv
28be7121e3
path event 2018-08-23 15:39:02 -07:00
Leijurv
90316b3359
useless 2018-08-23 15:13:33 -07:00
Brady
c14f0dac8f
Remove MixinMain
Was a misinterpretation of something Leijurv didn't actually add ??
2018-08-23 17:04:00 -05:00
Brady
d17122a777
Fix some mixins which referenced a non-obfuscated method 2018-08-23 17:01:51 -05:00
Leijurv
559bc46702
put it in the right place 2018-08-23 14:40:42 -07:00
Leijurv
b3189721a6
add explanation 2018-08-23 14:37:08 -07:00
Leijurv
9a065f55cc
some more blocks to cache 2018-08-23 14:02:05 -07:00
Leijurv
c4cc0c6cdf
cleanup to cachedregion 2018-08-23 13:47:01 -07:00
Leijurv
cacd2096ec
save regularly 2018-08-23 13:42:45 -07:00
Leijurv
14df84ef0e
chunk caching either way 2018-08-23 13:39:13 -07:00
Leijurv
b56dde8f7e
typo 2018-08-23 13:17:29 -07:00
Leijurv
cf05e75e9a
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-23 13:12:17 -07:00
Leijurv
709822ef47
only search nearby regions 2018-08-23 13:12:13 -07:00
Brady
1889e37493
Replace lambda with method reference 2018-08-23 15:05:37 -05:00
Leijurv
e9308d7e70
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-23 12:54:23 -07:00
Leijurv
d0fc77ede4
special block location caching and automatic mining 2018-08-23 12:54:12 -07:00
Brady
8dd064838b
Utilize streams when finding most recent waypoint of a given tag 2018-08-23 14:52:35 -05:00
Leijurv
36cbffb593
reset, fixes #84 2018-08-23 11:14:37 -07:00
Leijurv
a7abfef329
whoops wrong order 2018-08-23 09:56:57 -07:00
Leijurv
3ce764a472
waypoint convenience methods 2018-08-23 09:54:29 -07:00
Leijurv
bde507cac6
clear blocks in the way, probably fixes #82 2018-08-23 09:41:17 -07:00
Leijurv
f9189d7ec3
comment 2018-08-23 09:07:43 -07:00
Leijurv
5baa56bb29
add option for pythagorean metric 2018-08-23 08:52:05 -07:00
Brady
2d7b465844
Added an anti-cheat compatibility setting, to tie in with free look 2018-08-22 22:07:27 -05:00
Brady
dbb5d56b74
Fix MixinGuiGameOver init Injection parameters 2018-08-22 21:45:45 -05:00
Brady
6a5bdf9023
Cache the block break time in ToolSet, fixes #80 2018-08-22 21:33:56 -05:00
Brady
9dcadc979e
Add death waypoints when the player dies, fixes #75 2018-08-22 21:26:45 -05:00
Brady
5760d0fb8d
Fix MixinMinecraft#onBlockBreak local capture 2018-08-22 21:05:52 -05:00
Brady
060eeb9737
Add automatic bed waypoints on interact, fixes #79 2018-08-22 21:04:37 -05:00
Leijurv
fcb947bedc
bed 2018-08-22 17:56:08 -07:00
Leijurv
4bf1c79830
home and sethome, fixes #54 2018-08-22 17:49:55 -07:00
Leijurv
dab70926e2
waypoints 2018-08-22 16:56:51 -07:00
Leijurv
7996cfe0a5
waypoints rough start 2018-08-22 15:35:32 -07:00
Leijurv
1251b515fa
baritone dir 2018-08-22 14:59:54 -07:00
Leijurv
d9a00ce164
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-22 14:54:23 -07:00
Leijurv
cd9ad69d28
another duplicate from an earlier refactor 2018-08-22 14:51:48 -07:00
Leijurv
6e7f7bfa7f
merge 2018-08-22 14:51:38 -07:00
Leijurv
a2f539353b
cherry pick refactor 2018-08-22 14:50:54 -07:00
Leijurv
c7387662f5
removed print 2018-08-22 14:47:34 -07:00
Leijurv
e730f3a84d
use top block in pathing, and reliability improvements 2018-08-22 14:47:26 -07:00
Leijurv
38aad9d92c
rework chunk caching 2018-08-22 14:46:49 -07:00
Howard Stark
56975c0e0f
Add beginning of surface block caching 2018-08-22 14:46:35 -07:00
Brady
e4e0fdd6d0
Change REGION_MAX to 58594, fixes #73 2018-08-22 16:46:24 -05:00
Leijurv
45f69a0f33
fix illegalaccessexception in mc player reference 2018-08-22 12:28:35 -07:00
Brady
a407fa66a2
Fix placing blocks when in a gui screen and pathing 2018-08-21 21:07:57 -05:00
Leijurv
9f12a0ab6f
max fall height even with bucket, fixes #57 2018-08-21 17:16:00 -07:00
Leijurv
4c0d581d7f
crucial performance optimization 2018-08-21 16:56:49 -07:00
Leijurv
d4a6618b55
lol that was dumb 2018-08-21 16:50:24 -07:00
Brady
71abf0c27e
Fix MovementFall from forcing rotations when unnecessary 2018-08-21 18:24:38 -05:00
Leijurv
c0eb94b318
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-21 16:20:09 -07:00
Leijurv
86f45202d0
ignore y coordinate for distance, fixes #62 2018-08-21 16:20:08 -07:00
Brady
c96b9cb6af
Added free look option 2018-08-21 18:19:20 -05:00
Brady
843bc17777
Add forceRotations field to MovementState
Preparation for silent moving
2018-08-21 17:52:09 -05:00
Leijurv
5271b7d5c1
merge 2018-08-21 15:24:07 -07:00
Leijurv
eb34c1fc24
unneeded slowdown 2018-08-21 15:20:33 -07:00
Leijurv
14dddfb1de
chunk packing linkedblockingqueue 2018-08-21 15:18:35 -07:00
Brady
194dd7abe7
Automatically disable auto-jump while pathing is active, fixes #31 2018-08-21 17:06:34 -05:00
Brady
a9cac7718e
Fix inputs overrides not resetting when out of world, fixes #43 2018-08-21 16:36:51 -05:00
Leijurv
40dd2e33f6
fixed setting name 2018-08-21 13:39:28 -07:00
Leijurv
530f87ad14
full integrity check 2018-08-21 13:18:58 -07:00
Leijurv
7d6d34c5aa
idiocy 2018-08-21 13:17:44 -07:00
Leijurv
05cc63f4ff
comment 2018-08-21 13:10:00 -07:00
Leijurv
7623b8b386
reworked saving 2018-08-21 13:06:36 -07:00
Leijurv
5bc8adc777
debug 2018-08-21 12:22:45 -07:00
Leijurv
800078a75c
only gzip changed regions 2018-08-21 12:18:54 -07:00
Leijurv
a64e07685b
lazy chunk loading 2018-08-21 11:55:33 -07:00
leijurv
8ee65f1212 add setting to disable unruly vines 2018-08-20 20:41:45 -07:00
leijurv
25d3fa7676 Merge branch 'master' of github.com:cabaletta/baritone 2018-08-20 20:18:00 -07:00
leijurv
177e15fc09 mine the block anyway, avoid unreachable loop 2018-08-20 20:17:55 -07:00
Brady
4cf5ba0fcc
Added QueryItemSlotForBlock event, fixes #37 2018-08-20 20:41:38 -05:00
Leijurv
7f578bc3bf
properly render temporary path, fixes #59 2018-08-20 16:24:06 -07:00
Leijurv
6f10a007d5
movement timeout ticks setting 2018-08-20 16:23:32 -07:00
Leijurv
d925dddb78
comment 2018-08-20 15:01:34 -07:00
leijurv
77e97b4285 fix descend and fall onto lilypad 2018-08-20 07:33:39 -07:00
leijurv
1024a1df2d walk on lilypads 2018-08-20 07:32:54 -07:00
leijurv
a16301b989 max no bucket fall height setting, fixes #58 2018-08-20 07:11:15 -07:00
Nachiketa Gargi
92ec2a35c6 spawn goal setting, addresses #54 2018-08-19 22:28:47 -07:00
Leijurv
e5128635fc
settings documentation 2018-08-19 19:12:37 -07:00
Leijurv
0e900f2c05
purge old MineBot 2018-08-19 17:28:19 -07:00
Leijurv
519773493e
now redundant 2018-08-19 17:27:52 -07:00
Leijurv
e3f122c371
last second tweaks 2018-08-19 17:27:33 -07:00
Leijurv
1b957dc336
GoalBlock heuristic fix 2018-08-19 14:08:16 -07:00
Leijurv
8db6438d16
path cutoff and setting refactor and control 2018-08-19 13:18:48 -07:00
Leijurv
922671c77d
load boundary cutoff setting 2018-08-19 11:45:50 -07:00
Leijurv
d3bd6ae843
crucial performance optimization 2018-08-19 09:39:52 -07:00
Leijurv
ff108a55e6
performance and testing 2018-08-19 09:37:35 -07:00
Leijurv
494a4a8d18
government mandated curly braces 2018-08-18 12:36:40 -07:00
Leijurv
d60e0ced67
sigh 2018-08-18 12:33:00 -07:00
Leijurv
237ac85b6b
recheck positionsToBreak every tick to prepare, fixes #42 2018-08-18 12:21:39 -07:00
Leijurv
ee8e44d314
don't start a path midair 2018-08-18 12:21:21 -07:00
leijurv
d94e825a79 iron doors, fixes #30 2018-08-17 21:02:41 -07:00
leijurv
0f56af65b1 weird ladder bug, fixes #51 2018-08-17 20:47:34 -07:00
leijurv
f23683fbaa admissible heuristic sigh 2018-08-17 20:46:33 -07:00
leijurv
85dcedc26a i am an idiot 2018-08-17 20:46:18 -07:00
leijurv
47787fc128 it's just not worth it =/ 2018-08-17 19:52:35 -07:00
leijurv
1dcad9ac59 fix goal y level render, fixes #48 2018-08-17 19:30:41 -07:00
Leijurv
88b276f7c9
minimum improvement repropagation 2018-08-17 19:19:25 -07:00
Leijurv
bd40c9709d
control heuristic 2018-08-17 18:18:37 -07:00
Leijurv
fb61b47fb2
see costs to all possible movements from current location 2018-08-17 16:46:02 -07:00
Leijurv
b742704fd0
option to fully disable path backtracking cost favoring 2018-08-17 16:17:14 -07:00
Leijurv
03ec4d39ee
don't walk or fall through webs or end portals 2018-08-17 14:11:58 -07:00
Leijurv
f3d9ada675
movement and goal cleanup, more pure with CalculationContext 2018-08-17 13:18:04 -07:00
Leijurv
94e3b53f09
added comments 2018-08-17 12:29:30 -07:00
Leijurv
e71783105c
misc movement cleanups 2018-08-17 12:24:40 -07:00
Leijurv
c635ba69fd
sprinting capability. fixes #23 2018-08-17 10:52:58 -07:00
Leijurv
4591895e49
clear goal option. fixes #22 2018-08-16 16:51:43 -07:00
Leijurv
e1c6006084
render GoalXZ 2018-08-16 15:34:23 -07:00
Leijurv
82f5c21f4a
whoops that didn't actually compile 2018-08-16 15:14:00 -07:00
Leijurv
e0f2159276
better path splicing 2018-08-16 15:10:23 -07:00
Howard Stark
399fa003dd
Address raytrace bush failure when falling (#15) 2018-08-15 18:39:07 -07:00
Leijurv
01cc521a71
fixed 2018-08-15 18:02:07 -07:00
Leijurv
6860521403
dank goal render 2018-08-15 17:53:42 -07:00
Leijurv
6be7786707
ticks remaining in segment 2018-08-15 17:29:45 -07:00
Leijurv
28fd9581bc
babe 2018-08-15 06:50:43 -07:00
Nachiketa Gargi
d2ad15b79f Merge branch 'master' of github.com:cabaletta/baritone 2018-08-14 23:49:11 -07:00
Nachiketa Gargi
3d4f516938 doors 2018-08-14 23:49:08 -07:00
Leijurv
aef3af50c2
unused cases 2018-08-14 17:37:19 -07:00
Leijurv
ea5914f776
cmt 2018-08-14 15:58:53 -07:00
Leijurv
c780454b78
comment 2018-08-14 15:43:04 -07:00
Leijurv
9aefcebddf
api 2018-08-14 15:32:16 -07:00
Leijurv
92b3ac93d0
check 2018-08-14 15:24:23 -07:00
Leijurv
72f7c564a1
getter 2018-08-14 15:22:52 -07:00
Leijurv
7bc9969d93
throwaways setting 2018-08-14 15:19:35 -07:00
Leijurv
45375c45bb
simplified 2018-08-14 15:16:38 -07:00
Leijurv
bb453a94b9
beautiful settings 2018-08-14 15:04:41 -07:00
Leijurv
c67c9582c4
Thanks IntelliJ for that amazingly helpful performance optimization suggestion 2018-08-14 13:23:57 -07:00
Leijurv
3a68009194
don't allocate for up(0) 2018-08-14 11:25:30 -07:00
Leijurv
2e7f5048dc
this is so sad 2018-08-14 10:50:41 -07:00
Leijurv
60d246ecc9
betterblockpos 2018-08-14 10:47:31 -07:00
Leijurv
46593fc1a4
less indentation 2018-08-14 08:28:35 -07:00
leijurv
1e731b3246 path fading 2018-08-13 21:05:35 -07:00
leijurv
578e08a893 split out into baritone api 2018-08-13 20:57:29 -07:00
leijurv
c9a6a36f67 init before init 2018-08-13 20:37:48 -07:00
leijurv
d399857309 Merge branch 'leijurv-settings' 2018-08-13 20:20:54 -07:00
leijurv
e4d6d6ff64 missed a spot 2018-08-13 20:19:27 -07:00