Commit Graph

706 Commits

Author SHA1 Message Date
Brady f232bbdb15
Clean up formatting 2023-06-08 16:36:32 -05:00
Brady 26574b4a9b
Add optional axis parameter for `#sel cyl` 2023-06-08 16:32:33 -05:00
Brady b6c52cd8e1
Cache mask in a `boolean[][][]` 2023-06-08 11:52:13 -05:00
Brady 34abbfb5da
appease codacy 2023-06-07 17:38:26 -05:00
Brady 0d14bde583
Working sphere/cylinder build commands for `#sel` 2023-06-07 16:31:52 -05:00
Brady 80ec9023ce
Replace `JAVA_ONLY_SETTINGS` array with `@JavaOnly` annotation 2023-06-04 12:31:34 -05:00
leijurv 415fa048ba
Merge pull request #3924 from ZacSharp/pr/blockOptionalMetaProperties
Extend BlockOptionalMeta parsing to parse block properties
2023-05-23 15:57:10 -07:00
ZacSharp 271c2ff636
Extend BlockOptionalMeta parsing to parse block properties 2023-04-24 23:49:23 +02:00
ZacSharp e4cd35ac33
Add maxYLevelWhileMining setting 2023-04-24 23:11:55 +02:00
Leijurv 790a4f6769
command to load settings from a specific file 2023-03-01 00:25:49 -08:00
Leijurv f1ead19b6e
option to only move inventory when stationary 2023-02-28 23:44:33 -08:00
leijurv c1a9621dfa
Merge pull request #3768 from wagyourtail/1.12/fasterworldscanner
replace the world scanner with a 500x faster one
2023-01-28 10:18:59 -08:00
Leijurv d6d9af65fb
reformat 2023-01-15 01:04:15 -08:00
leijurv bc8c823045
Merge pull request #3775 from ZacSharp/pr/frostwalker
Allow pathing to use frostwalker
2023-01-12 14:51:35 -08:00
leijurv fba3828479
Merge pull request #3735 from ZacSharp/pr/breakNextToLava
Allow breaking next to some liquids
2023-01-12 10:08:09 -08:00
ZacSharp b2f66241d5
Merge remote-tracking branch 'upstream/master' into pr/frostwalker 2022-12-30 15:57:17 +01:00
Wagyourtail 853dadd906
Merge remote-tracking branch 'origin/master' into 1.12/fasterworldscanner 2022-12-27 23:58:13 -07:00
Wagyourtail 98a748afb3
fix stream limit. immutable's in BOML 2022-12-27 22:42:38 -07:00
Wagyourtail 6260c6d3d7
apply suggestions 2022-12-24 12:11:26 -07:00
leijurv cfdbc851a0
Merge pull request #3600 from Imeguras/master
Added the ability to use KmM as abreviatures
2022-12-24 00:14:04 -08:00
leijurv e2538abcb1
Merge pull request #3743 from ZacSharp/patch-11
Fix Registry.unregister
2022-12-24 00:05:42 -08:00
leijurv 1697293f12
Merge pull request #3479 from scorbett123/caching_performance_upgrade
Caching performance upgrade
2022-12-23 23:57:14 -08:00
ZacSharp e1095962a1
Fix Registry.unregister 2022-11-28 23:07:30 +01:00
ZacSharp eabd1150b0
Allow breaking next to some liquids 2022-11-22 15:15:33 +01:00
ZacSharp ba3ca47f8c
Add buildIgnoreProperties setting 2022-10-23 01:42:31 +02:00
scorbett123 4699b46744
Merge branch 'master' into caching_performance_upgrade 2022-10-03 21:25:23 +01:00
rycbar0 025f6235f9 litematica command works and added schematic selection if more than 1 schematic is loaded
bug: if schematic origin isnt minimum corner schematic is built in the wrong place
2022-09-30 17:53:31 +02:00
schmar03 d928e705b9 LitematicaCommand added to build loaded schematics 2022-09-28 12:09:38 +02:00
ZacSharp da998eb469
Complete frostwalker usage 2022-08-29 16:59:01 +02:00
Imeguras 344085f4ef
Added the ability to use KmM as abreviatures
for example 1m is equals to 1 million  while 1K is 1000
2022-08-08 12:00:48 +01:00
Leijurv 85ab317c6c
simplify, remove setting changed event, always construct new precomputeddata 2022-07-14 21:35:30 -07:00
scorbett123 2dad6262cf Remove some benchmarking and fix loading of settings. 2022-05-31 14:56:23 +01:00
scorbett123 af1eb58bb8 Implement Leijurv's precomputed data idea 2022-05-31 14:43:58 +01:00
ZacSharp 221eba11dd
Deal with others replacing the chat gui 2022-05-20 01:31:09 +02:00
Leijurv dc6b32a154
Merge pull request #3356 from wagyourtail/forceAllowBreak
add `allowBreakAnyway` setting
2022-03-31 14:08:13 -07:00
Wagyourtail bf450b7d68
rename to allowBreakAnyway 2022-03-24 17:34:31 -07:00
Wagyourtail 4e6b6d97ce
add forceAllowBreak setting 2022-03-24 17:33:33 -07:00
PhlegethonAcheron 6aadd00e72 Added usage syntax to the documentation for buildValidSubstitutes and buildSubstitutes 2022-03-20 15:41:25 -04:00
Wagyourtail 511941c714
reimplement death and bed waypoints 2022-03-15 18:39:19 -07:00
ehylo 0ade37f14f
Update Setup and Usage guides
Also fix 2 settings that just don't have a description for some reason, and add some information to the find command because that also for some reason did not have anything there. The descriptions I put may not be detailed enough so please let me know if things should change
2022-02-08 21:13:51 -08:00
Leijurv a5638bdba1
Merge pull request #3137 from scorbett123/remove_container_memory
Remove container memory
2022-02-01 23:56:49 -08:00
Entropy5 3adfa16db8 Option to ignore direction of certain blocks during building (because otherwise baritone just keeps breaking and replacing the same block) 2021-12-17 06:24:34 +01:00
scorbett123 90fcffdf2a Remove container memory
Signed-off-by: scorbett123 <50634068+scorbett123@users.noreply.github.com>
2021-12-12 19:50:27 +00:00
Wagyourtail 9dc9edbbee fix tabbing 2021-10-27 13:53:13 -06:00
Wagyourtail 2980bb0320 match leij's backwards compat suggestion 2021-10-27 13:45:30 -06:00
wagyourtail 084798bd1b
Update src/api/java/baritone/api/Settings.java 2021-10-26 13:41:24 -06:00
wagyourtail 1c27b9b712
Update src/api/java/baritone/api/Settings.java 2021-10-26 13:34:10 -06:00
wagyourtail 1ca736692d
more closely match the existing docs and add discourageBreaking 2021-10-15 17:58:13 -06:00
wagyourtail 4dc4795cb7
AvoidBreak means never. 2021-10-15 00:00:48 -06:00
Leijurv 14178fcd14
rewrite comment since we haven't used pos.getY() in literally YEARS 2021-08-25 22:20:13 -07:00
Leijurv 5e0fe6d897
fix the comment explaining the sign flip
bug originates from august 17 2018 in f3d9ada675 (diff-b9b328a67abb41c2f842f367f83d95a2793c95cba83ab2e4542b31ed4c157819R101-R103)

