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

84 commits

Author SHA1 Message Date
45a48f264f (cargo-release) version 0.2.0 2022-10-17 16:28:54 +00:00
2b5d972ae9 disable release on more things 2022-10-17 16:27:42 +00:00
8c01957458 disable bot release 2022-10-17 14:38:58 +00:00
mat
0f88e05a0c
Add chat function (#28)
* add Client::chat

* make the default bot do chat
2022-10-16 23:08:39 -05:00
mat
4cef62e8e4
Microsoft Authentication (#29)
* a

* try to do more work on auth signing (untested)

* well auth works when i remove the d= so

* auth stuff

* sessionserver stuff

* add auth in azalea-protocol/client

* caching*

refreshing microsoft auth tokens isn't implemented yet, also i haven't tested it

* how did i not notice that i had the code duplicated

* fix cache

* add refreshing msa token

* replace some printlns with log::trace

* auth works!

* Update main.rs

* fix clippy warnings
2022-10-16 22:54:54 -05:00
mat
82c04004db change definition of Event::Tick 2022-10-08 00:03:07 -05:00
mat
6f6289376a fix errors with rewritten packet reading
i forgot i never tested it before LMAO
2022-10-07 23:56:23 -05:00
mat
ba4cfaafae
Bot API (#27)
Basically make the `azalea` crate have stuff
2022-10-07 19:57:42 -05:00
mat
37f9f1c6fe add jumping 2022-10-02 14:52:48 -05:00
mat
c9b4dccd7e
All block shapes & collisions (#22)
* start adding shapes

* add more collision stuff

* DiscreteCubeMerger

* more mergers

* start adding BitSetDiscreteVoxelShape::join

* i love rust 😃 😃 😃

* r

* IT COMPILES????

* fix warning

* fix error

* fix more clippy issues

* add box_shape

* more shape stuff

* make DiscreteVoxelShape an enum

* Update shape.rs

* also make VoxelShape an enum

* implement BitSet::clear

* add more missing things

* it compiles

W

* start block shape codegen

* optimize shape codegen

* make az-block/blocks.rs look better (broken)

* almost new block macro

* make the codegen not generate 'type'

* try to fix

* work more on the blocks macro

* wait it compiles

* fix clippy issues

* shapes codegen works

* well it's almost working

* simplify some shape codegen

* enum type names are correct

* W it compiles

* cargo check no longer warns

* fix some clippy issues

* start making it so the shape impl is on BlockStates

* insane code

* new impl compiles

* fix wrong find_bits + TESTS PASS!

* add a test for slab collision

* fix clippy issues

* ok rust

* fix error that happens when on stairs

* add test for top slabs

* start adding join_is_not_empty

* add more to join_is_not_empty

* top slabs still don't work!!

* x..=0 doesn't work in rust 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃

* remove comment since i added more useful names

* remove some printlns

* fix walls in some configurations erroring

* fix some warnings

* change comment to \`\`\`ignore instead of \`\`\`no_run

* players are .6 wide not .8

* fix clippy's complaints

* i missed one clippy warning
2022-10-02 12:29:47 -05:00
mat
e63f605c82 add shutdown function 2022-09-19 23:05:05 -05:00
mat
528c1a07e3 change example 2022-09-19 20:38:08 -05:00
mat
9ca9519469 .walk :) 2022-09-05 01:04:16 -05:00
a6c5017e38 clippy 2022-08-30 19:56:14 +00:00
mat
c1af5d15e3 physics stuff 2022-08-29 21:10:15 -05:00
mat
f42d630544
Physics (#11)
* Put physics module in azalea-entity

* port aabb

* add more stuff to PositionXYZ

* azalea-physics

* important collision things

* more physics stuff

* backup because i'm about to delete shapes

* more shape stuff

* CubeVoxelShape

* no compile errors???

insane

* impl VoxelShape for ArrayVoxelShape

* Shapes stuff

* collide_x but it doesn't work yet

* binary_search

* it compiles

* Entity has bounding box

* Update discrete_voxel_shape.rs

* Entity::make_bounding_box

* ok i'm about to merge az-entity and az-world

might be a terrible idea which is why i'm committing first

* ok so i moved entity to world

* on_pos and move_entity compiles

* add send_position

* move collision stuff to collision module in az-physics

* dimension is no longer an Option

* start trying to do collision for the client

* collision works 🎉

* start adding palette resizing

* get_and_set (pain)

* it compiles but probably won't work

* add a test

* remove printlns

* add more tests for palette stuff

* ClientboundMoveVec3Packet -> ClientboundMoveEntityPosPacket

i think i changed this on accident once

* palette resizing works

todo: remove the printlns

* Remove printlns in palette.rs

* fix issues from merge

* fixes + work a bit more on physics

* Better entities (#19)

* well it compiles

* add tests to entity storage

* add suggestions in azalea-brigadier

* this probably causes ub

* fix brigadiersuggestions

* get rid of entityid

* test From<EntityMut> for EntityRef

* don't mention other libraries since there's too many

* fix warnings

* do todos in brigadier suggestions

* work on physics

* more physics stuff

* remove trait feature on az-block

i think rust gets confused and compiles the macro without the feature

* bump ahash

* aes tests in az-crypto

* optimize aes's deps

* fix crashes

* fix section_index for negative numbers and test

* fix BlockPos protocol implementation

* remove some debug prints

* prepare to add ai_step

* make ai step work

* clippy
2022-08-29 20:41:01 -05:00
mat
2211021105 1.19.1 2022-07-28 23:50:58 -05:00
mat
e8deda5d2e clippo 2022-06-25 17:37:29 -05:00
mat
978880b756 Fix warnings 2022-06-25 16:40:12 -05:00
mat
460bdfb8bb merge ClientState and Client 2022-06-25 16:23:40 -05:00
mat
ca7067e173
Merge branch 'main' into azalea-entity 2022-06-25 05:08:22 +00:00
mat
b030b0ea33 start adding moving 2022-06-24 23:10:59 -05:00
mat
3fcbfc794e Upgrade crates and remove num_* deps 2022-06-24 03:50:19 -05:00
mat
2cdbdcaa27 move_entity_with_delta 2022-06-23 21:31:19 -05:00
mat
5ca49e680e azalea-buf 2022-06-23 15:12:17 -05:00
mat
c7b0c51274 Add move_to 2022-06-21 23:19:31 -05:00
mat
efd8749573 add gametick event and find_one_entity 2022-06-20 01:19:59 -05:00
mat
438d633b83 Bump tokio 2022-06-19 22:12:19 -05:00
mat
c9a070f711 Fix some clippy warnings 2022-06-19 22:01:54 -05:00
mat
405a00c0d1 Fix ClientboundLevelParticlesPacket
The particle id is a varint
2022-06-19 13:54:43 -05:00
mat
e84893b07a Fix issues with entity pos conversion to block pos 2022-06-19 13:42:01 -05:00
mat
7f7b979125 Fix error 2022-06-19 00:32:53 -05:00
mat
bb6b116cb8 Improvements to azalea-world for entities 2022-06-19 00:30:24 -05:00
mat
fc3151f89d account.rs and client.rs 2022-06-18 16:54:49 -05:00
mat
e32b8fabb7 Add a new example that uses entities 2022-06-18 16:33:38 -05:00
mat
d8e0457b62 from<ClientboundAddEntityPacket> for Entity 2022-06-18 14:08:34 -05:00
mat
0a945e73ec EntityPos 2022-06-17 18:09:34 -05:00
mat
69e1125ecb Slightly improve bit storage 2022-06-17 15:59:27 -05:00
mat
1e145a82b8 1.19 2022-05-26 13:45:48 -05:00
mat
42f86f73f2 add unhandled ClientboundSectionBlocksUpdatePacket 2022-05-14 19:14:34 -05:00
mat
e58c9390a7 get_block_state works 2022-05-14 15:02:13 -05:00
mat
6d2fd8afba start adding get_block_state 2022-05-14 14:12:57 -05:00
mat
7c194fb245 remove some printlns 2022-05-14 11:20:33 -05:00
mat
345cecf7af add more stuff 2022-05-08 23:45:15 -05:00
mat
ac392542ce Merge branch 'main' into chunk-decoding 2022-05-08 18:55:49 -05:00
mat
7c742347a7 azalea-chat now checks language files 2022-05-08 18:38:22 -05:00
mat
79bf577130 clientbound add player packet 2022-05-07 11:22:03 -05:00
mat
e023986565 random polish 2022-05-05 23:33:08 -05:00
mat
4dac004635 Fix chunk decoding 2022-05-05 22:12:54 -05:00
mat
57b76ef52b Add bit storage 2022-05-05 19:57:46 -05:00