78 lines
2.3 KiB
Lua
78 lines
2.3 KiB
Lua
-- Imports & Exports -------------------------------------------------------------------------------
|
|
|
|
local core = _G.core
|
|
local jvmi = _G.jvmi
|
|
|
|
local C = jvmi.C
|
|
local S = jvmi.mods.nodes.S
|
|
|
|
|
|
-- Script ------------------------------------------------------------------------------------------
|
|
|
|
core.register_node("jvmi_nodes:water_flowing", {
|
|
description = S("Flowing Water"),
|
|
drawtype = C.DRAW_TYPE.FLOWING_LIQUID,
|
|
tiles = {{
|
|
name = "jvmi_nodes_water_flowing.png",
|
|
animation = {
|
|
type = C.ANIMATION_TYPE.VERTICAL_FRAMES,
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 5.0,
|
|
},
|
|
}},
|
|
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
|
|
is_ground_content = false,
|
|
use_texture_alpha = "blend",
|
|
paramtype = "light",
|
|
paramtype2 = "flowingliquid",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
drop = "",
|
|
drowning = 4,
|
|
liquidtype = C.LIQUID_TYPE.FLOWING,
|
|
liquid_alternative_flowing = "jvmi_nodes:water_flowing",
|
|
liquid_alternative_source = "jvmi_nodes:water_source",
|
|
liquid_viscosity = C.VISCOSITY.XX_FAST,
|
|
liquid_range = 7,
|
|
waving = C.WAVING.LIQUID_LIKE,
|
|
post_effect_color = "#033C5CCC",
|
|
groups = {},
|
|
})
|
|
|
|
core.register_node("jvmi_nodes:water_source", {
|
|
description = S("Water"),
|
|
drawtype = "liquid",
|
|
waving = C.WAVING.LIQUID_LIKE,
|
|
tiles = {{
|
|
name = "jvmi_nodes_water_source.png",
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 5.0,
|
|
}
|
|
}},
|
|
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
|
|
is_ground_content = false,
|
|
use_texture_alpha = C.TEXTURE_ALPHA.BLEND,
|
|
paramtype = "light",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
drop = "",
|
|
drowning = 4,
|
|
liquidtype = "source",
|
|
liquid_alternative_flowing = "jvmi_nodes:water_flowing",
|
|
liquid_alternative_source = "jvmi_nodes:water_source",
|
|
liquid_viscosity = C.VISCOSITY.XX_FAST,
|
|
liquid_renewable = true,
|
|
liquid_range = 7,
|
|
post_effect_color = "#033C5CCC",
|
|
groups = { },
|
|
})
|
|
core.register_alias("mapgen_water_source", "jvmi_nodes:water_source")
|