absolutely wild how long this took to notice, see PR #2954
2021-08-25 22:18:23 -07:00
StylexTV 3db5f2a67f Update GoalBlock.java 2021-08-22 10:28:42 +02:00
ZacSharp ab3a015d61
Add layerHeight setting 2021-06-24 23:33:48 +02:00
mankool 8bfe32eeef Added itemSaverThreshold 2021-06-09 10:34:45 -07:00
Leijurv e85c1bbc0d
Merge pull request #2736 from ZacSharp/exploreForBlocksForMining
Make MineProcess respect exploreForBlocks
2021-05-28 13:27:13 -07:00
ZacSharp f99bf0d000
Make legitMode always explore 2021-05-28 22:18:33 +02:00
Leijurv db24a2251f
Merge pull request #2771 from ZacSharp/notificationCallback
More log callbacks
2021-05-26 11:32:53 -07:00
Tabbs dcc27a7447 oops forgot the javadoc 2021-05-25 14:52:16 -05:00
Tabbs dda4928693 change name to renderGoalAnimated 2021-05-25 14:43:32 -05:00
Tabbs 3fc36cf798 fix y to 1 if animation is disabled 2021-05-25 12:34:17 -05:00
ZacSharp 7b5f419713
Treat the new callbacks like the old one 2021-05-24 03:14:33 +02:00
ZacSharp 253fbad3db
Make MineProcess respect exploreForBlocks 2021-05-10 22:37:35 +02:00
ZacSharp 522de3d4b7
Add callback settings for toast pop-ups and desktop notifications 2021-05-10 00:31:37 +02:00
ZacSharp dc9ae67657
Move NotificationHelper to api and give Helper some methods for notifications 2021-05-10 00:26:33 +02:00
Leijurv fccac8ed74
Merge pull request #2664 from ZacSharp/buildSelectedSchematic
Add setting to only build selected part of schematica schematic
2021-04-20 23:27:57 -07:00
ZacSharp 46066d4cac
Misc
* Rename schematicaOnlyBuildSelection to buildOnlySelection
* Make it useable with #build as well
* remove debugging code I forgot
2021-04-14 23:36:16 +02:00
ZacSharp c13cf4f29c
Add setting to only build selected part of schematica schematic 2021-04-13 23:09:54 +02:00
ZacSharp a4f06a9e1e
Update javadoc as well 2021-04-10 23:56:30 +02:00
ZacSharp f348a20035
invert disableAutoTool to autoTool 2021-04-04 03:34:10 +02:00
scorbett123 14149aa6b1
fix typo 2021-03-23 19:35:11 +00:00
Leijurv ae901219fb
Merge pull request #2526 from ZacSharp/buildSkipBlocks
Settings to alter block treatment while builing
2021-03-23 08:09:44 -10:00
ZacSharp 61e0525ee8
Don't copy block state properties every time 2021-03-09 12:26:47 +01:00
ZacSharp 363519db02
treat all airs as air 2021-03-09 11:53:43 +01:00
Leijurv 76debda76e
Merge pull request #1978 from ZacSharp/master
 Add improved ETA and a command to access it
