fixed massive amount of water errors (only 3 sussy error messages left) and now water can flow
This commit is contained in:
@@ -190,72 +190,143 @@ minetest.register_node("amogus_blocks:wood", {
|
||||
groups = {choppy = 3, flammable = 3, wood = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("amogus_blocks:water", {
|
||||
description = "Water",
|
||||
|
||||
-- OLD water. not flowing. throwing massive amounts of errors.
|
||||
|
||||
--minetest.register_node("amogus_blocks:water", {
|
||||
-- description = "Water",
|
||||
-- drawtype = "liquid",
|
||||
-- tiles = {
|
||||
-- {
|
||||
-- name = "water.png",
|
||||
-- --animation = {
|
||||
-- -- type = "vertical_frames",
|
||||
-- -- aspect_w = 16,
|
||||
-- -- aspect_h = 16,
|
||||
-- -- length = 2.0,
|
||||
-- --},
|
||||
-- },
|
||||
-- --{
|
||||
-- -- name = "water.png",
|
||||
-- -- animation = {
|
||||
-- -- type = "vertical_frames",
|
||||
-- -- aspect_w = 16,
|
||||
-- -- aspect_h = 16,
|
||||
-- -- length = 2.0,
|
||||
-- -- },
|
||||
-- --},
|
||||
-- },
|
||||
-- --special_tiles = {
|
||||
-- -- -- New-style water source material (mostly unused)
|
||||
-- -- {
|
||||
-- -- name = "water.png",
|
||||
-- -- backface_culling = false,
|
||||
-- -- animation = {
|
||||
-- -- type = "vertical_frames",
|
||||
-- -- aspect_w = 16,
|
||||
-- -- aspect_h = 16,
|
||||
-- -- length = 2.0,
|
||||
-- -- },
|
||||
-- -- },
|
||||
-- -- -- New-style flowing water material (mostly unused)
|
||||
-- -- {
|
||||
-- -- name = "water.png",
|
||||
-- -- backface_culling = true,
|
||||
-- -- animation = {
|
||||
-- -- type = "vertical_frames",
|
||||
-- -- aspect_w = 16,
|
||||
-- -- aspect_h = 16,
|
||||
-- -- length = 0.8,
|
||||
-- -- },
|
||||
-- -- },
|
||||
-- --},
|
||||
-- alpha = 160,
|
||||
-- paramtype = "light",
|
||||
-- walkable = false,
|
||||
-- pointable = false,
|
||||
-- diggable = false,
|
||||
-- --buildable_to = true,
|
||||
-- drowning = 1,
|
||||
-- liquidtype = "source",
|
||||
-- --liquid_alternative_flowing = "amogus_blocks:water_flowing",
|
||||
-- --liquid_alternative_source = "amogus_blocks:water_source",
|
||||
-- liquid_viscosity = 1,
|
||||
-- post_effect_color = {a = 103, r = 30, g = 60, b = 90},
|
||||
-- groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
||||
--})
|
||||
|
||||
minetest.register_node("amogus_blocks:water_source", {
|
||||
description = "Water Source",
|
||||
drawtype = "liquid",
|
||||
waving = 3,
|
||||
|
||||
tiles = {
|
||||
{
|
||||
name = "water.png",
|
||||
--animation = {
|
||||
-- type = "vertical_frames",
|
||||
-- aspect_w = 16,
|
||||
-- aspect_h = 16,
|
||||
-- length = 2.0,
|
||||
--},
|
||||
backface_culling = false,
|
||||
},
|
||||
{
|
||||
name = "water.png",
|
||||
backface_culling = true,
|
||||
},
|
||||
--{
|
||||
-- name = "water.png",
|
||||
-- animation = {
|
||||
-- type = "vertical_frames",
|
||||
-- aspect_w = 16,
|
||||
-- aspect_h = 16,
|
||||
-- length = 2.0,
|
||||
-- },
|
||||
--},
|
||||
},
|
||||
--special_tiles = {
|
||||
-- -- New-style water source material (mostly unused)
|
||||
-- {
|
||||
-- name = "water.png",
|
||||
-- backface_culling = false,
|
||||
-- animation = {
|
||||
-- type = "vertical_frames",
|
||||
-- aspect_w = 16,
|
||||
-- aspect_h = 16,
|
||||
-- length = 2.0,
|
||||
-- },
|
||||
-- },
|
||||
-- -- New-style flowing water material (mostly unused)
|
||||
-- {
|
||||
-- name = "water.png",
|
||||
-- backface_culling = true,
|
||||
-- animation = {
|
||||
-- type = "vertical_frames",
|
||||
-- aspect_w = 16,
|
||||
-- aspect_h = 16,
|
||||
-- length = 0.8,
|
||||
-- },
|
||||
-- },
|
||||
--},
|
||||
alpha = 160,
|
||||
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
--buildable_to = true,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
drowning = 1,
|
||||
liquidtype = "source",
|
||||
--liquid_alternative_flowing = "amogus_blocks:water_flowing",
|
||||
--liquid_alternative_source = "amogus_blocks:water_source",
|
||||
liquid_alternative_flowing = "amogus_blocks:water_flowing",
|
||||
liquid_alternative_source = "amogus_blocks:water_source",
|
||||
liquid_viscosity = 1,
|
||||
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
|
||||
groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
||||
groups = {water = 3, liquid = 3, cools_lava = 1}
|
||||
})
|
||||
|
||||
minetest.register_node("amogus_blocks:water_flowing", {
|
||||
description = "Flowing Water",
|
||||
drawtype = "flowingliquid",
|
||||
waving = 3,
|
||||
|
||||
tiles = {"water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
name = "water.png",
|
||||
backface_culling = false,
|
||||
},
|
||||
{
|
||||
name = "water.png",
|
||||
backface_culling = true,
|
||||
},
|
||||
},
|
||||
|
||||
use_texture_alpha = "blend",
|
||||
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 = "amogus_blocks:water_flowing",
|
||||
liquid_alternative_source = "amogus_blocks:water_source",
|
||||
liquid_viscosity = 1,
|
||||
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
|
||||
groups = {water = 3, liquid = 3, not_in_creative_inventory = 1, cools_lava = 1}
|
||||
})
|
||||
|
||||
minetest.register_node("amogus_blocks:dirt", {
|
||||
description = "Dirt",
|
||||
tiles = {"d.png"},
|
||||
groups = {crumbly = 3},
|
||||
groups = {crumbly = 3},
|
||||
|
||||
drop = {
|
||||
max_items = 2,
|
||||
@@ -414,12 +485,12 @@ minetest.register_node("amogus_blocks:grass_tall", {
|
||||
groups = {snappy=3,flammable=2,flower=1},
|
||||
--sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
|
||||
})
|
||||
minetest.register_node("amogus_blocks:purple_grass_tall", {
|
||||
})
|
||||
minetest.register_node("amogus_blocks:purple_grass_tall", {
|
||||
description = "Grass plant",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"purple_grass_tall.png"},
|
||||
@@ -431,11 +502,11 @@ minetest.register_node("amogus_blocks:grass_tall", {
|
||||
groups = {snappy=3,flammable=2,flower=1},
|
||||
--sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
minetest.register_node("amogus_blocks:amogflower", {
|
||||
})
|
||||
minetest.register_node("amogus_blocks:amogflower", {
|
||||
description = "amogus flower",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"amog_flower.png"},
|
||||
@@ -448,11 +519,11 @@ minetest.register_node("amogus_blocks:grass_tall", {
|
||||
groups = {snappy=3,flammable=2,flower=1},
|
||||
--sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
minetest.register_node("amogus_blocks:redflower", {
|
||||
})
|
||||
minetest.register_node("amogus_blocks:redflower", {
|
||||
description = "red flower",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"flower.png"},
|
||||
@@ -464,11 +535,11 @@ minetest.register_node("amogus_blocks:grass_tall", {
|
||||
groups = {snappy=3,flammable=2,flower=1},
|
||||
--sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
minetest.register_node("amogus_blocks:yellowflower", {
|
||||
})
|
||||
minetest.register_node("amogus_blocks:yellowflower", {
|
||||
description = "yellow flower",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"flower_2.png"},
|
||||
@@ -480,12 +551,12 @@ minetest.register_node("amogus_blocks:grass_tall", {
|
||||
groups = {snappy=3,flammable=2,flower=1},
|
||||
--sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_node("amogus_blocks:obsusian", {
|
||||
description = "obSUSian",
|
||||
tiles = {"obsusian.png"},
|
||||
|
||||
Reference in New Issue
Block a user