@@ -350,68 +350,72 @@ minetest.register_node("testnodes:plantlike_rooted_degrotate", {
350
350
})
351
351
352
352
-- Demonstrative liquid nodes, source and flowing form.
353
- minetest .register_node (" testnodes:liquid" , {
354
- description = S (" Source Liquid Drawtype Test Node" ),
355
- drawtype = " liquid" ,
356
- paramtype = " light" ,
357
- tiles = {
358
- " testnodes_liquidsource.png" ,
359
- },
360
- special_tiles = {
361
- {name = " testnodes_liquidsource.png" , backface_culling = false },
362
- {name = " testnodes_liquidsource.png" , backface_culling = true },
363
- },
364
- use_texture_alpha = true ,
365
-
366
-
367
- walkable = false ,
368
- liquidtype = " source" ,
369
- liquid_range = 1 ,
370
- liquid_viscosity = 0 ,
371
- liquid_alternative_flowing = " testnodes:liquid_flowing" ,
372
- liquid_alternative_source = " testnodes:liquid" ,
373
- groups = { dig_immediate = 3 },
374
- })
375
- minetest .register_node (" testnodes:liquid_flowing" , {
376
- description = S (" Flowing Liquid Drawtype Test Node" ),
377
- drawtype = " flowingliquid" ,
378
- paramtype = " light" ,
379
- paramtype2 = " flowingliquid" ,
380
- tiles = {
381
- " testnodes_liquidflowing.png" ,
382
- },
383
- special_tiles = {
384
- {name = " testnodes_liquidflowing.png" , backface_culling = false },
385
- {name = " testnodes_liquidflowing.png" , backface_culling = false },
386
- },
387
- use_texture_alpha = true ,
353
+ -- DRAWTYPE ONLY, NO LIQUID PHYSICS!
354
+ -- Liquid ranges 0 to 8
355
+ for r = 0 , 8 do
356
+ minetest .register_node (" testnodes:liquid_" .. r , {
357
+ description = S (" Source Liquid Drawtype Test Node, Range @1" , r ),
358
+ drawtype = " liquid" ,
359
+ paramtype = " light" ,
360
+ tiles = {
361
+ " testnodes_liquidsource_r" .. r .. " .png^[colorize:#FFFFFF:100" ,
362
+ },
363
+ special_tiles = {
364
+ {name = " testnodes_liquidsource_r" .. r .. " .png^[colorize:#FFFFFF:100" , backface_culling = false },
365
+ {name = " testnodes_liquidsource_r" .. r .. " .png^[colorize:#FFFFFF:100" , backface_culling = true },
366
+ },
367
+ use_texture_alpha = true ,
368
+
369
+
370
+ walkable = false ,
371
+ liquid_range = r ,
372
+ liquid_viscosity = 0 ,
373
+ liquid_alternative_flowing = " testnodes:liquid_flowing_" .. r ,
374
+ liquid_alternative_source = " testnodes:liquid_" .. r ,
375
+ groups = { dig_immediate = 3 },
376
+ })
377
+ minetest .register_node (" testnodes:liquid_flowing_" .. r , {
378
+ description = S (" Flowing Liquid Drawtype Test Node, Range @1" , r ),
379
+ drawtype = " flowingliquid" ,
380
+ paramtype = " light" ,
381
+ paramtype2 = " flowingliquid" ,
382
+ tiles = {
383
+ " testnodes_liquidflowing_r" .. r .. " .png^[colorize:#FFFFFF:100" ,
384
+ },
385
+ special_tiles = {
386
+ {name = " testnodes_liquidflowing_r" .. r .. " .png^[colorize:#FFFFFF:100" , backface_culling = false },
387
+ {name = " testnodes_liquidflowing_r" .. r .. " .png^[colorize:#FFFFFF:100" , backface_culling = false },
388
+ },
389
+ use_texture_alpha = true ,
390
+
391
+
392
+ walkable = false ,
393
+ liquid_range = r ,
394
+ liquid_viscosity = 0 ,
395
+ liquid_alternative_flowing = " testnodes:liquid_flowing_" .. r ,
396
+ liquid_alternative_source = " testnodes:liquid_" .. r ,
397
+ groups = { dig_immediate = 3 },
398
+ })
388
399
400
+ end
389
401
390
- walkable = false ,
391
- liquidtype = " flowing" ,
392
- liquid_range = 1 ,
393
- liquid_viscosity = 0 ,
394
- liquid_alternative_flowing = " testnodes:liquid_flowing" ,
395
- liquid_alternative_source = " testnodes:liquid" ,
396
- groups = { dig_immediate = 3 },
397
- })
402
+ -- Waving liquid test (drawtype only)
398
403
minetest .register_node (" testnodes:liquid_waving" , {
399
404
description = S (" Waving Source Liquid Drawtype Test Node" ),
400
405
drawtype = " liquid" ,
401
406
paramtype = " light" ,
402
407
tiles = {
403
- " testnodes_liquidsource.png^[brighten " ,
408
+ " testnodes_liquidsource.png^[colorize:#0000FF:127 " ,
404
409
},
405
410
special_tiles = {
406
- {name = " testnodes_liquidsource.png^[brighten " , backface_culling = false },
407
- {name = " testnodes_liquidsource.png^[brighten " , backface_culling = true },
411
+ {name = " testnodes_liquidsource.png^[colorize:#0000FF:127 " , backface_culling = false },
412
+ {name = " testnodes_liquidsource.png^[colorize:#0000FF:127 " , backface_culling = true },
408
413
},
409
414
use_texture_alpha = true ,
410
415
waving = 3 ,
411
416
412
417
413
418
walkable = false ,
414
- liquidtype = " source" ,
415
419
liquid_range = 1 ,
416
420
liquid_viscosity = 0 ,
417
421
liquid_alternative_flowing = " testnodes:liquid_flowing_waving" ,
@@ -424,27 +428,24 @@ minetest.register_node("testnodes:liquid_flowing_waving", {
424
428
paramtype = " light" ,
425
429
paramtype2 = " flowingliquid" ,
426
430
tiles = {
427
- " testnodes_liquidflowing.png^[brighten " ,
431
+ " testnodes_liquidflowing.png^[colorize:#0000FF:127 " ,
428
432
},
429
433
special_tiles = {
430
- {name = " testnodes_liquidflowing.png^[brighten " , backface_culling = false },
431
- {name = " testnodes_liquidflowing.png^[brighten " , backface_culling = false },
434
+ {name = " testnodes_liquidflowing.png^[colorize:#0000FF:127 " , backface_culling = false },
435
+ {name = " testnodes_liquidflowing.png^[colorize:#0000FF:127 " , backface_culling = false },
432
436
},
433
437
use_texture_alpha = true ,
434
438
waving = 3 ,
435
439
436
440
437
441
walkable = false ,
438
- liquidtype = " flowing" ,
439
442
liquid_range = 1 ,
440
443
liquid_viscosity = 0 ,
441
444
liquid_alternative_flowing = " testnodes:liquid_flowing_waving" ,
442
445
liquid_alternative_source = " testnodes:liquid_waving" ,
443
446
groups = { dig_immediate = 3 },
444
447
})
445
448
446
-
447
-
448
449
-- Invisible node
449
450
minetest .register_node (" testnodes:airlike" , {
450
451
description = S (" Airlike Drawtype Test Node" ),
0 commit comments