Commit graph

908 commits

Author SHA1 Message Date
mat
32eece4d37 implement stepping up stairs 2023-08-25 04:44:20 -05:00
mat
7df2256f35 add failing test for that weird diagonal edge case
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2023-08-25 03:19:11 -05:00
mat
d5465cd28e add basic pathfinding test 2023-08-25 02:34:31 -05:00
mat
9c31f8033f fix panic when entity goes out of render distance and then back in render distance 2023-08-25 00:35:16 -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
483ce9164e fix writing ClientboundUpdateRecipesPacket 2023-08-22 02:12:12 -05:00
mat
07e3236f0b fix entities not being despawned
closes #103
2023-08-22 01:56:56 -05:00
TheDudeFromCI
47a280212a
Created nearest_entity system param (#102)
* Created nearest_entity system param

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Added nearby item iterators.

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Export bot.rs (#101)

* Removed .vscode settings (#104)

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* raycasting not raytracing

* don't panic if TranslatableComponent::to_string fails

* 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>

* Created nearest_entity system param

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Added nearby item iterators.

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Applied tweaks from PR review

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Fixed doctests

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

---------

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>
Co-authored-by: mat <git@matdoes.dev>
Co-authored-by: Luuk van Oijen <lazyluuk.channel@gmail.com>
2023-08-22 01:46:54 -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
1b6e024460 don't panic if TranslatableComponent::to_string fails 2023-08-20 23:52:01 -05:00
mat
e511ad3c31 raycasting not raytracing 2023-08-19 20:44:10 -05:00
TheDudeFromCI
226e726c29
Removed .vscode settings (#104)
Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>
2023-08-19 20:33:22 -05:00
TheDudeFromCI
6a318ee6f9
Export bot.rs (#101) 2023-08-19 20:31:21 -05:00
TheDudeFromCI
f0ff8e7f29
no_handler() option for ClientBuilder (#100)
* Added no_handler client builder option

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Made EmptyState public

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* Packaged no_handler placeholders in own module

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>

* imply no state and remove Fut generic from ClientBuilder and SwarmBuilder

* use destructuring in set_handler and fix a doc

---------

Signed-off-by: TheDudeFromCI <thedudefromci@gmail.com>
Co-authored-by: mat <git@matdoes.dev>
2023-08-16 00:12:37 -05:00
mat
8a90a8e109 fix tests 2023-08-15 23:51:13 -05:00
mat
4ed4be529f upgrade thiserror and other deps 2023-08-15 22:21:04 -05:00
mat
776f714826 loosen Default requirement for State on SwarmBuilder 2023-08-03 01:29:50 -05:00
mat
3350ef0f7f remove unnecessary parens 2023-08-01 02:40:29 -05:00
mat
68f01625cc improve Instance::find_block 2023-08-01 02:38:49 -05:00
mat
b762d1dfb2 add EntityDataItem::new 2023-07-31 21:56:56 -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
2ab16402de delete unused serde module 2023-07-20 06:49:47 -05:00
mat
7959a18001 pub use tag::* in azalea-nbt 2023-07-20 06:40:33 -05:00
mat
5062a8c8cd make PalettedContainer::new less weird 2023-07-20 05:14:30 -05:00
mat
eb596d921b remove unnecessary clone 2023-07-20 05:05:14 -05:00
mat
85357a4b6f derive Copy for ChunkSectionBlockPos 2023-07-20 05:01:58 -05:00
mat
a985cc7442 remove unused deps 2023-07-19 17:13:46 -05:00
mat
f0c7d6e8bf fix wrong names in a Debug and relax PartialChunkStorage::set_block_state 2023-07-19 07:22:55 -05:00
mat
0a83dc73b4 add try_read to connection 2023-07-16 05:50:02 -05:00
mat
509c154b4d descend up to 3 blocks in pathfinder 2023-07-15 17:14:10 -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
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
fe687f9bdb fix clientboundsoundpacket
closes #89
2023-06-15 14:37:20 -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
a514b2c9e5 1.20.1 2023-06-12 14:50:05 -05:00
mat
ff4e9e6c95 link to 1.19.4 branch 2023-06-12 14:46:15 -05:00
mat
5f8e5be4dc Merge branch '1.20' 2023-06-12 14:38:40 -05:00
mat
49f951688e 1.20 2023-06-12 14:35:00 -05:00
mat
bc7e0ab537 fix panic in azalea-chat 2023-05-28 14:05:23 -05:00
mat
2a2169226f revert echo example 2023-05-27 14:30:56 -05:00