Commit graph

142 commits

Author SHA1 Message Date
mat
1347f35492 rename open_container to open_container_at and add get_open_container 2024-01-04 01:55:00 -06:00
mat
cbb2ffad92 read nbt as optional in more places 2023-12-28 17:49:47 -06:00
mat
ddf85a1be7 make ParticleData fail to compile when new particles are added to ParticleKind 2023-12-17 16:07:30 -06:00
Tijn
8643ebd362
Add missing particles (#125)
* Add missing particles

Has all particles present on https://wiki.vg/Protocol#Particle as of 17 December 2023. This also fixes particles being parsed as the incorrect type due to id shifts caused by newly added particles.

* Add missing comma
2023-12-17 15:49:04 -06:00
mat
a069ffe982 fix non-u8 gamemodes
love you wynncraft
2023-12-16 14:29:49 -06:00
mat
a960dba87d default to survival mode when GameMode is out of bounds 2023-12-16 13:39:45 -06:00
mat
a707e2eb82
Add mining to the pathfinder (#122)
* basic pathfinder mining poc

* mining descending and autotool

* pathfinder mining descending

* pathfinder fixes

* allow disabling pathfinder miner and other fixes

* small optimization to avoid chunk vec iter lookup sometimes

* seeded rng in pathfinder bench

* consistently use f32::INFINITY

this brings performance much closer to how it was before

* astar heuristic optimization from baritone

* add downward_move

* fix downward move execute

* avoid liquids and falling blocks when mining

* fix COST_HEURISTIC

* fix to not path through flowing liquids

* only reset pathfinder timeout while mining if the block is close enough

* cache mining costs of block positions

* fix mine_while_at_start and move PathfinderDebugParticles to its own module

* add ReachBlockPosGoal

in other news: azalea's sin/cos functions were broken this whole time and i never noticed

* clippy and add things that i accidentally didn't commit

* improve wording on doc for azalea::pathfinder
2023-12-15 11:26:40 -06:00
mat
cc0717f45e i didn't actually commit the code 2023-12-13 22:03:54 -06:00
mat
c5b15c0293 put azalea_core::tick behind feature flag 2023-12-05 11:19:53 -06:00
mat
6567cf9e5c Release 0.9.0
azalea@0.9.0
azalea-auth@0.9.0
azalea-block@0.9.0
azalea-block-macros@0.9.0
azalea-brigadier@0.9.0
azalea-buf@0.9.0
azalea-buf-macros@0.9.0
azalea-chat@0.9.0
azalea-client@0.9.0
azalea-core@0.9.0
azalea-crypto@0.9.0
azalea-entity@0.9.0
azalea-inventory@0.9.0
azalea-inventory-macros@0.9.0
azalea-language@0.9.0
azalea-physics@0.9.0
azalea-protocol@0.9.0
azalea-protocol-macros@0.9.0
azalea-registry@0.9.0
azalea-registry-macros@0.9.0
azalea-world@0.9.0

Generated by cargo-workspaces
2023-12-05 11:06:51 -06:00
mat
ab5f6d598d upgrade deps 2023-12-05 11:06:24 -06:00
mat
7857a014b9
1.20.3 (#110)
* 23w40a

* 23w41a

* 23w42a

* 23w43a

* 23w44a

* serialize FormattedText as nbt in network

* use azalea-nbt/serde in azalea-chat

* 23w45a

* fix 23w45a to compile

* handle Object in codegen

* 1.20.3-pre2

* remove unused clientbound_resource_pack_packet.rs

* merge main and make azalea-chat use simdnbt

* 1.20.3-rc1

* fix tests

* use simdnbt 0.3

* fix ServerboundSetJigsawBlockPacket

* 1.20.3
2023-12-05 10:59:05 -06:00
mat
421d8ce2c8
Replace Bevy's FixedUpdate with Azalea's GameTick (#119)
* replace bevy FixedUpdate with azalea GameTick

* Update to Bevy 0.12.1
2023-12-04 23:42:49 -06:00
mat
2c610826fc
Replace azalea-nbt with simdnbt (#111)
* delete azalea-nbt and replace with simdnbt

* use simdnbt from crates.io

* remove serde dependency on azalea-registry
2023-11-19 22:07:38 -06:00
mat
f0b58c7e74 share registries in swarms and fix some bugs 2023-11-18 20:44:49 -06:00
mat
ee55453fbf bevy 0.12 2023-11-06 18:04:57 -06:00
mat
2803e9ef0d remove some more #![feature]s 2023-10-26 22:26:14 -05:00
mat
ce81ae9cb3 optimize azalea-core positions and remove some unnecessary nightly features 2023-10-26 20:42:22 -05:00
mat
19881c4612 fix State incorrectly being reused when calling handlers in swarm 2023-10-11 00:02:12 -05:00
mat
9a687f0ffe start adding mining to pathfinder 2023-10-10 23:21:23 -05:00
mat
5212ba4d5d update repo links 2023-10-08 03:58:57 -05:00
mat
5d075abfc5 make pathfinder twice as fast 😎 2023-10-07 15:27:21 -05:00
mat
94ef48d9f2 make sure pathfinder is always centered on the destination block (fixes tests) 2023-10-06 16:08:26 -05:00
mat
177864be60 replace a linear search with a binary search . . . 2023-10-05 01:40:25 -05:00
mat
074bb61983 improve pathfinder heuristics 2023-10-04 22:54:07 -05:00
mat
17734cdcbf add safety comments and simplify some code 2023-10-04 20:24:49 -05:00
mat
c2fb991595 BLAZINGLY FAST 🚀🚀🚀 pathfinding 2023-10-04 19:49:30 -05:00
mat
0ef15254c4 also upgrade deps everywhere else lol 2023-10-03 01:37:00 -05:00
mat
985327241d yet another W for linear searches 2023-10-02 19:57:13 -05:00
mat
7b10e5cd7e optimize pathfinder more 2023-10-02 18:53:27 -05:00
mat
d0505f7de3 optimize pathfinder more 2023-10-02 17:51:38 -05:00
mat
befa33a879 organize azalea_core and re-export it from azalea 2023-10-01 15:19:13 -05:00
mat
51963990bc fix entities not always being despawned after merge 2023-09-18 23:25:22 -05:00
mat
856a3252f6 heightmaps 2023-09-17 21:44:17 -05:00
mat
c8aad8bdfe Release 0.8.0
azalea@0.8.0
azalea-auth@0.8.0
azalea-block@0.8.0
azalea-block-macros@0.8.0
azalea-brigadier@0.8.0
azalea-buf@0.8.0
azalea-buf-macros@0.8.0
azalea-chat@0.8.0
azalea-client@0.8.0
azalea-core@0.8.0
azalea-crypto@0.8.0
azalea-entity@0.8.0
azalea-inventory@0.8.0
azalea-inventory-macros@0.8.0
azalea-language@0.8.0
azalea-nbt@0.8.0
azalea-physics@0.8.0
azalea-protocol@0.8.0
azalea-protocol-macros@0.8.0
azalea-registry@0.8.0
azalea-registry-macros@0.8.0
azalea-world@0.8.0

Generated by cargo-workspaces
2023-09-14 19:01:20 -05:00
mat
bcefa64dd1 clippy 2023-09-10 18:22:59 -05:00
mat
5f8704ccc5 fix physics bugs 2023-09-10 18:18:49 -05:00
mat
35d6ac565d upgrade deps 2023-09-08 16:51:32 -05:00
mat
5d7669f72b simplify pathfinder 2023-08-26 03:08:35 -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
4ed4be529f upgrade thiserror and other deps 2023-08-15 22:21:04 -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
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
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
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
cb20430481 chore: Release 2023-05-16 23:57:06 -05:00