* Add hunger and hunger bar
- New functions added to Player struct in game.zig to use and heal hunger.
- If an attempt is made to use more hunger than there is available, the player is killed.
- Hunger bar uses placeholder icons.
- Hunger bar is based on the health bar
- Hunger bar is anchored to the left of the hotbar, rather than the right like the health bar.
* Don't kill player when hunger runs out.
- Don't use hunger when there's not enough to use
- Allow for code to know if hunger was used, so that is can handle not having enough hunger.
* New hunger textures
* Desaturate the highlight a little
* Return true if hunger was already true.
* Fix formatting
* Rename hunger to energy, and fix other issues.
* Make energy synchronized between client and server
Also removes the functions that add/remove energy on the game.Player struct
* Run formatter
* Fix incorrect formatting by formatter.
* Remove AddHunger struct and addHunger function
- Keep base operation so things like accessories and food can use it when syncing
* Fix formatting again.
---------
Co-authored-by: Carrie <carriecapp9@gmail.com>
* add pipes, which are like branches but you can have different textures on each mode
* fix formatting
* remove testing block
* fix more formatting issues
* fix more formatting issues
* simplify fromRelPos
* fix fromRelPos and give pipe same properties as branch
* fix flashing dots caused by floating point inaccuracies
* remove debug object
* fix formatting issues
* fix a couple things
* remove debug textures
* fix formatting and also make dir an enum
* fix more formatting issues
* remove branches
* rename pipe to branch
* remove floating point fix
* remove branch model
* Add back branches and add temporary textures
* add back the branches
* fix some stuff
* small changes
* fix compiler error
---------
Co-authored-by: Carrie <carriecapp9@gmail.com>
* Format all the zon assets to prepare for running the the format check with our zig fmt
* Update ci.yml
* Remove zon files from the old formatter
* Add a formatting violation to test the CI
* Undo the check
This is my first contribution to Cubyz. There were too many cacti spawning in the desert. I adjusted the rates so they would appear more infrequently and make the desert look more natural.
* Add block migrations logic
* TEMP: Example migration
* Adjust block migrations according to review
* Fix indentation in example file
* Remove unused migration enums
* Fix indentation in example file
* Extract asset ID creation to separate function
* Remove example migration
* Restore readAllFilesInAddons to shrink the diff
* Revert "Extract asset ID creation to separate function"
This reverts commit 3fea996152bd464643a9d84a52008e568f726f34.
* Shrink diff in assets.zig
* Fix migration behavior with empty migration map
* Restore birch_log.png
* Shrink diff
* Fix use of commonBlocksMigrations
* Remove biome and item migrations code
* Remove Palette changes
* Apply review suggestions
* Fix use after free in migration code
* Revert readAllZonFilesInAddons back to how it was but with migrations included
* Remove stray whitespace
* Remove stray defer
* Fix style issues
* Apply review suggestions
* Fix formatting issues
* Apply review suggestions
* Apply review suggestions
* Remove addon name from migrations
* Change migration notation to list of objects
* Apply review suggestions
* Apply review suggestions
* Apply review suggestions
* Pickaxe Rebalance (2)
* Changed ore health
* Can you believe I forgot marble?
* Fix indentation and fix duplicate entry in void_stone.zig
---------
Co-authored-by: IntegratedQuantum <jahe788@gmail.com>