171 Commits

Author SHA1 Message Date
MihailRis
80128a4190 add on_inventory_open and on_inventory_closed events 2025-01-12 17:14:01 +03:00
MihailRis
22c7cb8398 add on_chunk_present and on_chunk_remove events 2025-01-12 05:41:42 +03:00
MihailRis
dbf366eca3 fixes 2025-01-07 23:49:09 +03:00
MihailRis
45807fdcb1 fix on_block_common 2024-12-29 21:20:21 +03:00
MihailRis
5e76cdfadc rename engine.hpp/cpp to Engine.hpp/cpp & move Engine, Time and mainloop classes to 'engine' folder 2024-12-25 12:13:03 +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
d745a34657 refactor 2024-12-18 04:13:33 +03:00
MihailRis
eaffc0cb57 Merge branch 'main' into headless-mode 2024-12-08 01:39:45 +03:00
MihailRis
59402b6607 add 'test' library 2024-12-07 22:16:50 +03:00
MihailRis
92fb19ba5e fix item.properties 2024-12-07 20:42:10 +03:00
MihailRis
5e8805f241 add vctest (WIP) 2024-12-07 15:49:23 +03:00
MihailRis
d1f92c21d0 fix on_block_interact & fix segfault after engine finished 2024-12-07 02:10:36 +03:00
MihailRis
32ba027fac replace getContentPacks with getAllContentPacks in global events emitting 2024-11-27 12:12:20 +03:00
MihailRis
3933baccd2 remove double world.lua run in 'core' 2024-11-27 10:55:55 +03:00
MihailRis
b3ac1bd8f4 update base:drop component 2024-11-26 11:01:29 +03:00
MihailRis
f095edda7a Merge branch 'main' into user-properties 2024-11-24 12:58:09 +03:00
MihailRis
1a00a91b60 fix: commands repository not reset before world open 2024-11-24 12:54:05 +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
a641099d36 feat: load block and item scripts after content load 2024-11-22 08:56:59 +03:00
MihailRis
61b1aa8e3d add gfx.blockwraps library & add on_player_tick world event 2024-11-21 06:48:23 +03:00
MihailRis
f9f150f0aa fix entity component script source path in lua traceback 2024-11-19 07:35:38 +03:00
MihailRis
e3cb736519 update lua chunks sources to the engine format 2024-11-18 14:05:45 +03:00
MihailRis
8c8c844dd4 feat: save rules 2024-11-06 19:37:20 +03:00
MihailRis
2e24d60404 add rules & add 'show-content-access' rule 2024-11-06 17:31:31 +03:00
MihailRis
9728664f5a fix 2024-11-05 14:40:51 +03:00
MihailRis
f6f82644d4 add on_block_interact world event 2024-11-05 13:55:07 +03:00
MihailRis
e762cf9b23 add events.reset 2024-11-01 17:18:12 +03:00
MihailRis
ac6084f904 fix console focus on open 2024-11-01 16:20:58 +03:00
MihailRis
72d5eca632 update events & update some built-in events codes 2024-11-01 15:05:06 +03:00
MihailRis
3b5857ee62 fix: on_block_placed not calling 2024-10-23 12:10:02 +03:00
MihailRis
6e0304248b add stdmin.lua 2024-10-09 05:30:02 +03:00
MihailRis
d9a44f3b87 minor refactor 2024-10-06 21:07:27 +03:00
MihailRis
73d96fd4f7 move generator script execution to an isolated Lua state 2024-10-06 18:23:33 +03:00
MihailRis
bf9f81a98c Merge branch 'main' into heightmaps 2024-09-19 15:16:14 +03:00
MihailRis
3953583605 minimize extra dv::value copies 2024-09-19 13:45:32 +03:00
MihailRis
34d2e6d400 migrate from dynamic::Value to dv::value & total erase namespace 'dynamic' 2024-09-18 23:31:18 +03:00
MihailRis
8ef288c189 refactor lua scripting a bit 2024-08-19 00:57:49 +03:00
MihailRis
71f56334cb refactor lua scripting a bit 2024-08-19 00:49:28 +03:00
MihailRis
685cd414c4 add struct Biome & move generator-related scripting to scripting_world_generation.cpp 2024-08-18 22:25:36 +03:00
MihailRis
2a506e9891 refactor blocks layers 2024-08-18 16:54:58 +03:00
MihailRis
af485dd7cb add sea_layers 2024-08-18 01:30:59 +03:00
MihailRis
e560236a8c add heightmap write-only property 'noiseSeed' 2024-08-17 20:17:52 +03:00
MihailRis
510c45ffe9 add sea_level variable 2024-08-17 19:06:14 +03:00
MihailRis
c5877684eb add 'below_sea_level' layer property 2024-08-17 18:44:08 +03:00
MihailRis
2a767a3638 add generator layers 2024-08-17 18:11:52 +03:00
MihailRis
ae5671364a add heightmap-based test generation 2024-08-14 18:44:32 +03:00
MihailRis
95cf451cc8 add GeneratorScript 2024-08-14 17:12:12 +03:00