Commit Graph

878 Commits

Author SHA1 Message Date
Leijurv
12b64ead5c
a much needed path executor overhaul 2018-09-14 18:29:35 -07:00
Leijurv
13cfb8e369
walkWhileBreaking, fixes #147 2018-09-14 16:45:51 -07:00
Leijurv
29391af5ad
solidarity 2018-09-14 15:57:46 -07:00
Leijurv
7d94cb259f
world scanner do 1 chunk only if blocks at same y have been found 2018-09-14 12:24:53 -07:00
Leijurv
001070d406
more robust path destination verification 2018-09-14 09:21:59 -07:00
Leijurv
a38da64c49
make the left click workaround optional 2018-09-14 09:05:29 -07:00
Leijurv
d7a646789e
fixes to parkour place 2018-09-14 08:40:34 -07:00
Leijurv
6b45b84784
special request from plutie#9079 2018-09-13 18:40:50 -07:00
Leijurv
853cbf3554
add waypoint user 2018-09-13 18:00:08 -07:00
Leijurv
7d0914bd43
don't crash on thisway typo lol 2018-09-13 16:40:55 -07:00
Leijurv
e3830643f6
only fail on movement cost increase if calced through cached, fixes #165 2018-09-13 16:18:26 -07:00
Leijurv
924cea342b
user defined not home 2018-09-13 15:41:00 -07:00
Leijurv
33a0a2a7f9
derp 2018-09-13 15:40:11 -07:00
Brady
13628789c8
We should only care about real client-sided packet flow
Prior to this commit, IntegratedServer packets would be picked up by PacketEvent
2018-09-13 15:10:29 -05:00
Brady
380f21bb38
Remove pythagoreanMetric setting 2018-09-13 14:48:23 -05:00
Leijurv
530bdfae0f
add save command 2018-09-13 09:15:50 -07:00
Brady
4c5c35069d
Remove keycode state forcing
It was a feature that was in the source of MineBot, but was actually never used.
2018-09-13 09:44:51 -05:00
Leijurv
315c1bf63c
help i cannot math into number 2018-09-12 16:40:27 -07:00
Leijurv
796be3da79
can't break nether roof, fixes #164 2018-09-12 16:29:10 -07:00
Brady
ef396829f0
Collapse impl package for default behaviors 2018-09-12 17:58:33 -05:00
Brady
0a0209d2e1
Move Behavior to api 2018-09-12 17:53:29 -05:00
Brady
fb8ee44447
Remove hacky "softCancel" thing 2018-09-12 17:25:01 -05:00
Brady
2fd888b9ee
Replace String lists containing block names with actual block lists
It just makes sense like wtf
2018-09-12 17:12:06 -05:00
Leijurv
a7504caa67
Merge branch 'skynet' 2018-09-12 10:13:39 -07:00
Leijurv
39a3c1cd4a
oh my god 2018-09-12 07:55:40 -07:00
Leijurv
7f983c92f4
assumeSafeWalk 2018-09-11 20:50:29 -07:00
Leijurv
e82f6b8e35
assumeStep 2018-09-11 20:24:27 -07:00
Leijurv
5669204b4a
skynet 2018-09-11 20:09:53 -07:00
Leijurv
3afc77bc9a
fix infinite recalc when jumping over flowing water 2018-09-11 19:39:47 -07:00
Leijurv
0412298555
don't try to place against water, actually fixes #155 2018-09-11 19:05:45 -07:00
Leijurv
9334cf1dd4
stop walking into liquids, fixes #155 2018-09-11 18:33:03 -07:00
Leijurv
acd9cecd66
improve path safety 2018-09-11 18:26:10 -07:00
Leijurv
1bf34d42e2
added maxCostIncrease, fixes #154 2018-09-11 15:51:29 -07:00
Brady
e6c574063e
Prevent flying capabilities when pathing, fixes #130 2018-09-11 17:37:26 -05:00
Leijurv
ff2714b15f
refactor logging, fixes #153 2018-09-11 13:45:43 -07:00
Leijurv
bafc938424
possibly fix parkour cost calculation issue 2018-09-11 13:15:13 -07:00
Leijurv
ab1037bcfd
blockstateinterface reorg 2018-09-11 11:57:16 -07:00
Leijurv
35ed0f6821
refactor chunk to cache 2018-09-11 10:28:03 -07:00
Brady
a0a480e2cc
Move api package in main to api sourceset 2018-09-11 12:05:12 -05:00
Leijurv
9daf46e30c
typos 2018-09-11 06:37:08 -07:00
Brady
a67e6fd163
Create and use injection point on pre/post jump, fixes #146
Also removed ItemSlotEvent because @leijurv is retarded
2018-09-10 17:18:01 -05:00
Leijurv
d8790e1dc6
misc cleanup 2018-09-10 14:48:18 -07:00
Leijurv
72eec135d0
misc improvements 2018-09-10 09:22:32 -07:00
Leijurv
075ad3f244
almost forgot crucial performance numbers 2018-09-09 15:38:59 -07:00
Brady
ecbb34366f
Hyperlink the benchmark spreadsheet for BetterBlockPos 2018-09-09 17:37:12 -05:00
Leijurv
8fa0d63ae5
add link to benchmark 2018-09-09 15:33:53 -07:00
Leijurv
d8ca6cad4e
i am an idiot 2: electric boogaloo 2018-09-09 13:19:48 -07:00
Leijurv
d29a37664c
clarify error messages 2018-09-09 13:09:56 -07:00
Leijurv
4221c07d1f
i don't know how i keep getting worldscanner wrong lol 2018-09-09 13:04:41 -07:00
Leijurv
6801d00d7e
enable 1-skipback 2018-09-09 11:06:02 -07:00
Leijurv
7b712fe677
add synchronization, fixes #145 2018-09-09 11:00:57 -07:00
Leijurv
4a13b54e50
brady was right and I was wrong 2018-09-09 10:27:47 -07:00
Leijurv
ef4de2b159
oh look and another bug 2018-09-09 09:55:59 -07:00
Leijurv
44ece7c510
prevent double lookup 2018-09-09 09:54:09 -07:00
Leijurv
07b0e2cdbf
block state interface cache region too 2018-09-09 09:50:19 -07:00
Leijurv
760f68cb05
instead of casting to BetterBlockPos at runtime, let the compiler verify that 2018-09-09 09:22:35 -07:00
Leijurv
dce51d856b
more specific return type 2018-09-09 08:58:36 -07:00
Leijurv
a8ef421757
epic performance 2018-09-09 08:57:20 -07:00
Leijurv
b69acadca6
start of blockstateinterface overhaul 2018-09-09 08:53:15 -07:00
Leijurv
387e27e8de
movementhelper overhaul 2018-09-09 08:11:33 -07:00
Leijurv
02ebc1947b
actually disable by default 2018-09-09 07:18:03 -07:00
Leijurv
b31930ebd2
merge 2018-09-09 07:16:46 -07:00
Leijurv
489b9dea98
fix world scanner radius 2018-09-09 07:15:48 -07:00
Leijurv
b45a2c94ea
direct invocation 2018-09-08 20:45:40 -07:00
Leijurv
fadb17f364
that was dumb 2018-09-08 14:16:54 -07:00
Leijurv
9577967da1
final 2018-09-08 08:15:10 -07:00
Leijurv
132e277388
{ } 2018-09-07 21:32:25 -07:00
Leijurv
5ffd21dddc
Merge branch 'master' into parkour 2018-09-07 20:45:10 -07:00
Leijurv
9052781889
smaller cuter boxes for goaltwoblocks 2018-09-07 20:45:00 -07:00
Leijurv
3261687ee0
render more goals, fixes #25 2018-09-07 20:44:50 -07:00
Leijurv
6ad9451798
smaller cuter boxes for goaltwoblocks 2018-09-07 20:43:12 -07:00
Leijurv
85babda97e
render more goals, fixes #25 2018-09-07 18:23:32 -07:00
Leijurv
2d969b55ef
fix world scanner radius 2018-09-07 18:23:05 -07:00
Brady
d17cc96e90
Constructor fix 2018-09-07 19:40:15 -05:00
Brady
e5f8b5de5b
Merge branch 'master' into movement-duplicate-switch 2018-09-07 19:36:06 -05:00
Brady
99323463e3
Fix improper treatment of unbreakable blocks 2018-09-07 19:00:36 -05:00
Leijurv
ead6edc574
merge 2018-09-07 13:35:14 -07:00
Leijurv
dcad5fb79e
shouldn't be on master yet 2018-09-07 13:34:34 -07:00
Leijurv
439ff92727
crucial performance optimization 2018-09-07 13:33:51 -07:00
Leijurv
0d515b336f
can get to block at eye level adjacent too 2018-09-07 10:50:49 -07:00
Leijurv
9757422626
also check where we might hit our head 2018-09-06 10:14:41 -07:00
Leijurv
b746e56631
lol you can't jump with a ceiling above you 2018-09-06 10:13:50 -07:00
Leijurv
915b03a44e
lol 2018-09-06 07:54:12 -07:00
Leijurv
5e063f56a2
merge master 2018-09-06 07:48:52 -07:00
Leijurv
63b04df95d
parkour 2018-09-06 07:48:27 -07:00
Leijurv
008422680d
that should NOT have been there 2018-09-05 21:08:18 -07:00
Leijurv
db3aa5a714
lets allow it, fixes #137 2018-09-05 19:52:06 -07:00
Leijurv
de84a49391
fix tool set once and for all, fixes #136 2018-09-04 17:15:59 -07:00
Brady
bba2458f8e
Separate "launch" into another SourceSet 2018-09-04 18:48:12 -05:00
Leijurv
a45f291d67
vine and ladder fixes 2018-09-04 16:19:23 -07:00
Brady
40e86df080
Remove unnecessary abstract mixin class modifiers 2018-09-04 18:06:28 -05:00
Leijurv
d40418d344
move updateState after calculateCost for consistency with every other movement 2018-09-04 16:04:44 -07:00
Leijurv
81ffbddc94
start with more than one chunk 2018-09-04 16:02:31 -07:00
Leijurv
0c4fd39845
better error message 2018-09-04 15:53:11 -07:00
Leijurv
2bb01fdd20
decrease scan rate 2018-09-04 15:33:38 -07:00
Leijurv
69d8bd56fa
rearranged loop order 2018-09-04 15:23:54 -07:00
Leijurv
e7d41ba4fc
optimize chunk packer with extended block storage 2018-09-04 15:19:16 -07:00
Brady
8c9bb85d4b
Fully separate dependency on launch package from other packages 2018-09-04 17:18:42 -05:00
Leijurv
4f07d655d6
don't scan empty 2018-09-04 15:08:21 -07:00
Leijurv
7cc23bc89b
scan for uninteresting blocks in loaded chunks, fixes #99 2018-09-04 15:03:59 -07:00
Leijurv
0bd3f9f680
fix water fall logic 2018-09-04 13:57:56 -07:00
Leijurv
288e57d275
fix warning 2018-09-04 13:20:49 -07:00
Leijurv
b8ee7f5b96
Merge branch 'slabs-stairs' 2018-09-04 10:07:08 -07:00
Leijurv
3fd1063e3c
cache on block not blockstate 2018-09-04 10:06:48 -07:00
Leijurv
424113f052
don't sprint if hunger is too low 2018-09-04 09:55:56 -07:00
Leijurv
438392840b
possible fix to concurrentmodificationexception on path start 2018-09-04 08:56:34 -07:00
Leijurv
f51bcc8b89
forgot null check 2018-09-04 08:51:58 -07:00
Leijurv
2452a69089
mine many block types at once 2018-09-04 08:50:42 -07:00
Leijurv
c367297136
Merge branch 'master' into slabs-stairs 2018-09-03 20:42:57 -07:00
Leijurv
a2f0a1839a
fix goal get to block 2018-09-03 20:42:28 -07:00
Leijurv
07a9829865
accurate debug 2018-09-03 16:24:43 -07:00
Leijurv
dd1a20a047
final makes things faster 2018-09-03 16:14:14 -07:00
Leijurv
fc0d4c67f2
merge 2018-09-03 12:05:18 -07:00
Leijurv
574fd05376
fix bucket check, fixes #128 2018-09-03 12:03:49 -07:00
Leijurv
21342d6ea5
Merge branch 'master' into slabs-stairs 2018-09-03 11:43:24 -07:00
Leijurv
bfd41f9473
stairs 2018-09-03 11:27:59 -07:00
Leijurv
4b2f98ccfd
consolidate and simplify into MovementHelper.isBottomSlab 2018-09-03 09:50:26 -07:00
Leijurv
7473e34602
check for top or double slab 2018-09-03 09:24:44 -07:00
Leijurv
d328438cf2
no falling onto half slab 2018-09-03 09:21:26 -07:00
Leijurv
16f88aa858
setting 2018-09-03 09:18:30 -07:00
Leijurv
bac07ce100
slabs 2018-09-03 09:15:18 -07:00
Brady
5dbf1014b3
Fix usage of characters that can't be mapped to ascii 2018-09-02 21:28:55 -05:00
Leijurv
f75188b24d
fix cost cache overwrite in path executor 2018-09-02 14:12:33 -07:00
Leijurv
c63ccc3dcb
can walk through should be cached as air, fixes #124 2018-09-02 14:10:27 -07:00
Leijurv
da5460413c
segment based timeout, and slowpath warning 2018-09-02 13:51:38 -07:00
Leijurv
9e272824c5
traverse should also break the block in the way 2018-09-02 13:34:15 -07:00
Brady
0e6d61e907
Consolidate rayTraceTowards into RayTraceUtils, fixes #121 2018-09-02 14:21:34 -05:00
Brady
115b8553b2
Make Baritone initialization listeners consumers 2018-09-02 14:18:17 -05:00
Leijurv
e8b108fde8
removePrefix 2018-09-02 12:06:00 -07:00
Leijurv
8d62f754a7
crucial performance optimization 2018-09-02 12:04:48 -07:00
Leijurv
5caa0542ba
ascend should clear the replaceable block in the way 2018-09-02 11:48:10 -07:00
Leijurv
f3bd50dc36
disable load boundary cutoff by default, fixes #114 2018-09-02 10:46:54 -07:00
Leijurv
e58c43305c
typo 2018-09-02 10:45:07 -07:00
Leijurv
462ccad885
use initial estimate from calculation phase 2018-09-02 10:43:34 -07:00
Leijurv
3afd836822
only offset down if doing so would put us on solid ground 2018-09-02 09:22:51 -07:00
Leijurv
1f97daf391
clean up the clutter 2018-09-02 07:18:57 -07:00
Leijurv
2e22f1cf54
hopefully make currentlyRunning more resilient 2018-09-01 14:47:46 -07:00
Leijurv
e705f9808b
add force cancel 2018-09-01 14:45:57 -07:00
Leijurv
8d46c36269
you can walk on chests 2018-09-01 13:20:27 -07:00
Leijurv
76cdad2223
properly place on soul sand, fixes #118 2018-09-01 12:47:43 -07:00
Leijurv
c0bc7b5ecd
fix strange issue when exiting and entering the same world 2018-09-01 12:26:55 -07:00
Leijurv
aca487f97e
fix behavior when all have been mined 2018-09-01 12:16:55 -07:00
Leijurv
e354227635
allow goto blocks that end in s 2018-09-01 11:31:42 -07:00
Leijurv
0b892e05cb
goto next to block, not in it, fixes #116 2018-09-01 11:30:02 -07:00
Leijurv
3c25e2b685
fix part of oscillation 2018-09-01 11:19:42 -07:00
Leijurv
791eb886c0
bugfix 2018-08-31 16:50:25 -07:00
Leijurv
24c5c5d238
instant cancel when more than 3 blocks away 2018-08-31 15:21:59 -07:00
Leijurv
c08f0f1e4d
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-31 14:58:28 -07:00
Leijurv
3f688bc45e
spam chat less 2018-08-31 14:58:23 -07:00
Brady
f10e010e20
GoalNear#toString 2018-08-31 16:32:15 -05:00
Leijurv
a93af3404b
cache chunk in BlockStateInterface, fixes #113 2018-08-31 12:58:52 -07:00
leijurv
7cd0b186a9 lava hurts just as much as magma when cutting over 2018-08-31 08:13:16 -07:00
Leijurv
aa3a8338e6
stop sprinting off ledges, fixes #110 2018-08-30 16:43:12 -07:00
Brady
606581b044
Wrap immutable list in normal arraylist to fix errors with adding 2018-08-29 20:35:57 -05:00
Brady
1734caeed8
Minor MovementDiagonal cleanup 2018-08-29 18:59:22 -05:00
Brady
51593a95e4
Add soul sand sprinting cost, @leijurv should implement it im lazy 2018-08-29 18:56:36 -05:00
Brady
532024248f
Actual soul sand walk cost, fixes #7 2018-08-29 18:53:37 -05:00
Brady
336b323697
Replace Math.X functions with MathHelper.X functions, fixes #111 2018-08-29 18:45:16 -05:00
Brady
4b41c6b1d7
Replace anonymous thread creation with runnable constructor 2018-08-29 18:32:16 -05:00
Brady
b073d591fb
Fix non-monotonic elapsed time checks, fixes #108 2018-08-29 18:23:11 -05:00
Leijurv
be303f2e57
crucial performance optimization 2018-08-29 16:13:14 -07:00
Leijurv
95cda79ef1
small open set change 2018-08-29 15:35:41 -07:00
Leijurv
cebdd76ca7
node map performance, fixes #107 2018-08-29 13:51:17 -07:00
Leijurv
0342136edc
fix chunk cache check performance, fixes #106 2018-08-29 12:19:21 -07:00
Leijurv
81b0e14c9a
more debug info 2018-08-29 11:53:37 -07:00
Leijurv
fb04ec6ff4
chunk check optimization 2018-08-29 11:29:26 -07:00
leijurv
8d1570a11b cherry pick 3x faster cache check 2018-08-28 21:16:27 -07:00
leijurv
e553ee93b8 20% improvement to cached chunk check performance 2018-08-28 21:11:10 -07:00
Leijurv
23cbef102d
more debug info 2018-08-28 16:15:24 -07:00
Leijurv
340b1558e4
debug cosmetic improvements 2018-08-28 15:53:29 -07:00
Leijurv
f99abd6170
fix world event post not firing for exit 2018-08-28 15:24:43 -07:00
Leijurv
a3e5714e91
collect canPlaceAgainst into one place 2018-08-28 15:01:24 -07:00
Leijurv
d433cbb90b
no more against array creation 2018-08-28 14:56:21 -07:00
Leijurv
a33b515871
fixed chunk packing bug 2018-08-28 14:15:20 -07:00
Leijurv
324c3a2705
S A N I K 2018-08-28 14:04:51 -07:00
Leijurv
801f942c30
S A N I K 2018-08-28 14:02:57 -07:00
Leijurv
4e531ec578
SANIK 2018-08-28 14:00:40 -07:00
Leijurv
804cad2776
sanik 2018-08-28 14:00:02 -07:00
Leijurv
ff83b42132
fix heightMap bug 2018-08-28 13:58:36 -07:00
Leijurv
557f2e48c3
no movement places more than one thing... 2018-08-28 13:41:44 -07:00
Leijurv
53d477d99a
optimize diagonal 2018-08-28 13:29:32 -07:00
Leijurv
4836f044ba
pillar logic 2018-08-28 13:24:34 -07:00
Leijurv
1dc0f5c3ad
update logic 2018-08-28 12:53:01 -07:00
Leijurv
d4d2fb392a
small optimization 2018-08-28 12:40:35 -07:00
Leijurv
890e5be0ed
assumeWalkOnWater 2018-08-28 12:30:08 -07:00
Leijurv
bf05de1de7
can't use flowing water, so pack it as such 2018-08-28 12:23:54 -07:00
Leijurv
169eb1d0a3
more efficient check 2018-08-28 11:57:41 -07:00
Leijurv
01dbf75eca
MineBehavior 2018-08-28 11:43:28 -07:00
Leijurv
c761a9b127
better chunk saving and loading 2018-08-28 11:28:36 -07:00
Leijurv
c0fb57825c
cancel calculation in progress 2018-08-28 11:17:11 -07:00
Leijurv
df73e07923
Add comment, fixes #102 2018-08-28 10:04:25 -07:00
leijurv
09a146e0ce Merge branch 'master' of github.com:cabaletta/baritone 2018-08-28 08:56:06 -07:00
leijurv
46fefa9298 simplification support for more goal types 2018-08-28 08:55:56 -07:00
Leijurv
850beb6c08
really cancel 2018-08-28 07:29:41 -07:00
leijurv
c404258b00 Merge branch 'master' of github.com:cabaletta/baritone 2018-08-27 19:15:16 -07:00
leijurv
27a3adeceb FollowBehavior 2018-08-27 19:05:21 -07:00
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