61 Commits

Author SHA1 Message Date
MihailRis
b863d47d7f add 'on_block_tick' event 2025-09-14 23:57:45 +03:00
MihailRis
185b6cc661 add block.has_tag, item.has_tag 2025-08-30 23:46:45 +03:00
MihailRis
8bdf31d7bb add block/item tags 2025-08-30 23:26:07 +03:00
MihailRis
16189cc59e fix 2025-07-17 00:15:06 +03:00
MihailRis
6dfabe9ff3 fix variant indexing 2025-07-17 00:10:45 +03:00
MihailRis
7e0b58d96b add 'offset', 'bits' properties & fix is_solid_at 2025-07-14 00:20:49 +03:00
MihailRis
29021d1178 refactor a bit 2025-07-14 00:02:29 +03:00
MihailRis
5fdff1f8f6 fix block solidity property 2025-07-13 22:56:06 +03:00
MihailRis
325f0b1f02 feat: variants in block json 2025-07-13 22:17:43 +03:00
MihailRis
5478d121f0 add variants (WIP) 2025-07-13 21:28:57 +03:00
MihailRis
9463917164 feat: 'stairs' rotation profile 2025-04-30 20:21:59 +03:00
MihailRis
20e3a961f9 add BlockModel struct 2025-04-27 18:21:56 +03:00
MihailRis
718f5d1089 rename BlockModel to BlockModelType 2025-04-27 15:18:14 +03:00
MihailRis
9e28b783fd make BlockMaterial serializable 2025-04-13 20:52:03 +03:00
MihailRis
7749675a61 add EnumMetadata 2025-04-13 13:53:59 +03:00
MihailRis
b66937c61d feat: scripts classification 2025-03-13 00:28:40 +03:00
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
ab5a62c3aa add new block.get_AXIS functions overloads & add rotation support to base:falling_block 2024-12-29 21:48:36 +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
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
cda34e3975 fix block overriding 2024-12-19 22:54:54 +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
5793c52ac6 Revert "remove 'translucent' block property (will be reverted later)"
This reverts commit 7aacadc926432da2583b95f6a02af08ee51c2c91.
2024-11-15 06:47:03 +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
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
b4578cfb87 fix caves issues & add block 'surface-replacement' property 2024-10-08 22:37:41 +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
44753904dc add Chunk.blocksMetadata 2024-09-14 20:26:36 +03:00
REDxEYE
5f6ae5daba ItemDef/EntityDef/Block: Add method cloneTo to definition to other definition
ContentBuilder: Add method `get` to get definition or nullptr
ContentLoader: Add functionality to clone from definition specified in `parent` field in json
2024-08-20 21:58:01 +03:00
MihailRis
de5c75d782 replace include guards with pragma once 2024-08-10 01:57:59 +03:00
MihailRis
f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
InfiniteCoder
54f15ecaea maths/ 2024-08-06 00:06:23 +03:00
InfiniteCoder
d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
MihailRis
245b39be62 refactor: PVS-Studio warnings fixes 2024-08-04 01:12:42 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
2c1103307f
fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
MihailRis
71e20ff805 add block 'ambient-occlusion' property 2024-07-27 18:37:18 +03:00
MihailRis
638a0d9850 fix NONE rotation profile 2024-07-14 01:57:18 +03:00
MihailRis
7487c55e0c Merge branch 'main' into entities 2024-07-10 09:25:56 +03:00