forked from Kimapr/nodecore-skyblock
Fix water
This commit is contained in:
parent
e23461dac1
commit
8b06b97ac1
|
@ -50,21 +50,37 @@ local function regliquid(def)
|
||||||
regterrain(t)
|
regterrain(t)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function anim(name, len)
|
||||||
|
return {
|
||||||
|
name = name,
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = len
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
regliquid({
|
regliquid({
|
||||||
description = "HM Water",
|
description = "HM Water",
|
||||||
mapgen = {},
|
mapgen = {},
|
||||||
tiles = {"nc_terrain_water.png"},
|
tiles = {anim("nc_terrain_water.png", 4)},
|
||||||
|
special_tiles = {
|
||||||
|
anim("nc_terrain_water_flow.png", 4),
|
||||||
|
anim("nc_terrain_water_flow.png", 4)
|
||||||
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
liquid_viscosity = 1,
|
liquid_viscosity = 1,
|
||||||
liquid_renewable = false,
|
liquid_renewable = true,
|
||||||
alpha = 160,
|
alpha = 192,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drowning = 1,
|
drowning = 1,
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = { coolant = 1, water = 2, moist = 2 },
|
groups = {coolant = 1, water = 2, moist = 2},
|
||||||
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
||||||
sounds = nodecore.sounds("nc_terrain_watery")
|
sounds = nodecore.sounds("nc_terrain_watery")
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue