aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
AgeCommit message (Collapse)Author
2024-12-21fix flakey pathfinder tests by moving stop_pathfinding_on_instance_change to ↵mat
be before path_found_listener
2024-12-11Implement EntityPositionSync (#196)mat
* implement EntityPositionSync * fix EntityPositionSync setting the wrong vec_delta_codec and also move into a RelativeEntityUpdate
2024-12-11fix for latest nightly by changing the FixedBitSet generic to take bytes ↵mat
instead of bits
2024-12-04Update Bevy and migrate to workspace dependencies and package attributes (#181)EightFactorial
* Use workspace `Cargo.toml` for dependencies and package atributes * Fix a couple clippy warnings * Update bevy, update build script, move deps to workspace, and fix clippy warnings * Remove carrots from crate versions The default behavior is the same * Remove unused dependencies Compiles and all tests pass, so it should be fine * Update codegen to use `std::sync::LazyLock` instead of `once_cell::sync::Lazy` * Update Bevy to `0.15.0-rc.3` Surprisingly little needed to be changed * Update to bevy 0.15.0 * Fix leftover merge issues * Clarify the reason the swarm can't connect * Fix duplicate lint, remove `log` dependency
2024-11-27Refactor azalea-protocol (#190)mat
* start updating to 1.21.4 * fix block codegen and stop using block data from burger * rename packet related modules and structs to be simpler * ItemSlot -> ItemStack for more consistency with mojmap * .get() -> .into_packet() * simplify declare_state_packets by removing packet ids * rename read_from and write_into to azalea_read and azalea_write * rename McBufReadable and McBufWritable to AzaleaRead and AzaleaWrite * McBuf -> AzBuf * remove most uses of into_variant * update codegen and use resourcelocation names for packets * implement #[limit(i)] attribute for AzBuf derive macro * fixes for 1.21.4 * fix examples * update some physics code and fix ChatType * remove unused imports in codegen * re-add some things to migrate.py and update +mc version numbers automatically * downgrade to 1.21.3 lol
2024-11-27replace once_cell with std:;sync::LazyLockmat
2024-11-23Update and merge the dependencies (#187)Shayne Hartford
* Add rust rover to .gitignore * Fold dependency feature lists * Sort dependencies alphabetically * Update dependencies * Upgrade dependencies * Comment out unused dependencies * Nightly is broken right now :) * Fix conflict with derive_more * cargo autoinherit to merge dependencies * Fix clippy lints
2024-11-15Add more derives to the pathfinder goals for flexibility (#183)Shayne Hartford
2024-11-12Make some internal system handles public for use with before/after (#180)Shayne Hartford
2024-10-26group imports with rustfmtmat
2024-10-21Rename InventoryComponent to Inventory to match other components (#177)Shayne Hartford
(cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c)
2024-08-15fix sometimes being able to mine blocks through wallsmat
2024-08-15fix ClientboundLevelParticlesPacket errors and pathfinder /particle errorsmat
2024-04-09make recalculate_near_end_of_path publicmat
so other plugins can do .after(recalculate_near_end_of_path)
2024-02-26optimize physics a bit moremat
2024-02-25optimize physicsmat
2024-02-24add Display for Vec3, add SimulationSet, and add EntityChunkPos componentmat
2024-02-23fix pathfinder A* using slightly suboptimal paths sometimesmat
2024-02-22fix for hypixel limbomat
2024-02-17upgrade deps, bevy 0.13mat
2024-01-08fix ping packet, explosion packet, and panic lessmat
2023-12-17fix testsmat
this was already fixed in pathfinder-extras but it's probably gonna be a while before that's merged
2023-12-15Add mining to the pathfinder (#122)mat
* basic pathfinder mining poc * mining descending and autotool * pathfinder mining descending * pathfinder fixes * allow disabling pathfinder miner and other fixes * small optimization to avoid chunk vec iter lookup sometimes * seeded rng in pathfinder bench * consistently use f32::INFINITY this brings performance much closer to how it was before * astar heuristic optimization from baritone * add downward_move * fix downward move execute * avoid liquids and falling blocks when mining * fix COST_HEURISTIC * fix to not path through flowing liquids * only reset pathfinder timeout while mining if the block is close enough * cache mining costs of block positions * fix mine_while_at_start and move PathfinderDebugParticles to its own module * add ReachBlockPosGoal in other news: azalea's sin/cos functions were broken this whole time and i never noticed * clippy and add things that i accidentally didn't commit * improve wording on doc for azalea::pathfinder
2023-12-10more reliable StopPathfindingEventmat
2023-12-10Climbing (#121)mat
* start implementing climbing * fix tests * fix bots running at lower tick rate
2023-12-09add BlockState::propertymat
2023-12-04Replace Bevy's FixedUpdate with Azalea's GameTick (#119)mat
* replace bevy FixedUpdate with azalea GameTick * Update to Bevy 0.12.1
2023-12-03clippymat
2023-12-03make it so plugins can send and receive packets during the login statemat
2023-11-18replace log with tracingmat
2023-11-12improve docs a bitmat
2023-11-12fix pathfinder testsmat
2023-11-06bevy 0.12mat
2023-10-12KnockbackEvent and rename Physics::delta to velocitymat
2023-10-10start adding mining to pathfindermat
2023-10-08PathfinderCtxmat
2023-10-08don't pathfind into lava lolmat
2023-10-08update repo linksmat
2023-10-07split pathfinder execution into multiple systems (and fix some bugs)mat
2023-10-07fix some parkour issuesmat
2023-10-073 block jumps and other parkourmat
2023-10-07descend_forward_1_move movemat
2023-10-07clean up code and optimize a bit moremat
2023-10-07make pathfinder twice as fast :sunglasses:mat
2023-10-07improve pathfinder path executionmat
2023-10-06make sure pathfinder is always centered on the destination block (fixes tests)mat
2023-10-05replace a linear search with a binary search . . .mat
2023-10-05make pathfinder more blazingly fast by skipping linear search most of the timemat
2023-10-05simplify part of pathfindermat
2023-10-04improve pathfinder heuristicsmat