Compare commits

...

2 Commits

4 changed files with 172 additions and 95 deletions

View File

@ -190,72 +190,143 @@ minetest.register_node("amogus_blocks:wood", {
groups = {choppy = 3, flammable = 3, wood = 1}, 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", drawtype = "liquid",
waving = 3,
tiles = { tiles = {
{ {
name = "water.png", name = "water.png",
--animation = { backface_culling = false,
-- type = "vertical_frames", },
-- aspect_w = 16, {
-- aspect_h = 16, name = "water.png",
-- length = 2.0, 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) use_texture_alpha = "blend",
-- {
-- 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", paramtype = "light",
walkable = false, walkable = false,
pointable = false, pointable = false,
diggable = false, diggable = false,
--buildable_to = true, buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1, drowning = 1,
liquidtype = "source", liquidtype = "source",
--liquid_alternative_flowing = "amogus_blocks:water_flowing", liquid_alternative_flowing = "amogus_blocks:water_flowing",
--liquid_alternative_source = "amogus_blocks:water_source", liquid_alternative_source = "amogus_blocks:water_source",
liquid_viscosity = 1, liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90}, 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", { minetest.register_node("amogus_blocks:dirt", {
description = "Dirt", description = "Dirt",
tiles = {"d.png"}, tiles = {"d.png"},
groups = {crumbly = 3}, groups = {crumbly = 3},
drop = { drop = {
max_items = 2, max_items = 2,
@ -414,12 +485,12 @@ minetest.register_node("amogus_blocks:grass_tall", {
groups = {snappy=3,flammable=2,flower=1}, groups = {snappy=3,flammable=2,flower=1},
--sounds = default.node_sound_leaves_defaults(), --sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, 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", description = "Grass plant",
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"purple_grass_tall.png"}, tiles = {"purple_grass_tall.png"},
@ -431,11 +502,11 @@ minetest.register_node("amogus_blocks:grass_tall", {
groups = {snappy=3,flammable=2,flower=1}, groups = {snappy=3,flammable=2,flower=1},
--sounds = default.node_sound_leaves_defaults(), --sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, 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", description = "amogus flower",
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"amog_flower.png"}, tiles = {"amog_flower.png"},
@ -448,11 +519,11 @@ minetest.register_node("amogus_blocks:grass_tall", {
groups = {snappy=3,flammable=2,flower=1}, groups = {snappy=3,flammable=2,flower=1},
--sounds = default.node_sound_leaves_defaults(), --sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, 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", description = "red flower",
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"flower.png"}, tiles = {"flower.png"},
@ -464,11 +535,11 @@ minetest.register_node("amogus_blocks:grass_tall", {
groups = {snappy=3,flammable=2,flower=1}, groups = {snappy=3,flammable=2,flower=1},
--sounds = default.node_sound_leaves_defaults(), --sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, 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", description = "yellow flower",
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"flower_2.png"}, tiles = {"flower_2.png"},
@ -480,12 +551,12 @@ minetest.register_node("amogus_blocks:grass_tall", {
groups = {snappy=3,flammable=2,flower=1}, groups = {snappy=3,flammable=2,flower=1},
--sounds = default.node_sound_leaves_defaults(), --sounds = default.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
}, },
}) })
minetest.register_node("amogus_blocks:obsusian", { minetest.register_node("amogus_blocks:obsusian", {
description = "obSUSian", description = "obSUSian",
tiles = {"obsusian.png"}, tiles = {"obsusian.png"},

View File

@ -120,7 +120,7 @@ local entity = {
pos.z = pos.z + dir_sin pos.z = pos.z + dir_sin
local bnode = minetest.get_node(pos) local bnode = minetest.get_node(pos)
if bnode.name == "air" or bnode.name == "amogus_blocks:water" then if bnode.name == "air" or bnode.name == "amogus_blocks:water_source" or bnode.name == "amogus_blocks:water_flowing" then
self.block_lastly_in_front = false self.block_lastly_in_front = false
else else
if self.block_lastly_in_front == false then if self.block_lastly_in_front == false then

View File

@ -281,7 +281,7 @@ local entity = {
pos.z = pos.z + dir_sin pos.z = pos.z + dir_sin
local bnode = minetest.get_node(pos) local bnode = minetest.get_node(pos)
if bnode.name == "air" or bnode.name == "amogus_blocks:water" then if bnode.name == "air" or bnode.name == "amogus_blocks:water_source" or bnode.name == "amogus_blocks:water_flowing" then
self.block_lastly_in_front = false self.block_lastly_in_front = false
else else
if self.block_lastly_in_front == false then if self.block_lastly_in_front == false then

View File

@ -1,7 +1,8 @@
minetest.register_alias("mapgen_stone", "amogus_blocks:stone") minetest.register_alias("mapgen_stone", "amogus_blocks:stone")
minetest.register_alias("mapgen_dirt", "amogus_blocks:dirt") minetest.register_alias("mapgen_dirt", "amogus_blocks:dirt")
minetest.register_alias("mapgen_water_source", "amogus_blocks:water") minetest.register_alias("mapgen_water_source", "amogus_blocks:water_source")
minetest.register_biome({ minetest.register_biome({
name = "amogus_beach", name = "amogus_beach",
node_top = "amogus_blocks:sand", node_top = "amogus_blocks:sand",
@ -9,10 +10,12 @@ minetest.register_biome({
node_filler = "amogus_blocks:sand", node_filler = "amogus_blocks:sand",
depth_filler = 3, depth_filler = 3,
node_stone = "amogus_blocks:stone", node_stone = "amogus_blocks:stone",
node_water_top = "amogus_blocks:water",
depth_water_top = 1, --node_water_top = "amogus_blocks:water",
node_water = "amogus_blocks:water", --depth_water_top = 1,
node_river_water = "amogus_blocks:water", node_water = "amogus_blocks:amogus_blocks:water_source",
--node_river_water = "amogus_blocks:water",
y_max = 6, y_max = 6,
y_min = -5, y_min = -5,
heat_point = 50, heat_point = 50,
@ -26,10 +29,12 @@ minetest.register_biome({
node_filler = "amogus_blocks:dirt", node_filler = "amogus_blocks:dirt",
depth_filler = 1, depth_filler = 1,
node_stone = "amogus_blocks:stone", node_stone = "amogus_blocks:stone",
node_water_top = "amogus_blocks:water",
depth_water_top = 1, --node_water_top = "amogus_blocks:water",
node_water = "amogus_blocks:water", --depth_water_top = 1,
node_river_water = "amogus_blocks:water", node_water = "amogus_blocks:amogus_blocks:water_source",
--node_river_water = "amogus_blocks:water",
y_max = 31000, y_max = 31000,
y_min = 1, y_min = 1,
heat_point = 100, heat_point = 100,
@ -43,10 +48,12 @@ minetest.register_biome({
node_filler = "amogus_blocks:dirt", node_filler = "amogus_blocks:dirt",
depth_filler = 1, depth_filler = 1,
node_stone = "amogus_blocks:stone", node_stone = "amogus_blocks:stone",
node_water_top = "amogus_blocks:water",
depth_water_top = 1, --node_water_top = "amogus_blocks:water",
node_water = "amogus_blocks:water", --depth_water_top = 1,
node_river_water = "amogus_blocks:water", node_water = "amogus_blocks:amogus_blocks:water_source",
--node_river_water = "amogus_blocks:water",
y_max = 31000, y_max = 31000,
y_min = 1, y_min = 1,
heat_point = 50, heat_point = 50,
@ -514,16 +521,15 @@ minetest.register_decoration({
schematic = "/schematics/STATUE_GIANT.mts", schematic = "/schematics/STATUE_GIANT.mts",
}) })
minetest.register_on_generated(function(minp, maxp, seed) --minetest.register_on_generated(function(minp, maxp, seed)
for x = minp.x, maxp.x do -- for x = minp.x, maxp.x do
for y = minp.y, maxp.y do -- for y = minp.y, maxp.y do
for z = minp.z, maxp.z do -- for z = minp.z, maxp.z do
local p = {x=x, y=y, z=z} -- local p = {x=x, y=y, z=z}
if minetest.get_node(p).name == "default:water_source" then -- if minetest.get_node(p).name == "default:water_source" then
minetest.set_node(p, {name="default:water_source", param2=0}) -- minetest.set_node(p, {name="default:water_source", param2=0})
end -- end
end -- end
end -- end
end -- end
end) -- end)