Commit Graph

3124 Commits

Author SHA1 Message Date
Babbaj 985148b49a
check for specific blocks to land on and anything non air is lava 2023-07-23 01:00:23 -04:00
Babbaj 9e78443595
resolve comment 2023-07-23 00:53:26 -04:00
Babbaj 58723a33ca
hate cherry pick now 2023-07-23 00:05:11 -04:00
Babbaj c9aa1658b2
improvements/fixes 2023-07-23 00:03:31 -04:00
Babbaj 7f9e50bbe2
initial safe landing impl 2023-07-23 00:02:46 -04:00
Babbaj 664375a678
make elytra play nice with CustomGoalProcess 2023-07-22 01:55:12 -04:00
Brady 097e30850f
Move `WalkOffCalculationContext` into `ElytraProcess` 2023-07-18 23:35:09 -05:00
ZacSharp 37f1c30ad0
Merge branch '1.19.2' into 1.19.4 2023-07-19 04:32:08 +02:00
ZacSharp 217dca5363
Merge branch '1.18.2' into 1.19.2 2023-07-19 04:13:47 +02:00
Brady dfa838a6f9
Replace `Mth.fastInvSqrt` with `1.0 / Math.sqrt` 2023-07-18 19:19:08 -05:00
Brady 218de1cb98
Requested changes 2023-07-18 16:48:00 -05:00
Brady 6a9694b03a
Manually specify some normals, fix GoalXZ rendering 2023-07-18 15:24:21 -05:00
Babbaj 0239a2cad4
notificationOnPathComplete and disconnectOnArrival 2023-07-18 15:36:29 -04:00
Babbaj 38553b3324
behavior can't be null in onTick 2023-07-18 14:52:09 -04:00
Babbaj ba78c48a75
shutdown solverExecutor 2023-07-18 13:36:55 -04:00
Babbaj f4996137a3
minor code improvements 2023-07-18 13:36:55 -04:00
Babbaj ccd80dfc8f
that isn't necessary 2023-07-18 13:36:55 -04:00
Babbaj ff1b3e7c5f
simplify management of elytra state 2023-07-18 13:36:55 -04:00
Babbaj 2f0497756b
simplify icky code 2023-07-18 13:36:54 -04:00
Babbaj afe9359d3e
don't call onTick if we are pawsed 2023-07-18 13:36:54 -04:00
Babbaj 4b5d629df6
fix off by one error (causing the last point to be stuck in terrain) 2023-07-18 13:36:54 -04:00
Babbaj dbc0a46b10
call elytra event handlers from ElytraProcess 2023-07-18 13:36:54 -04:00
Babbaj 9a6241af8a
refactor elytra into being just a process 2023-07-18 13:36:53 -04:00
Brady 1b82bd1f33
pitch smooth look and setting for ticks 2023-07-17 17:58:08 -05:00
Brady bf9cb76604
VulkanMod compatibility + use `LINES` instead of `DEBUG_LINES` 2023-07-17 16:34:01 -05:00
Brady Hahn 90cfd82810
Merge pull request #4056 from babbaj/elytra
consistent elytra setting naming
2023-07-16 20:30:35 -05:00
Brady 108dbdae5d
partially appease codacy 2023-07-16 20:29:30 -05:00
Brady 32a4c4644e
Move cull code 2023-07-16 20:21:40 -05:00
Leijurv edc92753cf
Revert "shrimple"
This reverts commit 0e567f2f90.
2023-07-16 18:17:53 -07:00
Leijurv 0e567f2f90
shrimple 2023-07-16 18:17:15 -07:00
Babbaj 41e8c69db9
consistent elytra setting naming 2023-07-16 18:58:42 -04:00
Babbaj f3bb5a0cb2
make sure BlockStateOctreeInterface doesn't use freed chunk pointers 2023-07-16 13:53:02 -04:00
Babbaj 76d3a13f58
cull far away chunks from the cache 2023-07-16 01:19:51 -04:00
Brady Hahn e579bf980d
Update NetherPath.java 2023-07-15 22:23:59 -05:00
Brady Hahn 716b3ae0d2
Update ElytraBehavior.java
i love github web editor
2023-07-15 22:23:35 -05:00
Babbaj b468b8eb95
landing procedure 2023-07-15 22:17:21 -04:00
Brady 1d109d4b9f
crucial performance optimization 2023-07-13 14:47:19 -05:00
Brady 29bf046aa8
BlockStateOctreeInterface 2023-07-13 14:28:51 -05:00
Babbaj d35571923f
appease brady 2023-07-13 14:35:33 -04:00
Babbaj 461f56c4d6
countdown instead of count up 2023-07-13 14:21:15 -04:00
Babbaj 0b5d5b8176
use ticksBetweenInventoryMoves 2023-07-12 22:54:04 -04:00
Babbaj 42771686c6
auto swap elytra 2023-07-12 16:42:14 -04:00
ZacSharp 448e454cc8
Merge branch '1.17.1' into 1.18.2 2023-07-12 18:56:17 +02:00
Brady 8f5105c454
trolled pt2 2023-07-11 22:50:35 -05:00
Brady 7c696b7055
trolled 2023-07-11 22:49:51 -05:00
Brady 349c951b55
Better handling of unsupported systems 2023-07-11 22:47:09 -05:00
Leijurv 5dc403e643
crucial performance optimization 2023-07-10 00:12:10 -07:00
Brady Hahn a8e1b16dee
Merge pull request #4048 from babbaj/elytra
don't send the whole chunk for small changes
2023-07-09 22:31:42 -07:00
Babbaj dc53a95bef
don't send the whole chunk for small changes 2023-07-10 00:45:12 -04:00
Brady eec4edea05
Remove old pack method 2023-07-09 20:00:35 -07:00
Babbaj 96a64b454e
optimize uploading chunk data 2023-07-09 22:29:31 -04:00
Brady 7a935fb2ea
Fix simulation not respecting `ignoreLava` 2023-07-09 09:12:21 -07:00
Brady c0cdfb7781
Add commands for pathfinder reset and chunk repack 2023-07-07 19:44:59 -07:00
Brady 487b3a759a
`mostRecentGoal`, fixes immediate goal clear 2023-07-07 18:35:02 -07:00
Brady fe67489419
Combine `VALIDATE_PATH` and `LOCATE_JUMP` states 2023-07-07 14:38:11 -07:00
Brady 308b9bbfea
Apply minimum fall height to regular falls too 2023-07-07 13:26:43 -07:00
Brady bfb4ffcafc
Reset context on world load/unload 2023-07-07 11:19:18 -07:00
Brady 537100a5e5
Nether seed setting and automatic context reset 2023-07-07 10:44:56 -07:00
Brady b6bf4427ef
Use soft references for nether chunk packing queue 2023-07-07 00:30:07 -07:00
Brady 8de239f468
Use soft references for chunks queued for packing 2023-07-06 23:15:35 -07:00
Brady ecfd664f30
Fix `isSafeToCancel()` return value 2023-07-06 20:11:50 -07:00
Brady c4ac23837f
Set `safeToCancel` to `false` while flying 2023-07-06 19:31:37 -07:00
Brady aeeb001205
Fix some codacy issues 2023-07-06 19:02:13 -07:00
Brady 2552eb8dca
Add setting documentation 2023-07-06 18:57:51 -07:00
ZacSharp cbf0d79c9c
Merge branch '1.16.5' into 1.17.1 2023-07-06 13:30:25 +02:00
ZacSharp 8e58dd9e64
Merge branch '1.15.2' into 1.16.5 2023-07-04 16:48:41 +02:00
ZacSharp 45abbb7fa1
Merge branch '1.14.4' into 1.15.2 2023-07-04 16:48:36 +02:00
ZacSharp 1d983d5fdc
Merge branch '1.13.2' into 1.14.4 2023-07-04 16:48:31 +02:00
ZacSharp be54b8ee5b
Merge branch 'master' into 1.13.2 2023-07-04 16:47:58 +02:00
Brady 4c0c263d11
trolling 2023-07-03 13:28:53 -05:00
Brady c8259d3e90
ZOOM 2023-07-03 13:27:23 -05:00
Brady d892ef54f0
Merge branch 'master' into elytra 2023-07-02 20:04:04 -05:00
Brady 6654476da4
Make `blockFreeLook` depend on `freeLook` 2023-07-02 19:59:26 -05:00
Brady dee7df1534
I HATE OLD MIXIN!!!!
awesome buggy 0.7.11 hates referencing shadows in mixin superclasses wooooooo
2023-07-01 19:38:38 -05:00
Brady ccd737d0a1
Actually fix Forge by reverting Mixin change completely 2023-07-01 18:38:13 -05:00
Brady 14b5a0cec3
Fix Forge support 2023-07-01 17:28:23 -05:00
Brady 2f7dc2397e
Better start position selection and validation 2023-07-01 01:32:03 -05:00
Brady 3498082f2b
Better state switch and start path halfway down fall 2023-06-30 20:53:42 -05:00
Brady 83066fc57c
Find jump off spot using INSANE custom CalculationContext 2023-06-30 20:42:03 -05:00
Brady d32f1b2a16
Add hit pos raytrace method to context 2023-06-30 20:38:45 -05:00
Leijurv 8211ae4af5
memory leaks are joever 2023-06-29 21:59:31 -07:00
Brady 4590ba3ff8
Use separate executor for solver 2023-06-29 23:35:12 -05:00
Brady b4578931d3
Reduce passing around of `ignoreLava` 2023-06-29 22:59:15 -05:00
Brady b8ede0a652
Remove unnecessary `IPlayerContext` argument 2023-06-29 22:54:55 -05:00
Brady 3eb7610f89
Block lookup optimization 2023-06-29 20:45:59 -05:00
Brady 5a48f4119e
Reduce number of raytraces when validating simulation 2023-06-29 19:15:06 -05:00
Brady f30cb916bd
Remove addressed TODO 2023-06-29 14:53:55 -05:00
Brady 494ebfa10d
More accurate `isActive` return value 2023-06-29 14:53:12 -05:00
Brady 222f53b105
Use `Arrays.fill` 2023-06-29 14:46:42 -05:00
Brady 12898df2f1
Reduce main thread recalculations after using a firework 2023-06-29 14:46:04 -05:00
Brady fbb66a0586
Tweaks 2023-06-29 14:14:49 -05:00
Brady 48462da473
Disable interp on relaxation 0 2023-06-28 21:47:37 -05:00
Brady 4b689bd946
Fix `Supplier` meme 2023-06-28 17:55:47 -05:00
Brady 5126ec9c36
interp double 2023-06-28 17:49:33 -05:00
Brady d640ebb02d
Reliability improvements 2023-06-28 17:47:01 -05:00
Brady 0bb6f1b094
Invalidate `pendingSolution` 2023-06-28 01:05:22 -05:00
Brady bb39fea415
Considerations 2023-06-28 01:04:08 -05:00
Brady 7a61ab8137
We need event priorities. 2023-06-28 00:58:51 -05:00
Brady 7861860187
Clarify 2023-06-28 00:48:28 -05:00
Brady 70166f385d
That should be in the other tick method 2023-06-28 00:47:20 -05:00
Brady 03ee30bca9
Call elytra `tick()` from the process 2023-06-28 00:46:14 -05:00
Brady c48de32860
`PitchResult` 2023-06-27 16:31:08 -05:00
Brady 3b31387092
Render simulation line from player pos 2023-06-27 13:02:01 -05:00
Brady ff12832a21
whoops 2023-06-27 12:30:41 -05:00
Brady 4ccaf681c5
Somewhat functional `elytraAutoJump`, but mostly scuffed 2023-06-27 02:54:53 -05:00
Brady 02fc62f1c4
Stop simulation when goal reached 2023-06-26 18:37:06 -05:00
Brady 04a5a1a620
Replace `bool firework` with `ticksBoosted` in `solvePitch` 2023-06-26 16:58:29 -05:00
Brady 3e94cac567
clarity 2023-06-26 16:25:21 -05:00
Brady 452b2c278b
Fix `renderElytraSimulation` 2023-06-26 16:21:15 -05:00
Brady db0bfbe722
Move elytra simulation into new method 2023-06-26 16:12:56 -05:00
Brady f0148a625e
Move `steps` into `solvePitch` 2023-06-26 16:04:05 -05:00
Brady 0b5a310f18
Move firework boost calculation into `solvePitch` 2023-06-26 15:35:40 -05:00
Brady c18715b8d7
Reset `minimumBoostTicks` to 0 earlier 2023-06-26 14:00:38 -05:00
Brady d244a39040
Make `MixinEntityLivingBase` extend `MixinEntity` 2023-06-26 13:57:24 -05:00
Brady 0981114b78
Create `FireworkBoost` class for additional boost context
Also initialize `boostedEntity` in `EntityFireworkRocket` if `null` since it's lazily initialized in `onUpdate()`
2023-06-26 13:55:18 -05:00
Brady 9bd0856445
lol 2023-06-25 15:32:02 -07:00
Brady 9d1addd114
Add `smoothLook` setting 2023-06-25 15:28:06 -07:00
Brady 1902e6c1f3
Reset `minimumBoostTicks` to 0 when not boosted 2023-06-24 22:37:21 -07:00
Brady a1a3d93dc1
Add `renderElytraSimulation` setting 2023-06-24 22:27:38 -07:00
Brady 32b7c82650
Add `renderHitboxRaytraces` setting 2023-06-24 22:11:08 -07:00
Brady 615266ed96
Replace manual calculation with util method 2023-06-24 21:57:00 -07:00
Brady 15f4253b3d
Clamp pitch to normal range 2023-06-24 21:48:44 -07:00
Brady 2ccd464a49
Utilize aim processor API for correct elytra simulation 2023-06-24 21:44:08 -07:00
Brady f2374edd8b
Merge branch 'master' into elytra
# Conflicts:
#	src/launch/java/baritone/launch/mixins/MixinMinecraft.java
#	src/main/java/baritone/Baritone.java
#	src/main/java/baritone/behavior/LookBehavior.java
2023-06-23 23:31:43 -07:00
Brady f56e0569a2
Add `minimumBoostTicks` 2023-06-23 16:30:10 -07:00
Brady c10903be69
Remove `firstFireworks` from `InventoryBehavior` 2023-06-23 16:17:59 -07:00
ZacSharp e3a1ac85cc
Fix waiting for impossible rotations 2023-06-23 04:22:35 +02:00
leijurv 1ea071de09
Merge pull request #4015 from cabaletta/pr/deterministicLookTarget
API for rotations produced by LookBehavior
2023-06-22 19:21:02 -07:00
Brady c9a18caf49
Register `LookBehavior` first
Since there's no event priority system, this is necessary to ensure anything else listening to the PRE `TickEvent` can accurately simulate rotations.
2023-06-22 20:38:00 -05:00
Brady bfae100cb9
Create `ITickableAimProcessor` 2023-06-22 20:35:22 -05:00
Brady 878a32228a
Add avoidance setting 2023-06-22 18:22:40 -05:00
Brady bce2c74a8e
NO MORE CONCUSSIONS! 2023-06-22 18:07:11 -05:00
Brady 90434b3178
A bit more flexibility 2023-06-22 12:54:30 -05:00
Brady 9cf5538058
Improve stepper collision detection 2023-06-22 12:50:06 -05:00
Brady f4a99253f4
Prevent head bonks 2023-06-22 12:08:30 -05:00
Brady b366b1b1d1
Fix other null checks 2023-06-22 11:40:45 -05:00
Babbaj 535fd17a42
simplify null check 2023-06-22 08:30:25 -04:00
Brady 47dc0f9b94
Add missing exception null check to async completed callback 2023-06-21 21:30:04 -05:00
Brady 4776fa1876
Don't update `playerNear` on an empty path 2023-06-21 21:19:12 -05:00
leijurv b0ebbf4dfb
Merge pull request #4007 from ZacSharp/pr/schematics/mask/fixBinaryOperatorMaskOOB
Don't call `partOfMask` out of bounds in `BinaryOperatorMask`
2023-06-21 18:53:58 -07:00
leijurv 9d12a4ba3d
Merge pull request #4008 from ZacSharp/pr/pathing/goals/implHashCode
Implement `hashCode` for goals
2023-06-21 18:53:36 -07:00
Mike 7ef4307ab7 Clean up useMessageTag 2023-06-21 18:25:24 -07:00
Brady 0aff31b768
Perfect elytra simulation 2023-06-21 18:59:44 -05:00
Brady 0682e63707
Apply processor to RotationMoveEvent 2023-06-21 17:39:04 -05:00
Brady 7e426bd2e8
AimProcessor API 2023-06-21 17:35:47 -05:00
Mike a5ca664a6a Add useMessageTag setting 2023-06-21 15:14:54 -07:00
Brady 367ce5fa17
cherry pick Allow freeLook when using elytra 2023-06-21 14:55:40 -05:00
Brady 877fd25608
Distinguish unexpected exceptions in path calc 2023-06-21 00:52:43 -05:00
Brady cfd9a69052
Revert how PathManager tick works 2023-06-21 00:21:37 -05:00
Brady d42bfcfa53
Fix NPE 2023-06-20 23:15:45 -05:00