mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
Fix fluids, add animated H. Liquid, add lava back
Hydroponic liquid and water didn't flow into vacuum - fixed. Lava has been put back into the game. Added animated textured images for hydroponic liquid.
This commit is contained in:
parent
dd7e548864
commit
60f4f2d99e
4 changed files with 13 additions and 11 deletions
|
@ -49,7 +49,7 @@ minetest.register_biome({
|
||||||
|
|
||||||
-- Aliases
|
-- Aliases
|
||||||
|
|
||||||
minetest.register_alias("mapgen_lava_source", "moontest:hlsource")
|
minetest.register_alias("mapgen_lava_source", "default:lava_source")
|
||||||
minetest.register_alias("mapgen_water_source", "moontest:hlsource")
|
minetest.register_alias("mapgen_water_source", "moontest:hlsource")
|
||||||
minetest.register_alias("mapgen_stone", "moontest:stone")
|
minetest.register_alias("mapgen_stone", "moontest:stone")
|
||||||
minetest.register_alias("mapgen_dirt", "moontest:dust")
|
minetest.register_alias("mapgen_dirt", "moontest:dust")
|
||||||
|
@ -129,9 +129,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
vm:write_to_map(data)
|
vm:write_to_map(data)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--make lava delete vacuum nodes nearby so as to allow flowing
|
--make liquid delete vacuum nodes nearby so as to allow flowing
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:lava"},
|
nodenames = {"group:liquid"},
|
||||||
neighbors = {"moontest:vacuum"},
|
neighbors = {"moontest:vacuum"},
|
||||||
interval = 1.0,
|
interval = 1.0,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
|
|
|
@ -108,17 +108,17 @@ minetest.register_node("moontest:waterice", {
|
||||||
|
|
||||||
minetest.register_node("moontest:hlflowing", {
|
minetest.register_node("moontest:hlflowing", {
|
||||||
description = "Flowing Hydroponic Liquid",
|
description = "Flowing Hydroponic Liquid",
|
||||||
inventory_image = minetest.inventorycube("moontest_hl.png"),
|
inventory_image = minetest.inventorycube("moontest_hl2.png"),
|
||||||
drawtype = "flowingliquid",
|
drawtype = "flowingliquid",
|
||||||
tiles = {"moontest_hl.png"},
|
tiles = {"moontest_hl2.png"},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
{
|
{
|
||||||
image="moontest_hlflowing_animated.png",
|
image="moontest_hlflowing_animated2.png",
|
||||||
backface_culling=false,
|
backface_culling=false,
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image="moontest_hlflowing_animated.png",
|
image="moontest_hlflowing_animated2.png",
|
||||||
backface_culling=true,
|
backface_culling=true,
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
||||||
},
|
},
|
||||||
|
@ -139,17 +139,19 @@ minetest.register_node("moontest:hlflowing", {
|
||||||
|
|
||||||
minetest.register_node("moontest:hlsource", {
|
minetest.register_node("moontest:hlsource", {
|
||||||
description = "Hydroponic Liquid Source",
|
description = "Hydroponic Liquid Source",
|
||||||
inventory_image = minetest.inventorycube("moontest_hl.png"),
|
inventory_image = minetest.inventorycube("moontest_hl2.png"),
|
||||||
drawtype = "liquid",
|
drawtype = "liquid",
|
||||||
tiles = {"moontest_hl.png"},
|
tiles = {
|
||||||
|
{name="moontest_hlflowing_animated2.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}
|
||||||
|
},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
{
|
{
|
||||||
image="moontest_hlflowing_animated.png",
|
image="moontest_hlflowing_animated2.png",
|
||||||
backface_culling=false,
|
backface_culling=false,
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image="moontest_hlflowing_animated.png",
|
image="moontest_hlflowing_animated2.png",
|
||||||
backface_culling=true,
|
backface_culling=true,
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
|
||||||
},
|
},
|
||||||
|
|
BIN
mods/moontest/textures/moontest_hl2.png
Normal file
BIN
mods/moontest/textures/moontest_hl2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 500 B |
BIN
mods/moontest/textures/moontest_hlflowing_animated2.png
Normal file
BIN
mods/moontest/textures/moontest_hlflowing_animated2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
Loading…
Add table
Reference in a new issue