Time |
Nick |
Message |
00:16 |
|
absurb joined #minetest |
00:24 |
|
Fixer_ joined #minetest |
02:18 |
|
turtleman joined #minetest |
02:52 |
|
Verticen joined #minetest |
02:54 |
|
olliy joined #minetest |
03:37 |
|
Verticen joined #minetest |
03:49 |
|
Verticen_ joined #minetest |
04:12 |
|
AspireMint joined #minetest |
04:13 |
|
Taoki joined #minetest |
04:47 |
|
Weedy joined #minetest |
04:53 |
|
Splyncryth joined #minetest |
05:00 |
|
MTDiscord joined #minetest |
05:01 |
|
illwieckz joined #minetest |
05:05 |
|
Verticen_ joined #minetest |
05:21 |
|
Fractalis joined #minetest |
05:44 |
|
YuGiOhJCJ joined #minetest |
06:04 |
|
Flabb joined #minetest |
06:06 |
|
xSmurf joined #minetest |
06:21 |
|
I_am_6r1d joined #minetest |
07:13 |
|
aleksvor joined #minetest |
08:00 |
|
ShadowNinja joined #minetest |
08:06 |
|
Flabb joined #minetest |
08:35 |
|
lisac joined #minetest |
08:39 |
|
calcul0n joined #minetest |
09:04 |
|
Jhalman joined #minetest |
09:10 |
|
dalz joined #minetest |
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? |
09:17 |
|
Talkless joined #minetest |
09:45 |
|
Flabb joined #minetest |
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 |
<appguru> dalz: Use this instead: ((minetest.registered_nodes[minetest.get_node(pos).name] or {}).liquidtype or "none") ~= "none" |
11:11 |
MTDiscord |
<appguru> 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 |
<appguru> np |
12:15 |
|
Lunatrius joined #minetest |
12:47 |
|
YannB64 joined #minetest |
13:03 |
|
Fixer joined #minetest |
13:31 |
|
calcul0n_ joined #minetest |
13:58 |
|
turtleman joined #minetest |
14:32 |
|
Verticen joined #minetest |
15:03 |
|
SX joined #minetest |
15:05 |
|
MDude joined #minetest |
15:15 |
|
craigger joined #minetest |
15:23 |
|
dalz joined #minetest |
15:55 |
|
perrier joined #minetest |
16:25 |
|
FeXoR joined #minetest |
16:56 |
|
Flabb joined #minetest |
17:21 |
|
Verticen joined #minetest |
18:01 |
|
Verticen joined #minetest |
18:41 |
|
fluxflux_ joined #minetest |
18:55 |
|
I_am_6r1d joined #minetest |
19:11 |
|
olliy joined #minetest |
19:25 |
|
Verticen joined #minetest |
19:30 |
|
calcul0n_ joined #minetest |
19:33 |
|
SwissalpS joined #minetest |
19:34 |
|
turtleman joined #minetest |
20:17 |
|
Seirdy joined #minetest |
20:19 |
|
swift110 joined #minetest |
20:19 |
|
swift110 joined #minetest |
20:20 |
|
dalz joined #minetest |
21:06 |
|
YannB64 joined #minetest |
22:26 |
|
Fractalis joined #minetest |
22:31 |
|
Swift110-mobile joined #minetest |
22:38 |
|
sec^nd joined #minetest |
23:12 |
|
fleeky_ joined #minetest |
23:17 |
|
Hawk777 joined #minetest |
23:48 |
|
Miner_48er joined #minetest |