<feed xmlns='http://www.w3.org/2005/Atom'>
<title>azalea-drasl.git/azalea-core/src/particle, branch main</title>
<subtitle> Fork of azalea that adds support for authentication over Drasl/Yggdrasil.
</subtitle>
<id>https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/atom?h=main</id>
<link rel='self' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/'/>
<updated>2023-07-15T03:20:40+00:00</updated>
<entry>
<title>Mining (#95)</title>
<updated>2023-07-15T03:20:40+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2023-07-15T03:20:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=7405427199e5a994d4a6a706f84434a69cb7a7d9'/>
<id>urn:sha1:7405427199e5a994d4a6a706f84434a69cb7a7d9</id>
<content type='text'>
* 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 &lt;git@matdoes.dev&gt;</content>
</entry>
<entry>
<title>Inventory (#48)</title>
<updated>2023-05-04T01:57:27+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2023-05-04T01:57:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=634cb8d72c6608512aedba19e5cd669104bc35ea'/>
<id>urn:sha1:634cb8d72c6608512aedba19e5cd669104bc35ea</id>
<content type='text'>
* 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 &lt;git@matdoes.dev&gt;</content>
</entry>
<entry>
<title>Use an ECS (#52)</title>
<updated>2023-02-05T01:32:27+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2023-02-05T01:32:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=a5672815ccef520b433363ac622dbb6d6af60c91'/>
<id>urn:sha1:a5672815ccef520b433363ac622dbb6d6af60c91</id>
<content type='text'>
* add EntityData::kind

* start making metadata use hecs

* make entity codegen generate ecs stuff

* fix registry codegen

* get rid of worldhaver

it's not even used

* add bevy_ecs to deps

* rename Component to FormattedText

also start making the metadata use bevy_ecs but bevy_ecs doesn't let you query on Bundles so it's annoying

* generate metadata.rs correctly for bevy_ecs

* start switching more entity stuff to use ecs

* more ecs stuff for entity storage

* ok well it compiles but

it definitely doesn't work

* random fixes

* change a bunch of entity things to use the components

* some ecs stuff in az-client

* packet handler uses the ecs now

and other fun changes

i still need to make ticking use the ecs but that's tricker, i'm considering using bevy_ecs systems for those

bevy_ecs systems can't be async but the only async things in ticking is just sending packets which can just be done as a tokio task so that's not a big deal

* start converting some functions in az-client into systems

committing because i'm about to try something that might go horribly wrong

* start splitting client

i'm probably gonna change it so azalea entity ids are separate from minecraft entity ids next (so stuff like player ids can be consistent and we don't have to wait for the login packet)

* separate minecraft entity ids from azalea entity ids + more ecs stuff

i guess i'm using bevy_app now too huh
it's necessary for plugins and it lets us control the tick rate anyways so it's fine i think

i'm still not 100% sure how packet handling that interacts with the world will work, but i think if i can sneak the ecs world into there it'll be fine. Can't put packet handling in the schedule because that'd make it tick-bound, which it's not (technically it'd still work but it'd be wrong and anticheats might realize).

* packet handling

now it runs the schedule only when we get a tick or packet :smile:

also i systemified some more functions and did other random fixes so az-world and az-physics compile

making azalea-client use the ecs is almost done! all the hard parts are done now i hope, i just have to finish writing all the code so it actually works

* start figuring out how functions in Client will work

generally just lifetimes being annoying but i think i can get it all to work

* make writing packets work synchronously*

* huh az-client compiles

* start fixing stuff

* start fixing some packets

* make packet handler work

i still haven't actually tested any of this yet lol but in theory it should all work

i'll probably either actually test az-client and fix all the remaining issues or update the azalea crate next

ok also one thing that i'm not particularly happy with is how the packet handlers are doing ugly queries like
```rs
let local_player = ecs
    .query::&lt;&amp;LocalPlayer&gt;()
    .get_mut(ecs, player_entity)
    .unwrap();
```
i think the right way to solve it would be by putting every packet handler in its own system but i haven't come up with a way to make that not be really annoying yet

* fix warnings

* ok what if i just have a bunch of queries and a single packet handler system

* simple example for azalea-client

* :bug:

* maybe fix deadlock idk

can't test it rn lmao

* make physicsstate its own component

* use the default plugins

* azalea compiles lol

* use systemstate for packet handler

* fix entities

basically moved some stuff from being in the world to just being components

* physics (ticking) works

* try to add a .entity_by function

still doesn't work because i want to make the predicate magic

* try to make entity_by work

well it does work but i couldn't figure out how to make it look not terrible. Will hopefully change in the future

* everything compiles

* start converting swarm to use builder

* continue switching swarm to builder and fix stuff

* make swarm use builder

still have to fix some stuff and make client use builder

* fix death event

* client builder

* fix some warnings

* document plugins a bit

* start trying to fix tests

* azalea-ecs

* azalea-ecs stuff compiles

* az-physics tests pass :tada:

* fix all the tests

* clippy on azalea-ecs-macros

* remove now-unnecessary trait_upcasting feature

* fix some clippy::pedantic warnings lol

* why did cargo fmt not remove the trailing spaces

* FIX ALL THE THINGS

* when i said 'all' i meant non-swarm bugs

* start adding task pool

* fix entity deduplication

* fix pathfinder not stopping

* fix some more random bugs

* fix panic that sometimes happens in swarms

* make pathfinder run in task

* fix some tests

* fix doctests and clippy

* deadlock

* fix systems running in wrong order

* fix non-swarm bots</content>
</entry>
<entry>
<title>Pathfinder (#25)</title>
<updated>2022-11-13T05:54:05+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2022-11-13T05:54:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=6eee543a3367d38a6f0e9bffb457a2bd76a8f9cc'/>
<id>urn:sha1:6eee543a3367d38a6f0e9bffb457a2bd76a8f9cc</id>
<content type='text'>
Pathfinding is very much not done, but it works enough and I want to get this merged.
TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
</content>
</entry>
<entry>
<title>Entity metadata (#37)</title>
<updated>2022-11-06T20:05:01+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2022-11-06T20:05:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=d112856ff6353592a50658b0ddd316f54dd97b87'/>
<id>urn:sha1:d112856ff6353592a50658b0ddd316f54dd97b87</id>
<content type='text'>
* add example generated metadata.rs

* metadata.rs codegen

* add the files

* add comment to top of metadata.rs

* avoid clone

* metadata

* defaults

* defaults

* fix metadata readers and writers

* fix bad bitmasks and ignore some clippy warnings in generated code

* add set_index function to entity metadatas

* applying metadata</content>
</entry>
<entry>
<title>Replace impl Read with Cursor&lt;&amp;[u8]&gt; (#26)</title>
<updated>2022-10-08T01:12:36+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2022-10-08T01:12:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=bc3aa9467ae1e2d0ea1727093af9b0af14965e69'/>
<id>urn:sha1:bc3aa9467ae1e2d0ea1727093af9b0af14965e69</id>
<content type='text'>
* Start getting rid of Cursor

* try to make the tests pass and fail

* make the tests pass

* remove unused uses

* fix clippy warnings

* fix potential OOM exploits

* fix OOM in az-nbt

* fix nbt benchmark

* fix a test

* start replacing it with Cursor&lt;Vec&lt;u8&gt;&gt;

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings</content>
</entry>
<entry>
<title>Better errors (#14)</title>
<updated>2022-08-06T07:22:19+00:00</updated>
<author>
<name>mat</name>
<email>27899617+mat-1@users.noreply.github.com</email>
</author>
<published>2022-08-06T07:22:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=5a9fca0ca9cdb46f4b866781f219756c89e2293a'/>
<id>urn:sha1:5a9fca0ca9cdb46f4b866781f219756c89e2293a</id>
<content type='text'>
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile</content>
</entry>
<entry>
<title>Fix warnings</title>
<updated>2022-06-25T21:40:12+00:00</updated>
<author>
<name>mat</name>
<email>github@matdoes.dev</email>
</author>
<published>2022-06-25T21:40:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=978880b756aa052226f77c21e8e9de9b40070152'/>
<id>urn:sha1:978880b756aa052226f77c21e8e9de9b40070152</id>
<content type='text'>
</content>
</entry>
<entry>
<title>read_into -&gt; read_from</title>
<updated>2022-06-25T07:33:28+00:00</updated>
<author>
<name>mat</name>
<email>github@matdoes.dev</email>
</author>
<published>2022-06-25T07:33:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=cd9a05e5a62190b3d4a2a733bf637d6324aec5fd'/>
<id>urn:sha1:cd9a05e5a62190b3d4a2a733bf637d6324aec5fd</id>
<content type='text'>
yeah
</content>
</entry>
<entry>
<title>Fix everything so azalea-buf works</title>
<updated>2022-06-24T00:17:04+00:00</updated>
<author>
<name>mat</name>
<email>github@matdoes.dev</email>
</author>
<published>2022-06-24T00:17:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/cli/azalea-drasl.git/commit/?id=37c6618c16319a7f40fd2e165190407472598e84'/>
<id>urn:sha1:37c6618c16319a7f40fd2e165190407472598e84</id>
<content type='text'>
</content>
</entry>
</feed>
