1074 Commits

Author SHA1 Message Date
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
IntegratedQuantum
ca0a37cabb Add an option to allow people to join without being invited (requires a public IP address).
Due to the non-obvious technical requirements, I decided to hide it a bit.

fixes #618
2025-02-16 16:24:51 +01:00
IntegratedQuantum
8aa0e9101b Leave behind the stone block when mining ores, only dropping the ore itself.
fixes #981
2025-02-16 10:50:14 +01:00
IntegratedQuantum
a28188de93 Consume item when putting ores onto a block.
fixes #1049
2025-02-16 10:32:07 +01:00
IntegratedQuantum
c1a882c163 Fix undefined values being used when calculating tool properties.
should fix #1055
2025-02-16 10:18:11 +01:00
IntegratedQuantum
1f08735177 Only print a warning when the stun server couldn't be reached.
fixes #1052
2025-02-16 09:24:30 +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
911abe7ae4
dynamic lighting (it's all fake) (#1039)
* Get the smallest light value from sampling 4 light samples in the normal direction

* Fix small sampling mistake

* Restrict the code to just one step and fix a small bug regarding colored transparent blocks

* Set the block contrast to zero, it now only relies on the flood fill lighting.

* Revert unintended changes

* Actually make it do something. And disable it in LOD, to reduce its performance cost.

* Increase the contrast further

* Change contrast from 2 to 2.5
2025-02-14 20:15:53 +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
a0663d7338 Allow sticking ores back into the ground (and other things)
fixes #982
2025-02-09 19:57:46 +01:00
IntegratedQuantum
5bea8f41b6 Disallow the .fillFromCreative command outside of creative mode.
fixes #1022
fixes #743
2025-02-09 17:32:55 +01:00
IntegratedQuantum
c9bac6377e Refactor how recipes are handled:
- They now have a fixed source type
- The server is responsible for filling the recipe items, disabling use of fillFromCreative for recipes
- The server now checks if the recipe is known (→ recipes cannot be exploited to get unobtainable items)
- The inventory is now cached on the client, instead of being recreated every time the recipes update (→less traffic)
2025-02-09 17:11:21 +01:00
IntegratedQuantum
2b3f38827e Make fog and lava don't drop items and fix syntax error 2025-02-09 12:40:02 +01:00
ikabod-kee
ba3091ff23 Cobblestone! 2025-02-09 12:34:28 +01:00
Carrie
9d1e4005b8 New clay texture 2025-02-08 15:34:15 +01:00
IntegratedQuantum
35883591d2 Hardcode the chisel break time to 0.5 seconds, to make it easier in survival. 2025-02-08 15:30:35 +01:00
IntegratedQuantum
4196870814 Some rebalancing:
- Diamonds increase efficiency, but decrease durability
- Iron now gets you more durability
- Stone now gets you more durability
2025-02-08 12:44:32 +01:00
IntegratedQuantum
70021a9721 Keep the old scroll state when recalculating the inventory crafting gui.
fixes #997
2025-02-08 12:19:54 +01:00
IntegratedQuantum
2cc1e383d9 Add the modern art biome, as a natural source of cloth.
makes #1003 less important
2025-02-07 21:17:40 +01:00
IntegratedQuantum
59cc2b3ae2 Allow specifying the rotation mode state in of blocks for most structures.
fixes #1006
2025-02-07 21:15:10 +01:00
IntegratedQuantum
801f67408f Use tar in the windows script, hopefully it's more stable than Expand-Archive.
should fix #1015

also removed spaces before "..."
2025-02-07 20:36:15 +01:00
Carrie
07be80d418 Add leafElogation and flowers to the forest 2025-02-04 21:14:39 +01:00
IntegratedQuantum
b384ec9ed8 Allow making less spherical trees with the leafElongation parameters.
as proposed in https://github.com/PixelGuys/Cubyz/issues/893#issuecomment-2573743185
2025-02-03 21:12:32 +01:00
IntegratedQuantum
f8a8d19759 Fix discrepancy between client-side and server-side torch placement.
fixes #993
2025-02-02 22:42:47 +01:00
IntegratedQuantum
9be4ff1047 Store handShakeComplete only after the player has been added to the player list.
This prevents a race condition between reconnecting and being added to the list.

Should fix #999
2025-02-02 21:13:57 +01:00
IntegratedQuantum
a0365dabd9 Fix calculation error in the bloom fog gradient.
fixees #995
2025-02-02 18:23:09 +01:00
IntegratedQuantum
2a27f185e3 Remove some needless error messages.
fixes #998
2025-02-02 18:18:05 +01:00
IntegratedQuantum
3a8d4d32ab Rework how gui callbacks check whether the player is in the game or not.
It now behaves correctly on key collisions where one of them changes the grab state.

fixes #1001
2025-02-02 18:14:11 +01:00
ikabod-kee
44d0504738
Added Lamp + Iron Block Recipe & Made Glow Crystal Collectable (#996)
* Added

* Update special_recipes.zig.zon
2025-02-02 16:59:15 +01:00
ikabod-kee
a7987e5bbc Tundra Moved 2025-02-01 16:25:11 +01:00
ikabod-kee
a93b0200ca
Increased Fall Damage Start (#988)
* Increased Fall Damage Start

* Update game.zig
2025-02-01 16:22:15 +01:00
IntegratedQuantum
7efa37029b Overwrite opaqueInLod specifier for Ore overlay textures.
fixes #987
2025-01-31 21:42:55 +01:00
Carrie
b6dc901e69 Default stacksize is 120 2025-01-31 21:28:02 +01:00
Carrie
3d16252f52
Update ores in prep for #611 (#979)
* Update ores, add raw iron, tweak some textures

* Make raw iron a block item

* Remove temporary textures

* Delete raw iron and revert associated changes
2025-01-30 22:12:31 +01:00
IntegratedQuantum
38dcb5480e Add an ore rotation mode that allows you to put the ore on top of any other block.
fixes #611
2025-01-30 21:37:03 +01:00
IntegratedQuantum
a414d49637 Generate all stone in underground LOD3+ chunks.
This reduces the compressed size when initially sending chunks over the network by over 40%.
helps with #830
makes #720 less important
makes #631 less important
makes #444 more useful
fixes #135 (although in a different way than I expected)
2025-01-29 22:19:22 +01:00
Carrie
7e1749de0e
Reorganize items/textures and remove unused files (#975)
* Reorganize items/textures and remove unused files

* Remove translationIDs
2025-01-28 20:30:01 +01:00
IntegratedQuantum
ee4e2a7015 Add a linear gradient to the atmospheric fog, starting at 100 blocks, reaching 0 at 1000 blocks.
fixes #961
2025-01-27 18:39:02 +01:00
OneAvargeCoder193
1de5efbf6e
hopefully save the hand and also when the player leaves or server closes (#943)
* hopefully save the hand and also when the player leaves or server closes

* fixes

* change it to check the user id

* fix

* check pointers

* fix compilation error

* fix other bugs

* put player id in source

* fix error

* remove one line of code

* fix serialization

* revert < 22 to < 14

* change

* fix error where inventory not saved on alt f4

* change connected to a regular bool

* remove isConnected function
2025-01-26 21:30:23 +01:00
OneAvargeCoder193
fabc5c1aef
Added crouching and block based friction (#926)
* basic_crouching

* added crouching and block based friction

* use 1 / in friction calculation

* fix some issues

* remove spam

* make flying disable friction

* add slipping to the crouch when you move to fast

* change parameters to 20 and 0.2

* final changes

* fixes

* fix issue when flying

* lower the slip limit

* change slip again

* only change crouch perc when on ground

* small fixes

* other changes

* change slip limit

* revert to linear

* make friction more accurate

* fixes i think

* clamp it

* swap min and max if max is smaller

* change it again

* make it symmetrical
2025-01-26 19:53:02 +01:00
OneAvargeCoder193
818f736311
Added fall damage and /kill (#959)
* add player health and fall damage and /kill

* less latency for taking damage

* clamp health

* changes

* final changes maybe

* return serverFailure if target not found

* fix error

* remove /damage
2025-01-25 22:54:23 +01:00
careeoki
967e24a1c4
Darken flower stems + minor plant tweaks (#962)
* Darken flower stems, Tweak plant textures

* Lush grass tweak
2025-01-25 22:03:40 +01:00
ikabod-kee
57658d6b10
Some Biomes --> Their own folders + Extra Sub Biomes (#955)
* Moved things into their own folders

* Small changes

* Changed Clearing Chances

* Fixes

* Radius Changes + Limestone Boulders
2025-01-24 23:06:09 +01:00
IntegratedQuantum
659deab1f4 Rename sepcial texture and texture info file names.
Should make adding these just a little less painful.
fixes #954
2025-01-24 22:59:32 +01:00