Luanti logo

IRC log for #luanti-docs, 2025-03-29

| Channels | #luanti-docs index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
04:00 MTDiscord joined #luanti-docs
04:29 MTDiscord <mark.wiemer> Am I crazy or is register_item missing from the API docs?
04:44 MTDiscord <theidealist> I think it is, yes - although to be fair you're really meant to use register_craftitem, register_node, and register_tool instead
05:03 MTDiscord <mark.wiemer> what about for the hand?
05:04 MTDiscord <mark.wiemer> Void Game uses register_item for the hand object:   register_item(":", {     type = "none",     wield_image = "void_hand_hand.png",     wield_scale = { x = 0.5, y = 1, z = 4 },     tool_capabilities = {         groupcaps = {             default = {                 times = { [1] = 0 },                 uses = 0,             },         },     }, })   Is there a new/better way to do this?
13:03 MTDiscord <luatic> I think the hand is about the only thing register_item should be used for. Honestly we should maybe just have a register_hand, unless I'm missing other potential type = "none" items (other hands? there's an inventory list for them after all).
13:18 MTDiscord <theidealist> I mean I like to use override_item instead
13:25 MTDiscord <wsor4035> Pretty sure that's what your supposed to do, check mtg it changed for some reason a while ago
13:50 MTDiscord <mark.wiemer> I'll see what I can learn about overrideitem :
14:28 MTDiscord <mark.wiemer> Created https://github.com/luanti-org/docs.luanti.org/issues/218, "Unify documentation efforts"
16:12 MTDiscord <wsor4035> 🤷
16:19 MTDiscord <wsor4035> yeah, its registered here, so you should override it https://github.com/luanti-org/luanti/blob/master/builtin/game/register.lua#L433-L438
16:19 MTDiscord <wsor4035> being able to reregister is a byproduct of the :modname:nodename thing
17:54 MTDiscord <wsor4035> my thoughts are to start moving over with engine/docs, such as the developing folder and ides, then some of the individual files
18:48 MTDiscord <mark.wiemer> So move docs.luanti.org into the luanti engine repo?
18:49 GreenXenith joined #luanti-docs
18:52 MTDiscord <greenxenith> Uh, I think he means moving stuff from /docs to docs.luanti.org
18:55 MTDiscord <mark.wiemer> time will tell 😄 personally I like monorepos as they provide a clean timeline and centralized navigation and searching. So I'd be in favor of putting everything in the luanti-org/luanti repo
18:55 MTDiscord <greenxenith> Permissions on monorepos are messy
19:16 MTDiscord <mark.wiemer> we can use GitHub teams, e.g. "this pr modifies files in this folder, so it needs approvals from members of the engine team"
19:19 [MatrxMT] <y5nw> Does GH allow per-directory/file access control based on teams though?
19:19 MTDiscord <wsor4035> :facebook:
19:22 MTDiscord <mark.wiemer> Have some patience 😦

| Channels | #luanti-docs index | Today | | Google Search | Plaintext