1276 Commits

Author SHA1 Message Date
IntegratedQuantum
72a68d6b6d Allow specifying the side model for the torch rotation.
fixes #1016
2025-03-04 19:02:17 +01:00
IntegratedQuantum
aacd2bae5b Refactor all the key pressing/releasing code into a function.
fixes #746
2025-03-03 21:36:32 +01:00
IntegratedQuantum
57d32338fb Fix crash when the chat window gets a message before the GUI finished initializing.
fixes #649
2025-03-03 20:24:15 +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
IntegratedQuantum
1f18486c67 List available tool function types when not found. 2025-03-02 19:30:50 +01:00
IntegratedQuantum
0cfcf801ca
Update CONTRIBUTING.md now that we have a full formatter running 2025-03-02 17:43:04 +01:00
IntegratedQuantum
bc02bb0587
Use (an adapted version) of zig fmt to format the source code. (#1140)
* Format all the files

* Fix compilation error.

* The install scripts now patch render.zig from the zig standard library.

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update the formatter, it doesn't need to run on .zig files anymore.

* Update ci.yml

* Update ci.yml

* Add a mistake to check if it works

* IT WORKS!
2025-03-02 16:36:58 +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
868b4aade3 Keep crafting more when holding left click in inventory crafting.
fixes #1051
2025-03-01 15:23:05 +01:00
IntegratedQuantum
ead00272cc Fix crash when leaving an reentering a world.
fixes #972
2025-03-01 14:35:08 +01:00
IntegratedQuantum
ffd408bf18 Print the file path when printing a zon error.
fixes #1133
2025-03-01 12:30:06 +01:00
IntegratedQuantum
e7b3bf5727 Introduce block resistance, remove breakingPower and rename power to damage.
fixes #935
2025-02-28 21:32:47 +01:00
IntegratedQuantum
e71161362a Remove extranous newline when printing a zon syntax error 2025-02-28 18:42:30 +01:00
IntegratedQuantum
1c64a8e4b7 zon: Improve the duplicate key error 2025-02-28 18:38:50 +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
6f20f71737 Calculate block damage as individual swings.
fixes #953
2025-02-27 21:19:15 +01:00
IntegratedQuantum
2a73886498 Diminishing returns
fixes #1119
2025-02-27 19:38:28 +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
37136304a8 Fix panic during map generation from a float that was too large.
fixes #1117
2025-02-26 17:59:34 +01:00
IntegratedQuantum
43773e96b4 Add a minHeight parameter for ores.
fixes #1112
2025-02-26 17:04:36 +01:00
IntegratedQuantum
0cb195dce6 More modifiers 2025-02-25 22:07:26 +01:00
IntegratedQuantum
d2deb2c17a Fix trailing newlines 2025-02-25 21:32:27 +01:00
IntegratedQuantum
7145aca964 Support simple modifiers (currently they can only change tool stats one time) 2025-02-25 21:26:17 +01:00
IntegratedQuantum
ba50014acd Make the biome transition smooth
fixes #1107
2025-02-24 20:47:55 +01:00
IntegratedQuantum
43b6d9e5a0 Optimize and simplify the CaveBiomeMap value interpolation, making use of the axis aligned nature of the underlying grid. 2025-02-24 20:19:21 +01:00
Carrie
5b0e476fff
Unique Baobab leaves and leafElongation in savannah (#1101) 2025-02-23 21:22:32 +01:00
IntegratedQuantum
958f00c9f0 Improve the spawn searching algorithm.
It now uses a spiral starting at (0, 0), and it should be a lot faster too.

fixes #1093
2025-02-23 21:17:13 +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
f83479264e Trigger button release actions when switching between menu and game.
fixes #1080
2025-02-23 20:21:34 +01:00
IntegratedQuantum
70c3772b1b Reset the eyePos on death.
Should fix #968
2025-02-23 20:15:31 +01:00
IntegratedQuantum
dc3b2924a5 Don't change color of immutable slots on click.
fixes #1085
2025-02-23 20:13:01 +01:00
IntegratedQuantum
c343d434cb Limit player names and chat messages, both in terms of visible and total characters.
fixes #1099
fixes #1098
2025-02-23 19:21:11 +01:00
IntegratedQuantum
8e4a39e84e Fix entity models with transparent pixels.
fixes #820
2025-02-23 18:48:24 +01:00
IntegratedQuantum
02710fdba6 Run the game in ReleaseSafe by default.
fixes #409
2025-02-23 15:53:28 +01:00
Carrie
a5c3f2e65b
Make plants, leaves and torches break faster (#1094) 2025-02-23 11:48:40 +01:00
IntegratedQuantum
30e24c2687 Explicitly specify the path of windows tar.
Some people also have linux tar installed, which of course works differently.

I hate windows.
2025-02-23 11:26:11 +01:00
MnHs
5cfe09190f
Add coyote time (#1053)
* add coyote time

* remove getJumpBlocking function

* fix undeclared constant error

* try to fix input delay

* fix coyote jump input delay

* fix paranoid check

* add jump coyote timer to f3 menu, cleanup
2025-02-22 15:18:58 +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
IntegratedQuantum
c46c469f21 Don't run the power check when trying to place ores on blocks.
fixes #1076
2025-02-22 10:10:38 +01:00
IntegratedQuantum
efd9ce8141 Deblobification 2025-02-21 20:26:38 +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