1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

82 commits

Author SHA1 Message Date
mat
fd9bf16871 implement EntityHitResult 2025-06-16 21:31:04 +00:00
mat
a2606569bb use owned instead of borrowed Vec3 more 2025-06-11 22:58:41 -06:30
mat
067ec06f26 add BlockPos::distance_to and length 2025-06-11 05:17:06 -13:00
mat
9b0bd29db4 take BlockPos instead of &BlockPos in all function arguments 2025-06-11 16:55:33 +11:00
mat
1edb9d3448 add BlockPos::center_bottom 2025-06-02 17:56:16 -08:00
mat
f3a5e91a8c fix issues when pathfinding to non-full blocks and add Client::view_inventory 2025-06-03 09:52:30 +09:30
mat
cee64cece3 actually send Event::ReceiveChunk 2025-06-02 15:55:39 -03:00
mat
d028d7c3e9 add basic support for getting biome ids in chunks 2025-06-02 07:45:26 +11:00
mat
f27c87b291 more formatting fixes 2025-05-30 19:22:09 -08:45
mat
e37524899e formatting: merge imports 2025-05-30 14:44:48 -13:00
mat
ae4b1e85e6 fix clippy issues and improve formatting everywhere 2025-05-30 19:36:59 -08:00
mat
5272db8bb4 remove executable bit from files 2025-04-04 15:56:06 +00:00
mat
ef357fdf36
1.21.5 (#198)
* 25w02a

* move item_components codegen to a different module

* remove outdated test

* 25w03a

* start updating to 24w09b

* 1.21.5-pre2

* fix broken packets

* 1.21.5-rc2

* merge main

* delete unused acket_handling

* 1.21.5
2025-03-25 11:17:39 -05:00
mat
ca2e0b3922 entity collisions 2025-03-16 19:01:31 +00:00
mat
b0bd992adc
Fluid physics fixes (#210)
* start fixing code related to fluid physics

* implement force_solid for blocks

* afk pool test
2025-03-16 13:41:17 -05:00
mat
0d16f01571
Fluid physics (#199)
* 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
2025-01-10 16:45:27 -06:00
mat
6ccd44e28d better astar WeightedNode::cmp 2024-12-27 06:57:08 +00:00
mat
f03e0c2235 fix parsing Dust particle and treat waterlogged blocks as liquid in pathfinder 2024-12-24 08:48:36 +00:00
mat
de5a53ce08 add additional pathfinder test and fix pathfinder failure 2024-12-24 05:18:33 +00:00
mat
e9136c9cbb
Implement EntityPositionSync (#196)
* implement EntityPositionSync

* fix EntityPositionSync setting the wrong vec_delta_codec and also move into a RelativeEntityUpdate
2024-12-11 19:51:12 -06:00
mat
39f4d68e1f fix container_set_content, player_position, and recipe_book_remove packets 2024-12-05 06:30:47 +00:00
Shayne Hartford
944fe5c6f8
Impl FromStr for BlockPos & Vec (again) (#191) 2024-11-30 15:46:39 -06:00
mat
c36201cc89 change DataComponentPatch::get to take in a generic (and add get_kind, has, and has_kind) 2024-11-28 03:17:58 +00:00
mat
08958c2278
Refactor azalea-protocol (#190)
* 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-27 19:31:40 -06:00
mat
6b0fe5bf63 group imports with rustfmt 2024-10-26 05:29:26 +00:00
Shayne Hartford
5535877a4b
Impl FromStr for BlockPos & Vec (#174)
* Impl FromStr for BlockPos & Vec

(cherry picked from commit 288db1ca303c801c189f950fa99d5ae8369235c4)

* Add comments
2024-10-21 17:04:46 -05:00
Shayne Hartford
58d1485733
Derive Deserialize & Serialize for BlockPos & Vec3 (#175)
(cherry picked from commit f0d15d08320cbca1f3383e60cdd97efc488c3b34)
2024-10-21 14:11:51 -05:00
mat
1d80f531b7
1.20.5 (#127)
* 23w51b

* make recalculate_near_end_of_path public

so other plugins can do .after(recalculate_near_end_of_path)

* update to 24w03a i think

* start implementing 24w13a

* registries work (but a lot of packets are still broken)

* fix recipes and commands packets

* i love codecs :D i am not going insane :D mojang's java is very readable :D

* item components are "implemented" meowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeow

* update to 1.20.5-pre3

* fix all the broken packets and clippy (mojang please don't do an update like this again or i will murder someone)

* 1.20.5-rc1

* fix failing tests

* 1.20.5
2024-04-23 10:34:50 -05:00
mat
13426b035e add Display for Vec3, add SimulationSet, and add EntityChunkPos component 2024-02-24 21:03:02 -06:00
mat
4eeda83ba4 add some more convenience functions 2024-02-24 06:02:11 -06:00
mat
a707e2eb82
Add mining to the pathfinder (#122)
* 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-15 11:26:40 -06:00
mat
cc0717f45e i didn't actually commit the code 2023-12-13 22:03:54 -06:00
mat
ce81ae9cb3 optimize azalea-core positions and remove some unnecessary nightly features 2023-10-26 20:42:22 -05:00
mat
19881c4612 fix State incorrectly being reused when calling handlers in swarm 2023-10-11 00:02:12 -05:00
mat
5d075abfc5 make pathfinder twice as fast 😎 2023-10-07 15:27:21 -05:00
mat
94ef48d9f2 make sure pathfinder is always centered on the destination block (fixes tests) 2023-10-06 16:08:26 -05:00
mat
177864be60 replace a linear search with a binary search . . . 2023-10-05 01:40:25 -05:00
mat
074bb61983 improve pathfinder heuristics 2023-10-04 22:54:07 -05:00
mat
17734cdcbf add safety comments and simplify some code 2023-10-04 20:24:49 -05:00
mat
c2fb991595 BLAZINGLY FAST 🚀🚀🚀 pathfinding 2023-10-04 19:49:30 -05:00
mat
985327241d yet another W for linear searches 2023-10-02 19:57:13 -05:00
mat
7b10e5cd7e optimize pathfinder more 2023-10-02 18:53:27 -05:00
mat
d0505f7de3 optimize pathfinder more 2023-10-02 17:51:38 -05:00
mat
befa33a879 organize azalea_core and re-export it from azalea 2023-10-01 15:19:13 -05:00
mat
856a3252f6 heightmaps 2023-09-17 21:44:17 -05:00
mat
32eece4d37 implement stepping up stairs 2023-08-25 04:44:20 -05:00
mat
85357a4b6f derive Copy for ChunkSectionBlockPos 2023-07-20 05:01:58 -05:00
mat
804a9fd800 actually make Vec3::length sqrt 2023-06-14 23:50:21 -05:00
mat
dbfbffac14 Vec3::distance_to and clippy 2023-06-14 23:43:54 -05:00
mat
634cb8d72c
Inventory (#48)
* start adding azalea-inventory

* design more of how inventories are defined

* start working on az-inv-macros

* inventory macro works

* start adding inventory codegen

* update some deps

* add inventory codegen

* manually write inventory menus

* put the inventories in Client

* start on containersetcontent

* inventory menu should hopefully work

* checks in containersetcontent

* format a comment

* move some variant matches

* inventory.rs

* inventory stuff

* more inventory stuff

* inventory/container tracking works

* start adding interact function

* sequence number

* start adding HitResultComponent

* implement traverse_blocks

* start adding clip

* add clip function

* update_hit_result_component

* start trying to fix

* fix

* make some stuff simpler

* clippy

* lever

* chest

* container handle

* fix ambiguity

* fix some doc tests

* move some container stuff from az-client to azalea

* clicking container

* start implementing simulate_click

* keep working on simulate click

* implement more of simulate_click

this is really boring

* inventory fixes

* start implementing shift clicking

* fix panic in azalea-chat i hope

* shift clicking implemented

* more inventory stuff

* fix items not showing in containers sometimes

* fix test

* fix all warnings

* remove a println

---------

Co-authored-by: mat <git@matdoes.dev>
2023-05-03 20:57:27 -05:00