1
0
Fork 0

Pixel perfection liquid textures

objects
Wuzzy 2017-07-17 12:20:15 +02:00
parent 82a1fcc846
commit ba0d15608e
10 changed files with 17 additions and 16 deletions

View File

@ -7,6 +7,7 @@
--water
local water_tex = "default_water_source_animated.png^[verticalframe:16:0"
minetest.register_entity("drippingwater:drop_water", {
hp_max = 1,
physical = true,
@ -14,7 +15,7 @@ minetest.register_entity("drippingwater:drop_water", {
collisionbox = {0,0,0,0,0,0},
visual = "cube",
visual_size = {x=0.05, y=0.1},
textures = {"default_water.png","default_water.png","default_water.png","default_water.png", "default_water.png", "default_water.png"},
textures = {water_tex, water_tex, water_tex, water_tex, water_tex, water_tex},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
@ -44,6 +45,7 @@ minetest.register_entity("drippingwater:drop_water", {
--lava
local lava_tex = "default_lava_source_animated.png^[verticalframe:16:0"
minetest.register_entity("drippingwater:drop_lava", {
hp_max = 1,
physical = true,
@ -51,7 +53,7 @@ minetest.register_entity("drippingwater:drop_lava", {
collisionbox = {0,0,0,0,0,0},
visual = "cube",
visual_size = {x=0.05, y=0.1},
textures = {"default_lava.png","default_lava.png","default_lava.png","default_lava.png", "default_lava.png", "default_lava.png"},
textures = {lava_tex, lava_tex, lava_tex, lava_tex, lava_tex, lava_tex},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},

View File

@ -1,2 +1,3 @@
mcl_core
mcl_sounds
doc?

View File

@ -78,7 +78,7 @@ local register_filled_cauldron = function(water_level, description)
collision_box = cauldron_nodeboxes[0],
selection_box = { type = "regular" },
tiles = {
"default_water.png^mcl_cauldrons_cauldron_top.png",
"(default_water_source_animated.png^[verticalframe:16:0)^mcl_cauldrons_cauldron_top.png",
"mcl_cauldrons_cauldron_inner.png^mcl_cauldrons_cauldron_bottom.png",
"mcl_cauldrons_cauldron_side.png"
},

View File

@ -7,19 +7,19 @@ local LAVA_VISC = 7
minetest.register_node("mcl_core:water_flowing", {
description = "Flowing Water",
_doc_items_create_entry = false,
inventory_image = minetest.inventorycube("default_water.png"),
wield_image = "default_water_flowing_animated.png^[verticalframe:64:0",
drawtype = "flowingliquid",
tiles = {name="default_water_flowing_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=2.0}},
tiles = {"default_water_flowing_animated.png^[verticalframe:64:0"},
special_tiles = {
{
image="default_water_flowing_animated.png",
backface_culling=false,
animation={type="vertical_frames", aspect_w=64, aspect_h=64, length=2.0}
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
},
{
image="default_water_flowing_animated.png",
backface_culling=true,
animation={type="vertical_frames", aspect_w=64, aspect_h=64, length=2.0}
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
},
},
sounds = mcl_sounds.node_sound_water_defaults(table),
@ -54,16 +54,15 @@ Water interacts with lava in various ways:
When flowing water touches flowing lava either from above or horizontally, the lava turns into cobblestone.
When water is directly below lava, the water turns into stone.]],
_doc_items_hidden = false,
inventory_image = minetest.inventorycube("default_water.png"),
drawtype = "liquid",
tiles = {
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=5.0}}
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
},
special_tiles = {
-- New-style water source material (mostly unused)
{
name="default_water_source_animated.png",
animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=5.0},
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0},
backface_culling = false,
}
},
@ -92,19 +91,19 @@ Water interacts with lava in various ways:
minetest.register_node("mcl_core:lava_flowing", {
description = "Flowing Lava",
_doc_items_create_entry = false,
inventory_image = minetest.inventorycube("default_lava.png"),
wield_image = "default_lava_flowing_animated.png^[verticalframe:64:0",
drawtype = "flowingliquid",
tiles = {"default_lava.png"},
tiles = {"default_lava_flowing_animated.png^[verticalframe:64:0"},
special_tiles = {
{
image="default_lava_flowing_animated.png",
backface_culling=false,
animation={type="vertical_frames", aspect_w=64, aspect_h=64, length=3.3}
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=6.6}
},
{
image="default_lava_flowing_animated.png",
backface_culling=true,
animation={type="vertical_frames", aspect_w=64, aspect_h=64, length=3.3}
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=6.6}
},
},
paramtype = "light",
@ -145,7 +144,6 @@ Lava interacts with water various ways:
When still lava is directly below or horizontally next to water, the lava turns into obsidian.
When flowing water touches flowing lava either from above or horizontally, the lava turns into cobblestone.
When lava is directly above water, the water turns into stone.]],
inventory_image = minetest.inventorycube("default_lava.png"),
drawtype = "liquid",
tiles = {
{name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
@ -154,7 +152,7 @@ Lava interacts with water various ways:
-- New-style lava source material (mostly unused)
{
name="default_lava_source_animated.png",
animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=3.0},
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0},
backface_culling = false,
}
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 990 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 438 B