Compare commits
No commits in common. "2402852a7707a2d5810e0b829dd8b38c1d4e3f57" and "6c5f0ef2c19694fb317878d8b4fd6067dce9aa60" have entirely different histories.
2402852a77
...
6c5f0ef2c1
3
.vscode/settings.json
vendored
|
@ -7,7 +7,6 @@
|
||||||
"Voxelis"
|
"Voxelis"
|
||||||
],
|
],
|
||||||
"Lua.diagnostics.globals": [
|
"Lua.diagnostics.globals": [
|
||||||
"vox_colors",
|
"vox_colors"
|
||||||
"core"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,2 +0,0 @@
|
||||||
name = vox_misc_blocks
|
|
||||||
description = Voxelis - misc_blocks: General blocks that don't fit in other categories
|
|
|
@ -11,8 +11,4 @@
|
||||||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
vox_overworld = {}
|
-- TODO: Why are we not initializing the blocks here?
|
||||||
|
|
||||||
dofile(core.get_modpath(core.get_current_modname()) .. "/registry.lua")
|
|
||||||
|
|
||||||
|
|
2
mods/BLOCKS/vox_overworld/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name = vox_overworld
|
||||||
|
description = Voxelis - overworld: General Overworld blocks
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 590 B |
|
@ -1,2 +0,0 @@
|
||||||
name = vox_overworld_blocks
|
|
||||||
description = Voxelis - overworld_blocks: General Overworld blocks
|
|
Before Width: | Height: | Size: 119 B |
|
@ -11,18 +11,4 @@
|
||||||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
core.register_biome({
|
vox_explosions = { }
|
||||||
name = "grassland",
|
|
||||||
node_top = "grass",
|
|
||||||
depth_top = 1,
|
|
||||||
node_filler = "vox_main:dirt",
|
|
||||||
node_stone = "vox_main:stone",
|
|
||||||
depth_filler = 3,
|
|
||||||
node_riverbed = "vox_main:sand",
|
|
||||||
node_river_water = "vox_main:water_source",
|
|
||||||
depth_riverbed = 2,
|
|
||||||
height_min = 1,
|
|
||||||
height_max = 256,
|
|
||||||
heat_point = 35,
|
|
||||||
humidity_point = 50
|
|
||||||
})
|
|
2
mods/CORE/vox_explosions/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name = vox_explosions
|
||||||
|
description = Voxelis - explosions
|
|
@ -11,4 +11,4 @@
|
||||||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
-- This file is intended as the primary entry point (init) for the game.
|
vox_init = { }
|
|
@ -1,2 +1,2 @@
|
||||||
name = vox_init
|
name = vox_init
|
||||||
description = Voxelis - init: core mod
|
description = Voxelis - init
|
|
@ -11,53 +11,56 @@
|
||||||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
-- -------------------------------------------------------------------------- --
|
-- This file is intended as the primary entry point for the game.
|
||||||
-- Blocks --
|
|
||||||
-- -------------------------------------------------------------------------- --
|
|
||||||
|
|
||||||
-- ----------------------------- Terrain Surface ---------------------------- --
|
-- Grass Block
|
||||||
|
core.register_node("vox_main:grass", {
|
||||||
-- Grass
|
|
||||||
core.register_node("vox_overworld_blocks:grass", {
|
|
||||||
description = "Grass Block",
|
description = "Grass Block",
|
||||||
tiles = {"vox_grass.png"},
|
tiles = {"vox_grass.png"},
|
||||||
groups = {cracky = 3}
|
groups = {cracky = 3}
|
||||||
})
|
})
|
||||||
core.register_alias("grass", "vox_overworld_blocks:grass")
|
core.register_alias("grass", "vox_main:grass")
|
||||||
core.register_alias("default:dirt_with_grass" , "vox_overworld_blocks:grass")
|
core.register_alias("default:dirt_with_grass" , "vox_main:grass")
|
||||||
|
|
||||||
-- Dirt
|
core.register_biome({
|
||||||
core.register_node("vox_overworld_blocks:dirt", {
|
name = "grassland",
|
||||||
description = "Dirt",
|
node_top = "grass",
|
||||||
tiles = {"vox_dirt.png"},
|
depth_top = 1,
|
||||||
groups = {crumbly = 3}
|
node_filler = "vox_main:dirt",
|
||||||
|
node_stone = "vox_main:stone",
|
||||||
|
depth_filler = 3,
|
||||||
|
node_riverbed = "vox_main:sand",
|
||||||
|
node_river_water = "vox_main:water_source",
|
||||||
|
depth_riverbed = 2,
|
||||||
|
height_min = 1,
|
||||||
|
height_max = 256,
|
||||||
|
heat_point = 35,
|
||||||
|
humidity_point = 50
|
||||||
})
|
})
|
||||||
core.register_alias("dirt", "vox_overworld_blocks:dirt")
|
|
||||||
|
|
||||||
-- Sand
|
-- Stone
|
||||||
-- (I don't like sand. It's coarse and rough and irritating and it gets everywhere.)
|
core.register_node("vox_main:stone", {
|
||||||
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")
|
|
||||||
|
|
||||||
-- -------------------------------- Minerals -------------------------------- --
|
|
||||||
|
|
||||||
core.register_node("vox_overworld_blocks:stone", {
|
|
||||||
description = "Stone",
|
description = "Stone",
|
||||||
tiles = {"vox_stone.png"},
|
tiles = {"vox_stone.png"},
|
||||||
groups = {cracky = 2}
|
groups = {cracky = 2}
|
||||||
})
|
})
|
||||||
core.register_alias("stone", "vox_overworld_blocks:stone")
|
core.register_alias("stone", "vox_main:stone")
|
||||||
core.register_alias("mapgen_stone", "vox_overworld_blocks:stone")
|
core.register_alias("mapgen_stone", "vox_main:stone")
|
||||||
-- core.register_alias("default:stone", "vox_overworld_blocks:stone")
|
-- core.register_alias("default:stone", "vox_main:stone")
|
||||||
|
|
||||||
|
-- Sand
|
||||||
|
-- (I don't like sand. It's coarse and rough and irritating and it gets everywhere.)
|
||||||
|
core.register_node("vox_main:sand", {
|
||||||
|
description = "Sand",
|
||||||
|
tiles = {"vox_sand.png"},
|
||||||
|
groups = {crumbly = 3}
|
||||||
|
})
|
||||||
|
core.register_alias("sand", "vox_main:sand")
|
||||||
|
core.register_alias("default:sand", "vox_main:sand")
|
||||||
|
|
||||||
|
|
||||||
-- Water
|
-- Water
|
||||||
core.register_node("vox_overworld_blocks:water_source", {
|
core.register_node("vox_main:water_source", {
|
||||||
description = "Water Source",
|
description = "Water Source",
|
||||||
drawtype = "liquid",
|
drawtype = "liquid",
|
||||||
tiles = {
|
tiles = {
|
||||||
|
@ -78,21 +81,16 @@ core.register_node("vox_overworld_blocks:water_source", {
|
||||||
diggable = false,
|
diggable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
liquidtype = "source",
|
liquidtype = "source",
|
||||||
liquid_alternative_flowing = "vox_overworld_blocks:water_flowing",
|
liquid_alternative_flowing = "vox_main:water_flowing",
|
||||||
liquid_alternative_source = "vox_overworld_blocks:water_source",
|
liquid_alternative_source = "vox_main: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}
|
||||||
})
|
})
|
||||||
core.register_alias("water_source", "vox_overworld_blocks:water_source")
|
core.register_alias("water_source", "vox_main:water_source")
|
||||||
core.register_alias("default:river_water", "vox_overworld_blocks:water_source")
|
core.register_alias("default:river_water", "vox_main:water_source")
|
||||||
core.register_alias("mapgen_water_source", "vox_overworld_blocks:water_source")
|
core.register_alias("mapgen_water_source", "vox_main:water_source")
|
||||||
|
|
||||||
|
core.register_node("vox_main:water_flowing", {
|
||||||
-- -------------------------------------------------------------------------- --
|
|
||||||
-- Liquids --
|
|
||||||
-- -------------------------------------------------------------------------- --
|
|
||||||
|
|
||||||
core.register_node("vox_overworld_blocks:water_flowing", {
|
|
||||||
description = "Flowing Water",
|
description = "Flowing Water",
|
||||||
drawtype = "flowingliquid",
|
drawtype = "flowingliquid",
|
||||||
tiles = {"vox_water.png"},
|
tiles = {"vox_water.png"},
|
||||||
|
@ -115,9 +113,9 @@ core.register_node("vox_overworld_blocks:water_flowing", {
|
||||||
diggable = false,
|
diggable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
liquidtype = "flowing",
|
liquidtype = "flowing",
|
||||||
liquid_alternative_flowing = "vox_overworld_blocks:water_flowing",
|
liquid_alternative_flowing = "vox_main:water_flowing",
|
||||||
liquid_alternative_source = "vox_overworld_blocks:water_source",
|
liquid_alternative_source = "vox_main: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}
|
||||||
})
|
})
|
||||||
core.register_alias("water_flowing", "vox_overworld_blocks:water_flowing")
|
core.register_alias("water_flowing", "vox_main:water_flowing")
|
2
mods/CORE/vox_main/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name = vox_main
|
||||||
|
description = Voxelis - main: core mod
|
|
@ -11,10 +11,4 @@
|
||||||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
-- -------------------------------------------------------------------------- --
|
vox_biomes = { }
|
||||||
-- Blocks --
|
|
||||||
-- -------------------------------------------------------------------------- --
|
|
||||||
|
|
||||||
-- -------------------------------------------------------------------------- --
|
|
||||||
-- Liquids --
|
|
||||||
-- -------------------------------------------------------------------------- --
|
|
2
mods/MAPGEN/vox_biomes/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name = vox_biomes
|
||||||
|
description = Voxelis - biomes
|
|
@ -1,2 +0,0 @@
|
||||||
name = vox_overworld
|
|
||||||
description = Voxelis - overworld
|
|