Compare commits

..

No commits in common. "2402852a7707a2d5810e0b829dd8b38c1d4e3f57" and "6c5f0ef2c19694fb317878d8b4fd6067dce9aa60" have entirely different histories.

18 changed files with 58 additions and 83 deletions

View file

@ -7,7 +7,6 @@
"Voxelis"
],
"Lua.diagnostics.globals": [
"vox_colors",
"core"
"vox_colors"
]
}

View file

@ -1,2 +0,0 @@
name = vox_misc_blocks
description = Voxelis - misc_blocks: General blocks that don't fit in other categories

View file

@ -11,8 +11,4 @@
-- with this program; if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
vox_overworld = {}
dofile(core.get_modpath(core.get_current_modname()) .. "/registry.lua")
-- TODO: Why are we not initializing the blocks here?

View file

@ -0,0 +1,2 @@
name = vox_overworld
description = Voxelis - overworld: General Overworld blocks

View file

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

View file

Before

Width:  |  Height:  |  Size: 590 B

After

Width:  |  Height:  |  Size: 590 B

View file

Before

Width:  |  Height:  |  Size: 590 B

After

Width:  |  Height:  |  Size: 590 B

View file

@ -1,2 +0,0 @@
name = vox_overworld_blocks
description = Voxelis - overworld_blocks: General Overworld blocks

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

View file

@ -11,18 +11,4 @@
-- with this program; if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
core.register_biome({
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
})
vox_explosions = { }

View file

@ -0,0 +1,2 @@
name = vox_explosions
description = Voxelis - explosions

View file

@ -11,4 +11,4 @@
-- 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 = { }

View file

@ -1,2 +1,2 @@
name = vox_init
description = Voxelis - init: core mod
description = Voxelis - init

View file

@ -11,53 +11,56 @@
-- with this program; if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
-- -------------------------------------------------------------------------- --
-- Blocks --
-- -------------------------------------------------------------------------- --
-- This file is intended as the primary entry point for the game.
-- ----------------------------- Terrain Surface ---------------------------- --
-- Grass
core.register_node("vox_overworld_blocks:grass", {
-- Grass Block
core.register_node("vox_main: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")
core.register_alias("grass", "vox_main:grass")
core.register_alias("default:dirt_with_grass" , "vox_main:grass")
-- Dirt
core.register_node("vox_overworld_blocks:dirt", {
description = "Dirt",
tiles = {"vox_dirt.png"},
groups = {crumbly = 3}
core.register_biome({
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
})
core.register_alias("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")
-- -------------------------------- Minerals -------------------------------- --
core.register_node("vox_overworld_blocks:stone", {
-- Stone
core.register_node("vox_main: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")
core.register_alias("stone", "vox_main:stone")
core.register_alias("mapgen_stone", "vox_main: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
core.register_node("vox_overworld_blocks:water_source", {
core.register_node("vox_main:water_source", {
description = "Water Source",
drawtype = "liquid",
tiles = {
@ -78,21 +81,16 @@ core.register_node("vox_overworld_blocks:water_source", {
diggable = false,
buildable_to = true,
liquidtype = "source",
liquid_alternative_flowing = "vox_overworld_blocks:water_flowing",
liquid_alternative_source = "vox_overworld_blocks:water_source",
liquid_alternative_flowing = "vox_main:water_flowing",
liquid_alternative_source = "vox_main: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")
core.register_alias("water_source", "vox_main:water_source")
core.register_alias("default:river_water", "vox_main:water_source")
core.register_alias("mapgen_water_source", "vox_main:water_source")
-- -------------------------------------------------------------------------- --
-- Liquids --
-- -------------------------------------------------------------------------- --
core.register_node("vox_overworld_blocks:water_flowing", {
core.register_node("vox_main:water_flowing", {
description = "Flowing Water",
drawtype = "flowingliquid",
tiles = {"vox_water.png"},
@ -115,9 +113,9 @@ core.register_node("vox_overworld_blocks:water_flowing", {
diggable = false,
buildable_to = true,
liquidtype = "flowing",
liquid_alternative_flowing = "vox_overworld_blocks:water_flowing",
liquid_alternative_source = "vox_overworld_blocks:water_source",
liquid_alternative_flowing = "vox_main:water_flowing",
liquid_alternative_source = "vox_main: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")
core.register_alias("water_flowing", "vox_main:water_flowing")

View file

@ -0,0 +1,2 @@
name = vox_main
description = Voxelis - main: core mod

View file

@ -11,10 +11,4 @@
-- with this program; if not, see <http://www.gnu.org/licenses/>.
---------------------------------------------------------------------------
-- -------------------------------------------------------------------------- --
-- Blocks --
-- -------------------------------------------------------------------------- --
-- -------------------------------------------------------------------------- --
-- Liquids --
-- -------------------------------------------------------------------------- --
vox_biomes = { }

View file

@ -0,0 +1,2 @@
name = vox_biomes
description = Voxelis - biomes

View file

@ -1,2 +0,0 @@
name = vox_overworld
description = Voxelis - overworld