2021-02-19 20:13:47 -08:00
Leijurv b4eabe19cb
Merge pull request #2482 from ZacSharp/schematicCacheClearing
Clear caches of schematics when moving them
2021-02-19 16:06:28 -08:00
ZacSharp 971b75860f
Call reset() on static schematics as well 2021-02-19 23:57:33 +01:00
ZacSharp 5a926bf169
formatting 2021-02-19 23:52:18 +01:00
ZacSharp c880f71dc8
Clear caches of schematics when moving them 2021-02-17 01:59:23 +01:00
ZacSharp 113d26937d
remove unused imports 2021-02-11 01:08:33 +01:00
ZacSharp 132cc0e131
make range initialization more readable 2021-02-10 10:25:17 +01:00
ZacSharp 5926369a56
formatting and comments 2021-02-10 10:15:14 +01:00
ZacSharp ff068d374f
Don't box doubles 2021-02-10 00:29:45 +01:00
scorbett123 1f10199e64 Change use sword to mine to default to true.
Signed-off-by: scorbett123 <50634068+scorbett123@users.noreply.github.com>
2021-02-08 08:34:31 +00:00
scorbett123 4ae81a3b0b
Merge branch 'master' into swordSaver 2021-02-07 12:19:18 +00:00
Leijurv b32c9f1724
Merge pull request #2107 from scorbett123/toolsSaver
add itemSaver setting.
2021-02-06 13:33:01 -08:00
Leijurv a732e766f4
crucial performance optimization 2021-01-30 17:22:19 -08:00
Leijurv 835fb3471f
a long overdue reformat of every file 2021-01-29 20:17:53 -08:00
Leijurv a9f497981f
Merge pull request #2080 from millennIumAMbiguity/master
Added range argument to farm
2021-01-29 17:41:08 -08:00
ZacSharp fd61207709
Fix heuristic(no args) returning wrong values 2021-01-28 01:40:33 +01:00
ZacSharp 8c1a9f460d
Simple blockstate preservation for buildSubstitutes 2021-01-18 12:06:50 +01:00
ZacSharp f6d4a315c7
Remove debug log 2021-01-18 11:58:42 +01:00
ZacSharp fc1a2a6112
Add buildSubstitutes setting to builder 2021-01-17 02:45:40 +01:00
ZacSharp 13547781d2
add buildValidSubstitutes setting to builder 2021-01-17 00:53:50 +01:00
ZacSharp d375d1abc9
Add setting parser for mappings 2021-01-17 00:16:34 +01:00
ZacSharp dba186347c
remove likely useless code breaking buildSkipBlocks 2021-01-13 22:45:59 +01:00
ZacSharp 7988274d61
add buildSkipBlocks setting 2021-01-12 23:59:11 +01:00
Leijurv c491d67925
add setting to just skip layers that the builder fails to construct 2020-11-11 17:53:26 -08:00
Sam Corbett b9eeab06a1 change useSwordToMine to default to false.
Signed-off-by: Sam Corbett <sam@corbettchocolates.com>
2020-11-02 07:47:36 +00:00
millennIumAMbiguity 7218a46211 Added defaults and javadocs 2020-11-02 00:33:31 +01:00
scorbett123 49bc96dc7e
add useSwordToMine setting.
Signed-off-by: scorbett123 <sam@corbettchocolates.com>
2020-11-01 16:12:38 +00:00
Leijurv b16a8ecf21
Merge pull request #2079 from scorbett123/limitedMineDistance
add a minimum Y level during mining.
2020-10-30 22:35:26 -07:00
scorbett123 4aa52d2f2e
add itemSaver setting.
Signed-off-by: scorbett123 <sam@corbettchocolates.com>
2020-10-24 18:03:29 +01:00
Leijurv 6d51e10090
Merge pull request #1971 from krzys-h/fix-entity-follow-forge
Fix "#entity follow <name>" under Forge
2020-10-23 18:54:11 -07:00
millennIumAMbiguity 5d3522ca0a Added range argument to farm 2020-10-16 23:32:53 +02:00
Sam Corbett bfb530e02b add a minimum Y level.
Signed-off-by: Sam Corbett <sam@corbettchocolates.com>
2020-10-16 17:02:02 +01:00
ZacSharp 9393192036
Slight change to heuristic(no args) 2020-10-16 01:30:04 +02:00
ZacSharp 3cdbc4cb83
👌formatting in of comments 2020-10-15 21:48:17 +02:00
ZacSharp 0c7741120a
👌formatting 2020-10-15 00:05:54 +02:00
ZacSharp e529438c7e
Don't use Abs on Sqrt 2020-10-14 21:14:17 +02:00
Leijurv 5a5d11922f
Merge pull request #1995 from scorbett123/exposedOres
add mineOnlyExposedOres setting
2020-10-14 12:01:49 -07:00
CDAGaming d2c625e1c9
Apply Review Comments 2020-10-14 13:14:23 -05:00
CDAGaming d6665f1cd5
Added Toast API Support
This adds in a logAsToast and toastTimer option, and is a minified form of Indrit's initial implementation previously used from fabritone
2020-10-12 12:46:01 -05:00
ZacSharp 85cc86346c
Actually use Y and Z bounds for Y and Z 2020-09-20 22:20:24 +02:00
ZacSharp b20e095683
add heuristic(no args) to GoalNear and GoalRunAway
not really a good solution but better than nothing
2020-09-20 00:29:31 +02:00
Sam Corbett 612510550f fix javadoc.
Signed-off-by: Sam Corbett <sam@corbettchocolates.com>
2020-09-08 19:00:41 +01:00
Sam Corbett 80e4852f90 Merge https://github.com/cabaletta/baritone into exposedOres 2020-09-08 17:48:45 +01:00
Sam Corbett 547db3a6b4 make the ability to turn it off.
Signed-off-by: Sam Corbett <sam@corbettchocolates.com>
2020-09-08 17:47:45 +01:00
scorbett123 063f698bd2 need to remove diagonals, however this does most of what you suggest.
Signed-off-by: scorbett123 <sam@corbettchocolates.com>
2020-09-08 17:47:45 +01:00
scorbett123 bcbfca100f add mineOnlyExposedOres setting
Signed-off-by: scorbett123 <sam@corbettchocolates.com>
2020-09-08 17:47:45 +01:00
ZacSharp 7255ccbdaa
add heuristic(no args) to GoalComposite
GoalNear and GoalRunAway are still missing it
2020-09-06 16:42:05 +02:00
ZacSharp 45dc8b949d
add a method to get the heuristic at the goal
this alows the ETA to work with goals not ending with a heuristic of 0

