MihailRis
65ee464941
fix generated item's script
2025-12-08 19:21:49 +03:00
MihailRis
4fed90246f
fix Block::cloneTo, ItemDef::cloneTo
2025-09-10 01:02:08 +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
GHOST11111100
0caed92baa
added docs and fixed desc loading from item def
2025-07-26 17:58:57 +03:00
GHOST11111100
21364af7a3
added description to item
2025-07-26 16:49:39 +03:00
MihailRis
f5a4b5ca79
fix inventory.move_range
2025-03-18 03:45:20 +03:00
MihailRis
b66937c61d
feat: scripts classification
2025-03-13 00:28:40 +03:00
MihailRis
b1bd4feee7
add 'number' uses display mode
2025-02-18 12:49:15 +03:00
MihailRis
df2cff3e4c
add item 'uses-display' property
2025-02-18 03:24:52 +03:00
MihailRis
3aa7d6ac28
feat: support items data in base pack
2025-02-18 01:03:34 +03:00
MihailRis
bbfc0dbf17
add inventory.get_uses, inventory.use, item.uses & update base:bazalt_breaker
2025-02-17 04:40:18 +03:00
MihailRis
231fc7e0d0
refactor InventoryView & add 'uses' item property (WIP)
2025-02-16 20:41:13 +03:00
MihailRis
d86c5508d2
add ItemStack::fields
2025-02-15 20:30:22 +03:00
MihailRis
4306573320
refactor
2025-02-06 20:26:06 +03:00
MihailRis
9164edf971
move 'player.pick' binding handler to Lua
2024-12-23 12:37:26 +03:00
MihailRis
c3f22c6854
rename
2024-12-21 13:11:23 +03:00
MihailRis
605d7e7897
small fixes
2024-12-05 22:36:12 +03:00
MihailRis
bad2b44c96
fix incorrect virtual inventory id in scripting
2024-12-05 14:42:33 +03:00
MihailRis
f6ab0de5af
update Inventory::move
2024-11-26 08:53:32 +03:00
MihailRis
cd630463b3
add block.properties, item.properties (experimental)
2024-11-22 11:08:36 +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
0618028df1
add 'model-name' item property
2024-10-30 12:46:36 +03:00
MihailRis
fae372d19f
feat: item models generation simple & remove core:item_models
2024-10-26 18:42:21 +03:00
MihailRis
5ff42929f9
remove extra inventory convert implementation
2024-10-15 02:55:49 +03:00
MihailRis
ea9ad08bfd
Merge branch 'main' into heightmaps
2024-10-03 19:12:37 +03:00
MihailRis
36eed38b4c
add new methods to PseudoRandom & move this class to util::
2024-09-24 22:37:31 +03:00
MihailRis
28b6ec2a0e
Merge branch 'main' into blocks-metadata
2024-09-19 14:51:47 +03:00
MihailRis
34d2e6d400
migrate from dynamic::Value to dv::value & total erase namespace 'dynamic'
2024-09-18 23:31:18 +03:00
MihailRis
728795f0f3
update WorldConverter (WIP)
2024-09-02 23:24:59 +03:00
MihailRis
3f826a88d3
rename ContentLUT to ContentReport
2024-09-02 09:40:00 +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
eb6bb19dc6
interfaces/
2024-08-06 00:04:32 +03:00
InfiniteCoder
8f9c7eb7ff
data/
2024-08-05 23:59:42 +03:00
InfiniteCoder
9f9b9f2d64
world/
2024-08-05 23:49:11 +03:00
InfiniteCoder
5c9bc83bbd
items/ + objects/ + util/
2024-08-04 22:26:08 +03:00
InfiniteCoder
e1e3456139
content/
2024-08-04 12:45:08 +03:00
InfiniteCoder
d5dc68dd38
Root includes
2024-08-04 10:24:11 +03:00
MihailRis
47db626145
refactor: PVS-Studio warnings fixes
2024-08-04 01:30:52 +03:00
Vyacheslav Ivanov
3621e7ce1b
fix: PVS-Studio V522 mark false
...
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
...
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav Ivanov
aecd0f5db9
fix: optimization: PVS-Studio warning V832
...
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:10 +03:00
Vyacheslav Ivanov
52905ff27b
fix: optimization: PVS-Studio warning V802
...
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:42:06 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings"
2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
c3e4341a04
fix: optimization: PVS-Studio warning V802
...
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 06:12:30 +03:00
Vyacheslav Ivanov
5dd7a15c09
fix: optimization: PVS-Studio warning V832
...
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
MihailRis
0f26bbadfd
fix Block.rt and ItemDef.rt initialization
2024-07-06 01:34:52 +03:00