portalgun/scripts/toxicwater.lua

143 lines
4.2 KiB
Lua
Raw Normal View History

2022-07-12 10:20:50 +02:00
minetest.register_node(
"portalgun:toxwater_1",
{
description = "Toxic water",
drawtype = "liquid",
2022-08-14 16:00:16 +02:00
waving = 3,
tiles = {
{
name = "portal_toxwater_anim.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
{
name = "portal_toxwater_anim.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
},
special_tiles = {
{
name = "portal_toxwater_anim.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
{
name = "portal_toxwater_anim.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
},
2022-08-13 09:14:23 +02:00
use_texture_alpha = "blend",
2022-07-12 10:20:50 +02:00
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
damage_per_second = 20,
liquidtype = "source",
liquid_alternative_flowing = "portalgun:toxwater_2",
liquid_alternative_source = "portalgun:toxwater_1",
liquid_viscosity = 2,
liquid_renewable = false,
liquid_range = 3,
post_effect_color = {a = 200, r = 119, g = 70, b = 16},
groups = {water = 3, liquid = 3}
}
)
minetest.register_node(
"portalgun:toxwater_2",
{
description = "Toxic water 2",
drawtype = "flowingliquid",
2022-08-14 16:00:16 +02:00
waving = 3,
tiles = {
{
name = "portal_toxwater_anim.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
{
name = "portal_toxwater_anim.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
},
2022-07-12 10:20:50 +02:00
special_tiles = {
2022-08-14 16:00:16 +02:00
{
name = "portal_toxwater_anim.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
{
name = "portal_toxwater_anim.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 8.0,
},
},
2022-07-12 10:20:50 +02:00
},
2022-08-13 09:14:23 +02:00
use_texture_alpha = "blend",
2022-07-12 10:20:50 +02:00
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
damage_per_second = 4,
liquidtype = "flowing",
liquid_alternative_flowing = "portalgun:toxwater_2",
liquid_alternative_source = "portalgun:toxwater_1",
liquid_viscosity = 2,
liquid_renewable = false,
liquid_range = 3,
post_effect_color = {a = 200, r = 119, g = 70, b = 16},
groups = {water = 3, liquid = 3, not_in_creative_inventory = 1}
}
)