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

397 commits

Author SHA1 Message Date
mat
225e94d732 fix onground 2023-09-11 23:04:37 -05:00
mat
f8cca41361 fix falling through blocks on spawn (and triggering anticheats) 2023-09-11 22:59:05 -05:00
mat
5f8704ccc5 fix physics bugs 2023-09-10 18:18:49 -05:00
mat
4885f848a4 fix incorrect jumping 2023-09-10 17:33:10 -05:00
mat
a91b62d4ca make PacketReceiver::packet_writer public 2023-09-08 20:01:46 -05:00
mat
472496b7b8 fix all bevy ambiguities 2023-08-25 23:28:19 -05:00
mat
32eece4d37 implement stepping up stairs 2023-08-25 04:44:20 -05:00
mat
d5465cd28e add basic pathfinding test 2023-08-25 02:34:31 -05:00
mat
11d14c74c5
Support properly switching instances (#106)
* start implementing switching dimensions

* fix removeentity in shared worlds

* also store entity ids per local player

* uncomment a trace in pathfinder

* cleanup

---------

Co-authored-by: mat <git@matdoes.dev>
2023-08-24 22:59:40 -05:00
mat
57e5a0f0b9 remove some debug printlns 2023-08-23 22:42:07 -05:00
mat
07e3236f0b fix entities not being despawned
closes #103
2023-08-22 01:56:56 -05:00
Luuk van Oijen
a81c4c060b
Food/saturation component support (#97)
* modified for food stuff

* moved food/saturation to a separate file

* hunger component

* simplify some logic

---------

Co-authored-by: mat <git@matdoes.dev>
2023-08-21 22:50:21 -05:00
mat
4ed4be529f upgrade thiserror and other deps 2023-08-15 22:21:04 -05:00
mat
39943447f6 fix querying multiple components in entity_by 2023-07-26 00:45:06 -05:00
mat
22ea8c60fe fix sometimes not receiving chunks 2023-07-23 23:21:08 -05:00
mat
15acf13477 fix sending brand incorrectly 2023-07-23 22:24:08 -05:00
mat
d99ba0da55 clean up azalea-entity a little 2023-07-23 22:17:17 -05:00
mat
eb596d921b remove unnecessary clone 2023-07-20 05:05:14 -05:00
mat
a839c6a923 fix brigadier booleans 2023-07-15 16:35:23 -05:00
mat
cde7e35046
Attacking (#96)
* add Client::attack

* partially implement attack cooldowns

* attack speed modifiers

* don't care clippy

---------

Co-authored-by: mat <git@matdoes.dev>
2023-07-15 04:39:43 -05:00
mat
148f203817 fix auto respawn and fix entity metadata 2023-07-15 02:06:19 -05:00
mat
7405427199
Mining (#95)
* 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-14 22:20:40 -05:00
mat
d1afd02aa8
Update to Bevy 0.11 (#94)
* update to bevy 0.11

* clippy

---------

Co-authored-by: mat <git@matdoes.dev>
2023-07-09 19:11:29 -05:00
xtex
ea8a8fccb6
Add ClientBuilder:new_without_log (#93)
* Add ClientBuilder:new_without_log

* 'log' feature

* fix warnings

---------

Co-authored-by: mat <git@matdoes.dev>
2023-06-24 17:43:38 -05:00
Adam Reisenauer
5e46996882
Add functions auth_with_link_code, get_ms_link_code, and get_ms_auth_token. (#88)
* Add option for grabbing authentication code for Microsoft seperately. Created two new functions, one that outputs the DeviceCodeResponse and one that uses this response to authenticate an actual account.

* Added documentation and cleaned up function names. Still wondering about code repeition

* reduce code duplication, more docs, cleanup

* clippy

---------

Co-authored-by: mat <git@matdoes.dev>
2023-06-24 17:09:43 -05:00
mat
dbfbffac14 Vec3::distance_to and clippy 2023-06-14 23:43:54 -05:00
mat
8813330359 random fixes mostly related to auth and crypto 2023-05-27 01:57:31 -05:00
mat
6188230009 add stuff related to chat signing
and also some stuff related to digging because i forgot to do a different branch lol
2023-05-26 15:18:04 -05:00
mat
2ba7b83490 ClientBuilder::new_without_plugins 2023-05-16 23:26:45 -05:00
mat
0cc76dfb67 ChatPacket::is_whisper 2023-05-13 19:29:55 -05:00
mat
e977391b04 auto respawn 2023-05-12 23:20:23 -05:00
mat
741a1f65d6 handle ping packet and resource pack correctly 2023-05-12 22:30:13 -05:00
mat
84c0908f34 fix panic on disconnect 2023-05-06 01:02:21 -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
mat
8215331381 rename and export AccountOpts 2023-04-19 20:10:40 +00:00
mat
b276978195 clear titles packet 2023-03-21 18:20:47 +00:00
mat
12a9c8ce65
1.19.4 (#57)
* 23w03a

* 23w04a

* 23w05a

* 23w06a

* fix

* 23w07a

mojang broke their json data generator so some stuff is missing

* didn't mean to commit that file here

* 1.19.4-pre2

* fix

* 1.19.4-pre3

* fix

* how did these packets get here

* 1.19.4-pre4

* 1.19.4-rc1

* 1.19.4-rc2

* 1.19.4-rc3

* merge main

* remove debugging code

* 1.19.4
2023-03-14 16:33:03 -05:00
mat
aa846bc027 make ResourceLocation::new -> Self and impl Serialize/Deserialize for ResourceLocation 2023-03-14 01:22:15 -05:00
mat
cd0a1ed8d4 fix doc errors 2023-03-11 17:02:57 -06:00
EightFactorial
c57c68ddf8
Add RegistryHolder struct and serde features (#81)
* Make RegistryHolder struct

* Update deps

* Move RegistryHolder to azalea-protocol

* Convert bytes to bools and back

* Rename and shuffle logic

* Move logic into trait, rename methods

* Final touchups

* Ah, merge mistakes

* Add serde support for ResourceLocation

* Reuse structs

* Error when serde skips values in debug mode
Add missing attributes

* Strict_registry feature, require packet feature

* Add test

* Move into packets

* Docs and touchups

* Reword docs

* Move into module inside ClientboundLoginPacket

* Add azalea-nbt serde feature

* remove duplicate comment and type_ -> kind

---------

Co-authored-by: mat <github@matdoes.dev>
2023-03-11 16:00:10 -06:00
mat
f28efd5637 make ClientInformation and TabList their own components 2023-03-08 19:26:40 +00:00
mat
719379a8a7
Bevy 0.10 (#79)
* replace 0.9.1 with 0.10.0

* start migrating to bevy .10

* well it compiles

* doesn't immediately panic

* remove unused imports

* fmt

* delete azalea-ecs

* make RelativeEntityUpdate an EntityCommand

* fix a doc test

* explain what FixedUpdate does
2023-03-07 14:14:36 -06:00
Shayne Hartford
91d97adb4f
Remove invalid characters and truncate messages and commands to 256 (#78)
* Remove invalid characters and truncate messages and commands to 256

* Remove duplicated use statements

* Remove to_owned and use matches! macro
2023-02-27 21:44:45 -06:00
Shayne Hartford
ec5f05c345
Change Windows env from USERPROFILE to APPDATA (#77) 2023-02-27 09:45:04 -06:00
mat
cbc6af81fb
Add PacketEvent (#75)
* add PacketEvent

* docs and fixes

* Event::Packet works
2023-02-26 15:07:52 -06:00
mat
c1588ef66e
Fix system order ambiguities (#74)
* start fixing stuff where systems run in the wrong order

* fix ordering ambiguity

* add debugging guide

* some fixes

* fix panic for swarms

* fix some warnings
2023-02-25 17:32:15 -06:00
mat
21e3f73c23 check entity for retroactively_add_game_profile_component 2023-02-23 18:46:41 -06:00
Charles Johnson
d3af7ba7a9
fix disconnect_on_read_packets_ended (#73) 2023-02-22 13:50:08 -06:00
mat
1f5775ed4e unused import 2023-02-21 22:22:03 -06:00
mat
c52cee3a69 don't keep firing disconnectevent 2023-02-21 22:21:43 -06:00