322 Commits

Author SHA1 Message Date
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
IntegratedQuantum
3d81ef9d3d
Revamp the procedural crafting system. (#974)
* Add a button in the workbench.

This can be used to toggle the thing.

* Do all the tool type reading and registering stuff

* The button now toggles

* Send the tool type to the server when opening the workbench inventory.

Clicking the button will now just close and reopen the inventory.

* Unify the tool powers (no more shovers for you).

The tool type is no determined by the button

* Add the new system for calculating the tool properties based on per-slot parameters.

* Some fixes for the previous commit

* Allow disabling slots, or making them mandatory

* The return of the shover, and other tools. Also fixed some bugs.

* Tool texturing can now be configured using an actual texture, where each color corresponds to one slot.

Also added temporary textures for the current tools.

* Remove all the unused tool code

* Hide disabled slots and change color of optional slots.

* Add support for overlay tool textures and add an example texture for the pickaxe.

* Avoid needless error outputs when no image was loaded.
2025-02-19 16:43:17 +01:00
Carrie
ddb96ab3a4
Add terracotta and its brick variants (#1057) 2025-02-16 08:58:05 +01:00
Carrie
2a2b599d5d
Hibiscus, Trumpet Lily, and Dandelions (#1044)
* Add hibiscus, trumpet lily, dandelions, tweak daffodil, and give flowers planar rotation

* Add item textures for new flowers

* Add new flowers to biomes
2025-02-15 09:15:46 +01:00
IntegratedQuantum
6f33963e8c Check for low z values in the gradient fog integral.
Also simplified the logic a bit.

might fix #1034
2025-02-13 19:58:25 +01:00
IntegratedQuantum
47adc1067d Fix pixel errors at chunk borders.
The floating point numbers were rounded differently depending on the chunk.
2025-02-12 21:09:11 +01:00
IntegratedQuantum
22488a28ae CI: Check for trailing spaces and (missing) newlines at the end of the file
fixes #737
2025-02-12 17:36:44 +01:00
ikabod-kee
fd43253f4a
Add Ice Caves! (#1028)
* Add Ice Caves!

* Update glacite.zig.zon

* Reverted Glacite and Better Ice Caves

* Added Fog
2025-02-11 19:09:18 +01:00
ikabod-kee
7d0147af2a
Reduced Lava Caves Spawn Chance (#1021)
* Lava Caves

* Fixed the unintended change
2025-02-10 22:42:07 +01:00
IntegratedQuantum
2b3f38827e Make fog and lava don't drop items and fix syntax error 2025-02-09 12:40:02 +01:00