331 Commits

Author SHA1 Message Date
ikabod-kee
ce750dbe77
Added Duckweed (#1247) 2025-03-27 16:15:30 +01:00
IntegratedQuantum
005fb6a3aa Fix missing newline 2025-03-24 20:38:58 +01:00
Krzysztof Wiśniewski
f5a2e3d3c1
Revert "Remove sbb blocks" (#1226)
This reverts commit 65cee0ef1202b3a85f9ac2799dc0f6b902fa4074.
2025-03-24 19:11:10 +01:00
IntegratedQuantum
42268c4b22 Allow branches to have a shell model that's always rendered and add leafy branches for all wood types. 2025-03-23 20:21:37 +01:00
Carrie
8f0693f7b0
Lily pads / adjust water reflectivity (#1221)
* Add lily pads and reduce water reflectivity

* tweka water reflectivity
2025-03-23 19:36:31 +01:00
Krzysztof Wiśniewski
07f5d823dd
Add pile rotation mode (#1216)
* Add pile rotation mode

* Fix formatting issues

* Rename to .zig.zon

* Update textures to those provided by ikabood-kee

* Add gradual block breaking

* Adapt to new model and texture changes

* New duckweed textures

* Add configurable state count

* Rename to texturePile

* Add moreData storage

* Apply review suggestions

---------

Co-authored-by: Carrie <carriecapp9@gmail.com>
2025-03-23 19:35:38 +01:00
Zachary Hall
20dfc6ba71
Add hunger, hunger bar, and related functions on the Player struct. (#1210)
* 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>
2025-03-23 17:06:21 +01:00
IntegratedQuantum
1268f8e95e Allow specifying all 16 model textures via its index
fixes #1144
2025-03-22 14:26:59 +01:00
Carrie
302544bbcb
Add cactus flowers, tussock, and cactus top texture (#1195)
* Add cactus flowers, tussock, and cactus top texture

* minor cactus flower texture tweaks

* Gradient cactus flower
2025-03-19 21:45:12 +01:00
IntegratedQuantum
6f26dde472 keepOriginal is now specified in the biome and can be used for subbiomes.
fixes #1135
2025-03-17 21:30:08 +01:00
Carrie
32269f1f84
New branch textures (#1200)
* Birch branch and start of mahogany branch textures

* Do all the other ones and tweka mahogany
2025-03-13 20:59:22 +01:00
OneAvargeCoder193
35fedba2c6
Change branches so that the textures can be rotated (#1183)
* 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>
2025-03-12 18:27:28 +01:00
Carrie
3c7231cb43
Darken grass plants for better contrast (#1182)
* Make grass plants darker for better contrast

* Make grass plants blend into grass blocks
2025-03-09 12:57:38 +01:00
IntegratedQuantum
b303244773
Run the zon format check with our zig fmt (#1175)
* 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
2025-03-07 22:34:55 +01:00
ikabod-kee
5a9e537ed4
Birch, Thin Birch + Rare Chopped Forests (#1170)
* A

* Added Thin Birch Biome

* Density

* Changes

* Changes 2
2025-03-07 22:08:38 +01:00
Carrie
f9c5e4bb98
Glimmergills and Glimmergill caves (#1174)
* Add glimmergills and glimmergill caves

* Lower glimmergill cave height

* Formatting
2025-03-07 22:07:44 +01:00
Carrie
81bb084997
Branches for all wood types + item textures and recipes (#1149)
* Add all branch variants, item textures, recipes

* Delete unused textures

* Fix indentation
2025-03-06 21:32:39 +01:00
Carrie
b497133967
Mushrooms: Bolete and Toadstool (#1165)
* Add bolete and toadstool

* Add item textures and add to biomes
2025-03-06 20:34:47 +01:00
IntegratedQuantum
4b45f4fef5 Rename file to .zig.zon 2025-03-06 20:22:41 +01:00
IntegratedQuantum
1d6ca53cf7 Add the "spawn" biome 2025-03-06 20:18:57 +01:00
ikabod-kee
07a8d4ba5c
Added Limestone Mountains and some sub-biomes (#1131)
* Added Limestone Mountains and some sub-biomes

* Changed chances

* Update base.zig.zon

* Update patchy.zig.zon

* Slight Adjustments

* Fixed the totally-not-embarrassing syntax error
2025-03-06 18:36:39 +01:00
Garrett
1eb813ff51
Reduce Cacti spawn rates (#1163)
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.
2025-03-06 17:56:04 +01:00
IntegratedQuantum
8a86b8f0c7 Remove the empty migrations file, since it causes errors. 2025-03-05 22:23:03 +01:00
Krzysztof Wiśniewski
0236451ac8
Add block migrations to mitigate damage after block renames (#1125)
* 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
2025-03-05 19:43:43 +01:00
IntegratedQuantum
72a68d6b6d Allow specifying the side model for the torch rotation.
fixes #1016
2025-03-04 19:02:17 +01:00
IntegratedQuantum
b50ffa5ea7 Add basic lighting for entity rendering. 2025-03-03 19:53:14 +01:00
IntegratedQuantum
ae4b60349e Add basic lighting for item drops.
fixes #623
2025-03-03 19:39:44 +01:00
Krzysztof Wiśniewski
c4a4d29a07
Add branch block type (#1118)
* Add branch block type

* Fix tabs

* Degenerate quads by setting them (.5,.5,.5)

* Add directional branch connecting

* Fix branches connecting to non-solid blocks

* Simplify branchTransform

* No automatic connections to solid blocks

* Use Neighbor to express branch connections

* Allow manual modification of branch connections

* Update branch model to have solid ends

* Tweak block connecting logic

* Tweak comments

* Tweak branch model UV

* Update branch debug texture

* Remove extra faces on connections

* Apply review suggestions

* Exclude viewThrough blocks from branch updateData

* Revert "Exclude viewThrough blocks from branch updateData"

This reverts commit 5942870253e841669c26db959e956fe416d77b9e.

* Apply review suggestions

* Snakes not allowed

* Fix style issues

* Apply review suggestions

* Fix formatting issue
2025-03-03 17:00:42 +01:00
ikabod-kee
ef1a33f6d5
Pickaxe Rebalance (2) (#1128)
* 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>
2025-03-01 16:28:15 +01:00
IntegratedQuantum
e7b3bf5727 Introduce block resistance, remove breakingPower and rename power to damage.
fixes #935
2025-02-28 21:32:47 +01:00
Carrie
b660a26b19
Uranium ore, ingots and blocks (#1127)
* Add uranium assets

* Redesign raw uranium to resemble the ore better

* Fix formatting
2025-02-28 17:44:25 +01:00
IntegratedQuantum
163db4929a Introduce modifiers that allow changing the power based on the block type.
Basically https://github.com/PixelGuys/Cubyz/issues/172#issuecomment-2685028175
2025-02-26 23:02:18 +01:00
IntegratedQuantum
54c2d2afc6 Replace blockClass with block tags.
This allows defining custom block tags, and multiple of them.

fixes #948
2025-02-26 21:11:08 +01:00
Carrie
fb0f028c3c
Gold ore, ingot, and block (#1110)
* Gold ore, ingot, and block

* Texture tweaks and add recipes

* Ikabod's balancing

* Change like 4 pixels of gold ore item
2025-02-26 19:43:31 +01:00
IntegratedQuantum
0cb195dce6 More modifiers 2025-02-25 22:07:26 +01:00
IntegratedQuantum
7145aca964 Support simple modifiers (currently they can only change tool stats one time) 2025-02-25 21:26:17 +01:00
Carrie
5b0e476fff
Unique Baobab leaves and leafElongation in savannah (#1101) 2025-02-23 21:22:32 +01:00
ikabod-kee
9bfa17812d
Made biomes bigger (#1086)
* Made biomes bigger

* More changes

* Update save_creation.zig
2025-02-23 20:37:55 +01:00
IntegratedQuantum
8e4a39e84e Fix entity models with transparent pixels.
fixes #820
2025-02-23 18:48:24 +01:00
Carrie
a5c3f2e65b
Make plants, leaves and torches break faster (#1094) 2025-02-23 11:48:40 +01:00
IntegratedQuantum
1a7c4c3ae6 Make diamond veins smaller, but more common 2025-02-22 10:52:03 +01:00
ikabod-kee
61cf456af8
Added durability for binding (#1089) 2025-02-22 10:19:32 +01:00
ikabod-kee
52724bbe6e
Pickaxe Rebalance (v1) (#1078)
* Pickaxe Revamp

* Void Stone and Obsidian Rebalance

* Fixes

* New pickaxe shape

* Removed Density = Durability

---------

Co-authored-by: Carrie <carriecapp9@gmail.com>
2025-02-21 20:14:34 +01:00
ikabod-kee
568d694756
Autumn Forest Biomes (#1010)
* Added Autumn Forests

* Gold

* No!

* The line!
2025-02-20 20:58:26 +01:00
IntegratedQuantum
feff96b3f3 Rename some material parameters, look up the true material density, and add some more function types.
fixes #1074
2025-02-20 20:42:26 +01:00
ikabod-kee
894a8bd93a
Wetlands and Swamp Revamp 2! (#1026)
* Wetlands Revamp

* Swamp changes

* Made flowers grouped!

* Sparser Wetland Trees

* Added the single line!
2025-02-20 19:40:50 +01:00
Carrie
5ae29fb891
Add Pebbles (#1073)
* Add pebbles

* Tweak pebbles texture

* Add pebbles item texture and recipe
2025-02-19 20:27:29 +01:00
IntegratedQuantum
5d37993132 Fix floating point precision issue in the fog gradient calculation, which lead to weird black lines.
fixes #1034
2025-02-19 19:18:03 +01:00
IntegratedQuantum
1bcd5095da Fix problem of the post processing shader sampling the fog values at the wrong resolution, leading to stripes at low resolution scales.
fixes #1065
2025-02-19 19:11:20 +01:00
Carrie
980588f6ed
Coal and Diamond blocks (#1059)
* Add coal and diamond blocks and recipes

* Diamond block needs breaking power of 10

* Tweak diamond block texture

* New diamond block, cut diamond block + recipes
2025-02-19 16:44:28 +01:00