mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add 2D sheet animation for nodes
This commit is contained in:
parent
7057c196c4
commit
a07b032245
8 changed files with 88 additions and 27 deletions
|
@ -1044,8 +1044,11 @@ minetest.register_node("default:lava_source", {
|
|||
inventory_image = minetest.inventorycube("default_lava.png"),
|
||||
drawtype = "liquid",
|
||||
--tiles ={"default_lava.png"},
|
||||
tiles ={
|
||||
{name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
|
||||
tiles = {
|
||||
{
|
||||
name = "default_lava_source_animated.png",
|
||||
animation = {type="sheet_2d", frames_w=3, frames_h=2, frame_length=0.5}
|
||||
}
|
||||
},
|
||||
special_tiles = {
|
||||
-- New-style lava source material (mostly unused)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.1 KiB |
Loading…
Add table
Add a link
Reference in a new issue