Luanti logo

IRC log for #minetest, 2020-12-25

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Enable nick filtering
Time Nick Message
26 more elements. Show/hide.
09:11 dalz hey there, does someone happen to know if there's a way to test if a node at a certain position is liquid?
2 more elements. Show/hide.
09:45 AspireMint dalz: hello, first get node: node=minetest.get_node(pos) then ndef=minetest.registered_nodes[node.name] if ndef is not nil, then ndef.groups.liquid should be number in case it is liquid, otherwise nil
09:48 dalz thanks AspireMint, trying it now
09:54 dalz looks good, thanks again
09:55 AspireMint np :)
10:13 AspireMint anyone knows how to pause singleplayer from code?
10:57 erlehmann joined #minetest
11:09 MTDiscord <a​ppguru> dalz: Use this instead: ((minetest.registered_nodes[minetest.get_node(pos).name] or {}).liquidtype or "none") ~= "none"
11:11 MTDiscord <a​ppguru> AspireMint: liquid is a MTG group and should not be used here. Also, you should use minetest.get_item_group and check against 0, not nil.
11:15 dalz thanks appguru
11:15 dalz why is checking if minetest.registered_nodes contains the node necessary?
11:16 dalz can you have nodes that are not registered?
11:21 AspireMint appguru: thanks!  dalz: same question i asked some days ago... yes, these nodes: "ignore" and "unknown node"
11:23 dalz good to know, ty
11:36 MTDiscord <a​ppguru> np
33 more elements. Show/hide.

| Channels | #minetest index | Today | | Google Search | Plaintext