GoalComposite, GoalRunAway and GoalNear are still missing
2020-09-05 22:32:38 +02:00
scorbett123 d7088c8eea fix typo in java-doc x2
Signed-off-by: scorbett123 <sam@corbettchocolates.com>
2020-08-31 18:48:46 +01:00
ZacSharp b628d67961 Add ETA for full path 2020-08-26 23:52:44 +02:00
krzys-h ed91e2aa7b Fix "#entity follow <name>" under Forge
One of the Forge patches removes EntityList.REGISTRY and provides
the getClass method as a replacement.

The fix is based on a similar one I found in WorldDownloader

Closes #1376 (and duplicates: #1777 and #1815)
2020-08-24 22:24:18 +02:00
RealIndrit 523f13c430
🔥 Get yeeted unused code
Removed an unused function that can't be used anyways, because RayTraceUtils cant detect entity hit...
2020-08-18 12:36:10 +02:00
Leijurv 7992b63aae
Merge pull request #1346 from aUniqueUser/master
Make desktop notifications more useful
2020-08-17 16:38:36 -07:00
Leijurv 9851623557
anti-indrit-cringe 2020-08-17 16:03:04 -07:00
Leijurv f0d2bae3d1
Merge pull request #1947 from RealIndrit/master
Add auto tool setting
2020-08-17 15:57:37 -07:00
Leijurv f3561cab47
SUPER cute code for repackOnAnyBlockChange 2020-08-17 15:54:42 -07:00
Leijurv 460833f7d6
Merge branch 'master' of github.com:cabaletta/baritone 2020-08-17 14:59:20 -07:00
RealIndrit 2eba22031a Maybe dont have ignore cost calculation override auto tool? 2020-08-14 22:47:39 +02:00
RealIndrit ac55de63e9 Maybe dont have ignore cost calculation override auto tool? 2020-08-14 17:55:10 +02:00
RealIndrit 19355cb4f2 Added AutoToolMovement bypass setting for special usage cases, should not be used it not actually necessary 2020-08-14 10:58:15 +02:00
RealIndrit 2ddc2c3660 Add auto tool settings because 2 lines of code lols 2020-08-13 22:36:34 +02:00
Leijurv b187d86074
fix orsond rock brain moment 2020-08-05 23:31:32 -07:00
orsondmc 7081cf7172 Introduce startAtLayer to start building at a specific layer in the schematic. To be used only with buildWithLayers true. 2020-08-06 16:23:13 +10:00
Leijurv e42c19bfec
thebes uwu 2020-06-27 22:25:47 -07:00
aUniqueUser 4c79701d22
Make desktop notifications more useful 2020-02-29 11:28:18 -05:00
Leijurv e854bf59f8
fix sneaking based issues 2020-02-24 18:31:42 -08:00
Brady 888b2723e0
Fix critical prefix tag bug 2020-02-23 21:13:51 -06:00
Babbaj ee33666b38
3 days 2020-02-23 21:54:18 -05:00
Babbaj 07c406aa16
baritoe 2020-02-23 21:48:15 -05:00
aUniqueUser 2d2571cff5
Desktop Notification System 2020-02-22 18:31:41 -05:00
Brady 710170ef2d
Fix RelativeGoalXZ coordinate mix-up
Basically for many months now RelativeGoalXZ produced (~X, ~Y), not (~X, ~Z).
2020-01-10 20:10:16 -06:00
Brady fcfa022232
Clean up BlockOptionalMeta comment and add behavioral clarification 2019-12-30 02:27:20 -06:00
Brady 812bc0d8c4
Remove redundant parser layer 2019-12-27 01:14:31 -06:00
Brady eee705b371
Schematic Format API support 2019-12-24 17:20:00 -06:00
Brady eea5b69b6c
Utilize new FillSchematic 2019-12-19 12:03:02 -06:00
Brady 6759917a2f
Additional clean up 2019-12-19 11:58:47 -06:00
Brady ea8d7fb3b9
Improve file extension fallback mechanism 2019-12-18 15:19:58 -06:00