Time Nick Message 00:10 mtvisitor Just a reminder: 00:10 mtvisitor If there is some good practice(not best practice yet) of mod development from the luanti game engine development's perspective, please also add some unittest if possible. 00:11 mtvisitor This will be helpful for some other mod developers with good or positive content. thanks. 00:11 * mtvisitor made 2 Refrigerators near his house on "Out Here" test game server. (one is for food, and another is for drinks) 00:12 mtvisitor https://forum.luanti.org/viewtopic.php?p=431694#p431694 00:13 mtvisitor Every day is a fresh start. Enjoy the moment and relax! 17:29 crazylad does anyone know where the engine parses the Lua node def? 18:16 Krock crazylad: yeah well the thing is 18:17 Krock https://i.imgflip.com/45jzj6.jpg 18:20 user333_ (nobody knows ig :P) 18:20 jonadab warnock applies 18:20 Krock well it's trivial to find out, but they left. 18:21 user333_ time to go digging through 300 files to find out! 18:22 jonadab There's this thing called grep. 18:23 user333_ yeah but how do you even know what to grep for? 18:23 jonadab Look for a string that consistently always has to be there in every node def. 18:24 Krock register_node would be a good start 18:25 Krock then you'll find register_item_raw and the C++ function related to parsing the item def fields 18:27 user333_ i ran 'grep -r register_node' in src/ and it found only 1 thing, a comment in src/script/common/c_content.cpp 18:28 Krock I meant register_node as in core.register_node, which is present in register.lua 18:29 Krock in this regard, the Lua side provides a wrapper for the C++ implementation to make things mod-friendly. 18:29 user333_ err... builtin/game/register.lua:core.register_node = make_register_item_wrapper("node") 18:30 user333_ basically, a node is a type of item when in inventory? 18:33 user333_ i only found register_node 3 times in builtin/game/register.lua; core.register_node = make_register_item_wrapper("node"), core.register_node(":air", {, and core.register_node(":ignore", { 18:34 user333_ mostly unrelated, i assume register_item parses it 19:41 jonadab So you look up make_register_item_wrapper ... 19:41 jonadab This is not rocket surgery.\ 23:07 user333_ who named default:stonebrick and default:stone_block... why not default:stone_brick and default:stone_block / default:stonebrick and default:stoneblock 23:08 user333_ (i know MTG is maintenance-only, this is not a request to change it) 23:15 luatic consistency aliases could be considered 23:55 cheapie default:xXx_sToNe_bLoCk_xXx