@@ -5414,6 +5414,62 @@ Used by `minetest.register_lbm`.
5414
5414
action = func(pos, node),
5415
5415
}
5416
5416
5417
+ Tile definition
5418
+ ---------------
5419
+
5420
+ * `"image.png"`
5421
+ * `{name="image.png", animation={Tile Animation definition}}`
5422
+ * `{name="image.png", backface_culling=bool, tileable_vertical=bool,
5423
+ tileable_horizontal=bool, align_style="node"/"world"/"user", scale=int}`
5424
+ * backface culling enabled by default for most nodes
5425
+ * tileable flags are info for shaders, how they should treat texture
5426
+ when displacement mapping is used.
5427
+ Directions are from the point of view of the tile texture,
5428
+ not the node it's on.
5429
+ * align style determines whether the texture will be rotated with the node
5430
+ or kept aligned with its surroundings. "user" means that client
5431
+ setting will be used, similar to `glasslike_framed_optional`.
5432
+ Note: supported by solid nodes and nodeboxes only.
5433
+ * scale is used to make texture span several (exactly `scale`) nodes,
5434
+ instead of just one, in each direction. Works for world-aligned
5435
+ textures only.
5436
+ Note that as the effect is applied on per-mapblock basis, `16` should
5437
+ be equally divisible by `scale` or you may get wrong results.
5438
+ * `{name="image.png", color=ColorSpec}`
5439
+ * the texture's color will be multiplied with this color.
5440
+ * the tile's color overrides the owning node's color in all cases.
5441
+ * deprecated, yet still supported field names:
5442
+ * `image` (name)
5443
+
5444
+ Tile animation definition
5445
+ -------------------------
5446
+
5447
+ {
5448
+ type = "vertical_frames",
5449
+
5450
+ aspect_w = 16,
5451
+ -- Width of a frame in pixels
5452
+
5453
+ aspect_h = 16,
5454
+ -- Height of a frame in pixels
5455
+
5456
+ length = 3.0,
5457
+ -- Full loop length
5458
+ }
5459
+
5460
+ {
5461
+ type = "sheet_2d",
5462
+
5463
+ frames_w = 5,
5464
+ -- Width in number of frames
5465
+
5466
+ frames_h = 3,
5467
+ -- Height in number of frames
5468
+
5469
+ frame_length = 0.5,
5470
+ -- Length of a single frame
5471
+ }
5472
+
5417
5473
Item definition
5418
5474
---------------
5419
5475
@@ -5530,62 +5586,6 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and
5530
5586
-- usage.
5531
5587
}
5532
5588
5533
- Tile definition
5534
- ---------------
5535
-
5536
- * `"image.png"`
5537
- * `{name="image.png", animation={Tile Animation definition}}`
5538
- * `{name="image.png", backface_culling=bool, tileable_vertical=bool,
5539
- tileable_horizontal=bool, align_style="node"/"world"/"user", scale=int}`
5540
- * backface culling enabled by default for most nodes
5541
- * tileable flags are info for shaders, how they should treat texture
5542
- when displacement mapping is used.
5543
- Directions are from the point of view of the tile texture,
5544
- not the node it's on.
5545
- * align style determines whether the texture will be rotated with the node
5546
- or kept aligned with its surroundings. "user" means that client
5547
- setting will be used, similar to `glasslike_framed_optional`.
5548
- Note: supported by solid nodes and nodeboxes only.
5549
- * scale is used to make texture span several (exactly `scale`) nodes,
5550
- instead of just one, in each direction. Works for world-aligned
5551
- textures only.
5552
- Note that as the effect is applied on per-mapblock basis, `16` should
5553
- be equally divisible by `scale` or you may get wrong results.
5554
- * `{name="image.png", color=ColorSpec}`
5555
- * the texture's color will be multiplied with this color.
5556
- * the tile's color overrides the owning node's color in all cases.
5557
- * deprecated, yet still supported field names:
5558
- * `image` (name)
5559
-
5560
- Tile animation definition
5561
- -------------------------
5562
-
5563
- {
5564
- type = "vertical_frames",
5565
-
5566
- aspect_w = 16,
5567
- -- Width of a frame in pixels
5568
-
5569
- aspect_h = 16,
5570
- -- Height of a frame in pixels
5571
-
5572
- length = 3.0,
5573
- -- Full loop length
5574
- }
5575
-
5576
- {
5577
- type = "sheet_2d",
5578
-
5579
- frames_w = 5,
5580
- -- Width in number of frames
5581
-
5582
- frames_h = 3,
5583
- -- Height in number of frames
5584
-
5585
- frame_length = 0.5,
5586
- -- Length of a single frame
5587
- }
5588
-
5589
5589
Node definition
5590
5590
---------------
5591
5591
0 commit comments