344 Commits

Author SHA1 Message Date
MihailRis
0649419485 randomize rotatable plants in world generation 2025-02-21 19:35:37 +03:00
MihailRis
ce9853d813 add BlockMaterial.hitSound 2025-02-18 18:50:50 +03:00
MihailRis
28caec6aa0 Merge branch 'main' into update-file-subsystem 2025-02-02 16:32:25 +03:00
MihailRis
b00160eb26 add chunk data validity check to world.set_chunk_data 2025-01-31 12:41:49 +03:00
MihailRis
e5d558d357 move world-related sources from files/ to world/files 2025-01-30 15:02:28 +03:00
Alexei Kartashov
6629d07bc2 fix: "‘find’ is not a member of ‘std’" (import algorithm) 2025-01-25 02:40:02 +03:00
MihailRis
02a93d8bc3 feat: world.get_chunk_data(...) saved chunk data when chunk is not loaded 2025-01-20 01:25:43 +03:00
MihailRis
f1f81371af add world.save_chunk_data(...) 2025-01-19 23:36:37 +03:00
MihailRis
22c7cb8398 add on_chunk_present and on_chunk_remove events 2025-01-12 05:41:42 +03:00
MihailRis
fc9c096873 cleanup 2025-01-12 03:34:50 +03:00
MihailRis
41f6194fc1 introduce compressed_chunks namespace 2025-01-12 03:05:58 +03:00
MihailRis
ab5a62c3aa add new block.get_AXIS functions overloads & add rotation support to base:falling_block 2024-12-29 21:48:36 +03:00
MihailRis
c1b311f3c4 refactor: change pointer parameters to references for Level and Content in various classes 2024-12-25 18:53:53 +03:00
MihailRis
ed7dc1f901 feat: add app.save_world() function and update documentation 2024-12-25 15:15:11 +03:00
MihailRis
4363883728 add 'on_breaking', 'on_block_breaking' events 2024-12-21 14:09:17 +03:00
MihailRis
c3f22c6854 rename 2024-12-21 13:11:23 +03:00
MihailRis
ba0610d857 Merge branch 'main' into headless-mode 2024-12-21 09:03:30 +03:00
MihailRis
954724c837 add 'culling' property & optimize generated chunk meshes & fix faces culling when 'light-passing' is false 2024-12-21 06:41:03 +03:00
MihailRis
3d7a9fd225 Merge branch 'main' into headless-mode 2024-12-19 22:57:12 +03:00
MihailRis
cda34e3975 fix block overriding 2024-12-19 22:54:54 +03:00
MihailRis
b1fc666448 fix 2024-12-17 20:56:25 +03:00
MihailRis
49dd866c22 update Chunks::configure 2024-12-17 20:43:42 +03:00
MihailRis
1c18c02092 move Chunks from Level to Player 2024-12-17 19:40:00 +03:00
MihailRis
b7664b4188 move Lighting instance to ChunksController 2024-12-17 05:13:49 +03:00
MihailRis
7ca91020e3 add docs to remaining public blocks_agent functions 2024-12-17 00:04:52 +03:00
MihailRis
6ed0bc3e7e add docs to some blocks_agent functions 2024-12-16 23:56:52 +03:00
MihailRis
5030a65bc1 add docs to some blocks_agent functions 2024-12-16 23:43:01 +03:00
MihailRis
fb3f201dfc move setRotation, checkReplaceability, raycast logic to the blocks_agent 2024-12-16 23:32:52 +03:00
MihailRis
c7c2fe29d2 move seekOrigin logic to the blocks_agent 2024-12-16 22:37:55 +03:00
MihailRis
87c19d69dc move block set logic to the blocks_agent 2024-12-16 20:46:06 +03:00
MihailRis
6157f8193d add blocks_agent templates & remove block.get_slow 2024-12-16 11:26:57 +03:00
MihailRis
e713412a6d rename ChunksStorage to GlobalChunks 2024-12-14 18:58:51 +03:00
MihailRis
76559cc9ac Revert "test"
This reverts commit 251aca7abc13e269c1593745ce8ee08c7ccb1933.
2024-12-13 08:02:26 +03:00
MihailRis
251aca7abc test 2024-12-13 07:33:55 +03:00
MihailRis
e0b3425eff migrate blocks interaction (scripting) to global chunks storage (WIP) 2024-12-13 05:54:41 +03:00
MihailRis
9ec8788838 add player.create, test.set_setting, test.sleep_until, world.count_chunks 2024-12-12 15:54:56 +03:00
MihailRis
8a5042f2a2 fix msvc build 2024-12-12 02:54:56 +03:00
MihailRis
7e92a16016 fix weak_ptr leak 2024-12-12 02:40:59 +03:00
MihailRis
436bfd24ba update ChunksStorage 2024-12-11 16:30:19 +03:00
MihailRis
91fa2838d6 reduce 'corrupted block detected ...' spam if chunk data is corrupted 2024-12-11 15:23:16 +03:00
Richard Try
f6d5735f14
Fix neighbour chunk update
+1 for x axis is missed in getChunk()
2024-12-07 18:57:16 +03:00
MihailRis
f095edda7a Merge branch 'main' into user-properties 2024-11-24 12:58:09 +03:00
MihailRis
f2e7a54180 add on_replaced block event and on_block_replaced world event 2024-11-22 12:31:45 +03:00
MihailRis
cd630463b3 add block.properties, item.properties (experimental) 2024-11-22 11:08:36 +03:00
MihailRis
8543be87df add block.materials table 2024-11-22 09:36:48 +03:00
MihailRis
61b1aa8e3d add gfx.blockwraps library & add on_player_tick world event 2024-11-21 06:48:23 +03:00
MihailRis
6f6c2a916a fix block inventory unbinding 2024-11-19 11:46:04 +03:00
MihailRis
1ba5b0ce33 fix: actual block inventory size not updating on inventory-size property update 2024-11-17 16:58:58 +03:00
MihailRis
5793c52ac6 Revert "remove 'translucent' block property (will be reverted later)"
This reverts commit 7aacadc926432da2583b95f6a02af08ee51c2c91.
2024-11-15 06:47:03 +03:00
MihailRis
7aacadc926 remove 'translucent' block property (will be reverted later) 2024-11-15 05:07:49 +03:00