forked from mad-star-studio/Voxelis
143 lines
No EOL
4.9 KiB
Lua
143 lines
No EOL
4.9 KiB
Lua
---------------------------------------------------------------------------
|
|
-- Voxelis - Voxel survival sandbox for Luanti
|
|
-- Copyright (C) 2024 Mad Star Studio LLC
|
|
--
|
|
-- This program is free software; you can redistribute it and/or modify
|
|
-- it under the terms of the GNU General Public License as published by
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
|
-- (at your option) any later version.
|
|
--
|
|
-- You should have received a copy of the GNU General Public License along
|
|
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
---------------------------------------------------------------------------
|
|
|
|
-- -------------------------------------------------------------------------- --
|
|
-- Blocks --
|
|
-- -------------------------------------------------------------------------- --
|
|
|
|
-- ----------------------------- Terrain Surface ---------------------------- --
|
|
|
|
-- Grass
|
|
core.register_node("vox_overworld_blocks:grass", {
|
|
description = "Grass Block",
|
|
tiles = {"vox_grass.png"},
|
|
groups = {cracky = 3}
|
|
})
|
|
core.register_alias("grass", "vox_overworld_blocks:grass")
|
|
core.register_alias("default:dirt_with_grass" , "vox_overworld_blocks:grass")
|
|
|
|
-- Dirt
|
|
core.register_node("vox_overworld_blocks:dirt", {
|
|
description = "Dirt",
|
|
tiles = {"vox_dirt.png"},
|
|
groups = {crumbly = 3}
|
|
})
|
|
core.register_alias("dirt", "vox_overworld_blocks:dirt")
|
|
core.register_alias("default:dirt", "vox_overworld_blocks:dirt")
|
|
|
|
-- Sand
|
|
-- (I don't like sand. It's coarse and rough and irritating and it gets everywhere.)
|
|
core.register_node("vox_overworld_blocks:sand", {
|
|
description = "Sand",
|
|
tiles = {"vox_sand.png"},
|
|
groups = {crumbly = 3}
|
|
})
|
|
core.register_alias("sand", "vox_overworld_blocks:sand")
|
|
core.register_alias("default:sand", "vox_overworld_blocks:sand")
|
|
|
|
-- Gravel
|
|
core.register_node("vox_overworld_blocks:gravel", {
|
|
description = "Gravel",
|
|
tiles = {"vox_gravel.png"},
|
|
groups = {crumbly = 2}
|
|
})
|
|
core.register_alias("gravel", "vox_overworld_blocks:gravel")
|
|
core.register_alias("default:gravel", "vox_overworld_blocks:gravel")
|
|
|
|
-- -------------------------------- Minerals -------------------------------- --
|
|
|
|
-- Stone
|
|
core.register_node("vox_overworld_blocks:stone", {
|
|
description = "Stone",
|
|
tiles = {"vox_stone.png"},
|
|
groups = {cracky = 2}
|
|
})
|
|
core.register_alias("stone", "vox_overworld_blocks:stone")
|
|
core.register_alias("mapgen_stone", "vox_overworld_blocks:stone")
|
|
-- core.register_alias("default:stone", "vox_overworld_blocks:stone")
|
|
|
|
-- Cobblestone
|
|
core.register_node("vox_overworld_blocks:cobblestone", {
|
|
description = "Cobblestone",
|
|
tiles = {"vox_cobblestone.png"},
|
|
groups = {cracky = 2}
|
|
})
|
|
core.register_alias("cobblestone", "vox_overworld_blocks:cobblestone")
|
|
core.register_alias("default:cobble", "vox_overworld_blocks:cobblestone")
|
|
|
|
|
|
-- Water
|
|
core.register_node("vox_overworld_blocks:water_source", {
|
|
description = "Water Source",
|
|
drawtype = "liquid",
|
|
tiles = {
|
|
{
|
|
name = "vox_water.png",
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 2.0
|
|
}
|
|
}
|
|
},
|
|
alpha = 128,
|
|
paramtype = "light",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
liquidtype = "source",
|
|
liquid_alternative_flowing = "vox_overworld_blocks:water_flowing",
|
|
liquid_alternative_source = "vox_overworld_blocks:water_source",
|
|
liquid_viscosity = 1,
|
|
post_effect_color = {a = 103, r = 30, g = 60, b = 90}
|
|
})
|
|
core.register_alias("water_source", "vox_overworld_blocks:water_source")
|
|
core.register_alias("default:river_water", "vox_overworld_blocks:water_source")
|
|
core.register_alias("mapgen_water_source", "vox_overworld_blocks:water_source")
|
|
|
|
|
|
-- -------------------------------------------------------------------------- --
|
|
-- Liquids --
|
|
-- -------------------------------------------------------------------------- --
|
|
|
|
core.register_node("vox_overworld_blocks:water_flowing", {
|
|
description = "Flowing Water",
|
|
drawtype = "flowingliquid",
|
|
tiles = {"vox_water.png"},
|
|
special_tiles = {
|
|
{
|
|
name = "vox_water.png",
|
|
backface_culling = false,
|
|
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,
|
|
liquidtype = "flowing",
|
|
liquid_alternative_flowing = "vox_overworld_blocks:water_flowing",
|
|
liquid_alternative_source = "vox_overworld_blocks:water_source",
|
|
liquid_viscosity = 1,
|
|
post_effect_color = {a = 103, r = 30, g = 60, b = 90}
|
|
})
|
|
core.register_alias("water_flowing", "vox_overworld_blocks:water_flowing") |