aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/mining.rs
AgeCommit message (Collapse)Author
2025-02-22Refactor azalea-client (#205)mat
* start organizing packet_handling more by moving packet handlers into their own functions * finish writing all the handler functions for packets * use macro for generating match statement for packet handler functions * fix set_entity_data * update config state to also use handler functions * organize az-client file structure by moving things into plugins directory * fix merge issues
2025-02-22update to rust edition 2024mat
2025-01-10Fluid physics (#199)mat
* start implementing fluid physics * Initial implementation of fluid pushing * different travel function in water * bubble columns * jumping in water * cleanup * change ultrawarm to be required * fix for clippy
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-12Make some internal system handles public for use with before/after (#180)Shayne Hartford
2024-10-21Rename InventoryComponent to Inventory to match other components (#177)Shayne Hartford
(cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c)
2024-08-15modify some docsmat
2024-08-15fix sometimes being able to mine blocks through wallsmat
2024-08-11fmtmat
2024-07-21Added Left Click Mine (1.21) (#168)Aditya Kumar
* Added Auto Mine * Unnecessary Block Reach Check * Added `LeftClickMine`
2024-02-17upgrade deps, bevy 0.13mat
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-04Replace Bevy's FixedUpdate with Azalea's GameTick (#119)mat
* replace bevy FixedUpdate with azalea GameTick * Update to Bevy 0.12.1
2023-12-03make it so plugins can send and receive packets during the login statemat
2023-11-06bevy 0.12mat
2023-10-12KnockbackEvent and rename Physics::delta to velocitymat
2023-10-01organize azalea_core and re-export it from azaleamat
2023-09-211.20.2 (#99)mat
* add configuration state * start updating to 23w31a * implement a bit more of 23w31a * chunk batching * start adding configuration state * ioasfhjgsd * almost works * configuration state mostly implemented * handle other packets in configuration state and fix keepalive * cleanup, fix warnings * 23w32a * fix some doctests * 23w33a * 23w35a * 1.20.2-pre2 * fix system conflicts * 1.20.2-pre4 * make tests compile * tests pass * 1.20.2-rc2 * 1.20.2 * Revert "1.20.2" This reverts commit dd152fd265332ead333c919e585ded6d609d7468. * didn't mean to commit that code --------- Co-authored-by: mat <git@matdoes.dev>
2023-09-10fix incorrect jumpingmat
2023-08-25fix all bevy ambiguitiesmat
2023-07-15Attacking (#96)mat
* add Client::attack * partially implement attack cooldowns * attack speed modifiers * don't care clippy --------- Co-authored-by: mat <git@matdoes.dev>
2023-07-14Mining (#95)mat
* more mining stuff * initialize azalea-tags crate * more mining stuff 2 * mining in ecs * well technically mining works but no codegen for how long it takes to mine each block yet * rename downloads to __cache__ it was bothering me since it's not *just* downloads * codegen block behavior * fix not sending packet to finish breaking block * mining animation 🎉 * clippy * cleanup, move Client::mine into a client extension * add azalea/src/mining.rs --------- Co-authored-by: mat <git@matdoes.dev>
2023-07-09Update to Bevy 0.11 (#94)mat
* update to bevy 0.11 * clippy --------- Co-authored-by: mat <git@matdoes.dev>
2023-05-27random fixes mostly related to auth and cryptomat
2023-05-26add stuff related to chat signingmat
and also some stuff related to digging because i forgot to do a different branch lol