Commit bc28471d authored by Milan's avatar Milan

use regular syntax for water_poison for compatibility

parent a9ed1671
Pipeline #979 failed with stages
......@@ -222,28 +222,94 @@ newnode.groups = {snappy = 3, flammable = 2}
minetest.register_node("loud_walking:leaves_black", newnode)
newnode = loud_walking.clone_node("default:water_source")
newnode.description = "Poisonous Water"
newnode.groups.poison = 3
--newnode.light_source = 6
newnode.liquid_alternative_flowing = "loud_walking:water_poison_flowing"
newnode.liquid_alternative_source = "loud_walking:water_poison_source"
newnode.post_effect_color = {a = 103, r = 108, g = 128, b = 64}
newnode.special_tiles[1].name = "loud_walking_water_poison_source_animated.png"
newnode.tiles[1].name = "loud_walking_water_poison_source_animated.png"
minetest.register_node("loud_walking:water_poison_source", newnode)
newnode = loud_walking.clone_node("default:water_flowing")
newnode.description = "Poisonous Water"
newnode.groups.poison = 3
--newnode.light_source = 6
newnode.liquid_alternative_flowing = "loud_walking:water_poison_flowing"
newnode.liquid_alternative_source = "loud_walking:water_poison_source"
newnode.post_effect_color = {a = 103, r = 108, g = 128, b = 64}
newnode.special_tiles[1].name = "loud_walking_water_poison_flowing_animated.png"
newnode.tiles[1] = "loud_walking_water_poison.png"
minetest.register_node("loud_walking:water_poison_flowing", newnode)
minetest.register_node("loud_walking:water_poison_source", {
description = "Poisonous Water",
drawtype = "liquid",
tiles = {
{
name = "loud_walking_water_poison_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
{
name = "loud_walking_water_poison_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "loud_walking:water_poison_flowing",
liquid_alternative_source = "loud_walking:water_poison_source",
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 108, g = 128, b = 64},
groups = {water = 3, liquid = 3, cools_lava = 1, poison = 4},
sounds = default.node_sound_water_defaults(),
})
minetest.register_node("loud_walking:water_poison_flowing", {
description = "Poisonous Water",
drawtype = "flowingliquid",
tiles = {"loud_walking_water_poison.png"},
special_tiles = {
{
name = "loud_walking_water_poison_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "loud_walking_water_poison_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "loud_walking:water_poison_flowing",
liquid_alternative_source = "loud_walking:water_poison_source",
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 108, g = 128, b = 64},
groups = {water = 3, liquid = 3, not_in_creative_inventory = 1,
cools_lava = 1, poison = 3},
sounds = default.node_sound_water_defaults(),
})
minetest.register_node("loud_walking:basalt", {
description = "Basalt",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment