Commit graph

94 commits

Author SHA1 Message Date
mat
5a8f50950a chore: Release 2022-11-19 15:25:55 -06:00
mat
6eee543a33
Pathfinder (#25)
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
2022-11-12 23:54:05 -06:00
mat
44ab1ad6ef chore: Release 2022-10-30 14:04:11 -05:00
mat
889f742696 add "repository" field to all crates 2022-10-30 14:03:13 -05:00
mat
9de6c03dfb use variables directly in format strings
thanks clippy we love you
2022-10-27 21:22:47 -05:00
Ubuntu
e6f023a38b (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
Ubuntu
bdeafa2c29 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
Ubuntu
46fbc4654c (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
mat
bc3aa9467a
Replace impl Read with Cursor<&[u8]> (#26)
* 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<Vec<u8>>

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings
2022-10-07 20:12:36 -05:00
mat
06068377bd
New example (#24)
the example isn't finished but it's finished enough
2022-10-02 14:58: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
4247945df1 start work on optimizing block macros 2022-09-18 23:13:45 -05:00
mat
fcb5bdf042 use az-registry in az-protocol 2022-09-05 11:44:48 -05:00
mat
0085f8a565 make some stuff publishable on crates.io 2022-08-30 21:42:40 -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
b8228a0360
Azalea registry (#20)
* make azalea-registry crate

* add trait feature to az-block

* registr

* registry macro

* impl Display for registry things

* registries
2022-08-27 20:31:21 -05:00
mat
69f97dbf02 clippo the sequel 2022-07-31 18:05:41 -05:00
mat
ec0b6ec06c 1.19.1-pre4 2022-07-10 23:43:09 -05:00
mat
e8deda5d2e clippo 2022-06-25 17:37:29 -05:00
mat
d0fc7d0eff ClientboundSetEquipmentPacket 2022-06-17 16:27:58 -05:00
mat
74c3ae52f8 azalea-world uses azalea-block 2022-06-16 23:38:51 -05:00
mat
4f89f70091 type -> kind 2022-06-16 20:48:01 -05:00
mat
5d5441427f less underscores 2022-06-16 19:33:34 -05:00
mat
b907ea5a3f "boolean" is cringe 2022-06-16 19:29:16 -05:00
mat
043f70aa6e Fix for states that burger doesn't have 2022-06-16 15:12:20 -05:00
mat
8aa8baa20d Fix ordering of blocks 2022-06-11 17:33:58 -05:00
mat
e36095c2b1 Fix all the errors 2022-06-11 17:18:57 -05:00
mat
e79e58da36 Include property names in blocks 2022-06-11 15:29:42 -05:00
mat
b852bdc481 Separate int properties 2022-06-11 09:50:14 -05:00
mat
6926907528 Clean code a little 2022-06-11 09:36:08 -05:00
mat
8c5d7407fe fix Facing property 2022-06-10 15:17:13 -05:00
mat
ab0796119b blocks works probably 2022-06-10 15:06:15 -05:00
mat
7d4eceefde mmmmmmmmmm 2022-05-29 00:39:27 -05:00
mat
e832c84eb8 fixed macro for blocks with no properties 2022-05-28 21:38:30 -05:00
mat
9c1c286236 default block properties 2022-05-28 20:59:22 -05:00
mat
5d764c79d0 genblocks 2022-05-28 18:20:15 -05:00
mat
ff2f3c7af5 slight optimization 2022-05-28 13:39:33 -05:00
mat
5ce6eb23bb impl From<BlockState> for &dyn Block { 2022-05-28 01:16:32 -05:00
mat
3573eb4ba0 more block macro stuff 2022-05-28 01:12:12 -05:00
mat
d56c44766e block macros 2022-05-27 23:10:34 -05:00
mat
c0433b7d49 Compiles 2022-05-27 19:36:18 -05:00
mat
88bc6d1660 Start making block macro 2022-05-27 19:34:09 -05:00
mat
aac64d0135 Start making azalea-block 2022-05-27 16:04:22 -05:00