Commit Graph
13 Commits
Author SHA1 Message Date
REDxEYE a4b1b2100b libentities: deprecate in favour of official implementation 2024-11-04 21:17:20 +03:00
REDxEYE 7f5bc41835 libentities: add get_hitbox that returns a hitbox from entity definition 2024-11-04 21:17:20 +03:00
REDxEYE 803981e2a8 libworld: expose WorldInfo::fog value to lua 2024-11-04 21:17:20 +03:00
REDxEYE 76fc7b5fb4 libitem: exposed placing_block and emission to lua 2024-11-04 21:17:17 +03:00
REDxEYE fcd26f4b10 ContentLoader::load: Minor cleanup 2024-08-21 19:28:08 +03:00
REDxEYE 16ddd943c2 ItemDef/EntityDef/Block: Add proper dependency resolution for blocks, items, entities 2024-08-21 19:15:09 +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
REDxEYE 615dd23913 block.raycast: fix documentation 2024-08-20 18:17:11 +03:00
REDxEYE 408e7fd763 debug.print: remove as many allocations as possible, modified string print to escape any special characters 2024-08-20 18:10:05 +03:00
REDxEYE a48d54aa27 block.raycast/entity.raycast: Updated docs to reflect changes 2024-08-20 15:33:29 +03:00
REDxEYE 6ff608c012 lua_extensions: Fix wrong repr function name 2024-08-20 15:14:27 +03:00
REDxEYE 7fa061c941 lua_extensions: Add debug.print function that can pretty-print tables recursively(with depth limit of 10) 2024-08-20 15:09:32 +03:00
REDxEYE 1be50c2e06 libblock.raycast: Add argument to specify blocks to ignore during ray casting
libentity.raycast: Add argument to specify blocks to ignore during ray casting
Chunk::rayCast: Add argument to specify blocks to ignore during ray casting.

On lua side filter blocks are passed as list of strings in form of "MOD:BLOCK_NAME"
On C++ size filter blocks are std::set of blockid_t
2024-08-19 21:36:30 +03:00