317 Commits

Author SHA1 Message Date
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
MihailRis
f0b6521c76 refactor 2024-11-14 08:09:10 +03:00
MihailRis
b23d31a321 add 'translucent' block property 2024-11-13 03:40:20 +03:00
MihailRis
c5ca9128e9 move getVoxels from ChunksStorage to Chunks 2024-11-11 22:30:42 +03:00
opchik98
8e549fe806 Feature #152 and potential fix #320
- Added Lua scripts hud.open, inventory.create and inventory.remove
- Window now resizes even if it is not focused
2024-11-07 18:38:24 +02:00
MihailRis
961773c9f9 fix potential null dereferences on incorrect block.* functions use & refactor 2024-11-06 02:55:37 +03:00
MihailRis
dc8bad2af6 fix: draw-group not copied 2024-11-05 23:12:53 +03:00
MihailRis
423ac2c44e add 'model-name' block property 2024-11-05 22:23:53 +03:00
MihailRis
5e0bcf8ec0 feat: new block custom models implementation (WIP) 2024-11-05 19:28:40 +03:00
MihailRis
0eeb6b6eb2 add block particles property 2024-11-04 22:48:39 +03:00
MihailRis
5a431ed898 add custom-models in hand support 2024-11-04 18:02:42 +03:00
MihailRis
7abb1a88c7 add particles lighting 2024-11-03 02:23:37 +03:00
MihailRis
b944f257f7 add particles collision detection 2024-11-03 01:59:41 +03:00
MihailRis
b191f2ba9d add fullscreen block overlay 2024-10-31 18:22:55 +03:00
MihailRis
fae372d19f feat: item models generation simple & remove core:item_models 2024-10-26 18:42:21 +03:00
MihailRis
6dc73646f0 fix: EVT_CHUNK_HIDDEN not triggered 2024-10-19 00:53:56 +03:00
MihailRis
fbca439b2d fix: extended block always main segment passed to on_iteract 2024-10-15 05:24:52 +03:00
MihailRis
48143c5a2b add fragment.crop, fragment:crop() & fix fragments rotation when width is not equal to depth & fix extra structures placements 2024-10-15 00:03:06 +03:00
MihailRis
b4578cfb87 fix caves issues & add block 'surface-replacement' property 2024-10-08 22:37:41 +03:00
MihailRis
ea9ad08bfd Merge branch 'main' into heightmaps 2024-10-03 19:12:37 +03:00
MihailRis
c7ca7e58b3 rename chunk_inventories_map to ChunkInventoriesMap 2024-10-03 17:42:38 +03:00
MihailRis
ab53922474 extend user block fields check 2024-10-03 16:08:40 +03:00
MihailRis
e0a4876f3f add explicit block fields total size limit - 240 bytes 2024-10-02 17:08:46 +03:00
MihailRis
bc05716772 implement blocks data conversion 2024-10-01 19:08:45 +03:00
MihailRis
28d746f371 implement blocks data saving/loading 2024-09-30 23:42:16 +03:00
MihailRis
e84c79839c update blocks data lifetime 2024-09-30 21:33:19 +03:00
MihailRis
fc99343fb5 add block.get_field(...), block.set_field(...) 2024-09-30 18:55:01 +03:00
MihailRis
bf9f81a98c Merge branch 'main' into heightmaps 2024-09-19 15:16:14 +03:00