forked from mad-star-studio/Voxelis
main #3
18 changed files with 81 additions and 56 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -7,6 +7,7 @@
|
|||
"Voxelis"
|
||||
],
|
||||
"Lua.diagnostics.globals": [
|
||||
"vox_colors"
|
||||
"vox_colors",
|
||||
"core"
|
||||
]
|
||||
}
|
|
@ -11,4 +11,10 @@
|
|||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
vox_explosions = { }
|
||||
-- -------------------------------------------------------------------------- --
|
||||
-- Blocks --
|
||||
-- -------------------------------------------------------------------------- --
|
||||
|
||||
-- -------------------------------------------------------------------------- --
|
||||
-- Liquids --
|
||||
-- -------------------------------------------------------------------------- --
|
2
mods/BLOCKS/vox_misc_blocks/mod.conf
Normal file
2
mods/BLOCKS/vox_misc_blocks/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = vox_misc_blocks
|
||||
description = Voxelis - misc_blocks: General blocks that don't fit in other categories
|
|
@ -1,2 +0,0 @@
|
|||
name = vox_overworld
|
||||
description = Voxelis - overworld: General Overworld blocks
|
|
@ -11,56 +11,53 @@
|
|||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
-- This file is intended as the primary entry point for the game.
|
||||
-- -------------------------------------------------------------------------- --
|
||||
-- Blocks --
|
||||
-- -------------------------------------------------------------------------- --
|
||||
|
||||
-- Grass Block
|
||||
core.register_node("vox_main:grass", {
|
||||
-- ----------------------------- 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_main:grass")
|
||||
core.register_alias("default:dirt_with_grass" , "vox_main:grass")
|
||||
core.register_alias("grass", "vox_overworld_blocks:grass")
|
||||
core.register_alias("default:dirt_with_grass" , "vox_overworld_blocks:grass")
|
||||
|
||||
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
|
||||
-- Dirt
|
||||
core.register_node("vox_overworld_blocks:dirt", {
|
||||
description = "Dirt",
|
||||
tiles = {"vox_dirt.png"},
|
||||
groups = {crumbly = 3}
|
||||
})
|
||||
|
||||
-- Stone
|
||||
core.register_node("vox_main:stone", {
|
||||
description = "Stone",
|
||||
tiles = {"vox_stone.png"},
|
||||
groups = {cracky = 2}
|
||||
})
|
||||
core.register_alias("stone", "vox_main:stone")
|
||||
core.register_alias("mapgen_stone", "vox_main:stone")
|
||||
-- core.register_alias("default:stone", "vox_main:stone")
|
||||
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_main:sand", {
|
||||
core.register_node("vox_overworld_blocks: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")
|
||||
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",
|
||||
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")
|
||||
|
||||
|
||||
-- Water
|
||||
core.register_node("vox_main:water_source", {
|
||||
core.register_node("vox_overworld_blocks:water_source", {
|
||||
description = "Water Source",
|
||||
drawtype = "liquid",
|
||||
tiles = {
|
||||
|
@ -81,16 +78,21 @@ core.register_node("vox_main:water_source", {
|
|||
diggable = false,
|
||||
buildable_to = true,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "vox_main:water_flowing",
|
||||
liquid_alternative_source = "vox_main:water_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_main:water_source")
|
||||
core.register_alias("default:river_water", "vox_main:water_source")
|
||||
core.register_alias("mapgen_water_source", "vox_main:water_source")
|
||||
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_node("vox_main:water_flowing", {
|
||||
|
||||
-- -------------------------------------------------------------------------- --
|
||||
-- Liquids --
|
||||
-- -------------------------------------------------------------------------- --
|
||||
|
||||
core.register_node("vox_overworld_blocks:water_flowing", {
|
||||
description = "Flowing Water",
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"vox_water.png"},
|
||||
|
@ -113,9 +115,9 @@ core.register_node("vox_main:water_flowing", {
|
|||
diggable = false,
|
||||
buildable_to = true,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "vox_main:water_flowing",
|
||||
liquid_alternative_source = "vox_main:water_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_flowing", "vox_main:water_flowing")
|
||||
core.register_alias("water_flowing", "vox_overworld_blocks:water_flowing")
|
2
mods/BLOCKS/vox_overworld_blocks/mod.conf
Normal file
2
mods/BLOCKS/vox_overworld_blocks/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = vox_overworld_blocks
|
||||
description = Voxelis - overworld_blocks: General Overworld blocks
|
After Width: | Height: | Size: 149 B |
BIN
mods/BLOCKS/vox_overworld_blocks/textures/vox_sand.png
Normal file
BIN
mods/BLOCKS/vox_overworld_blocks/textures/vox_sand.png
Normal file
Binary file not shown.
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
After Width: | Height: | Size: 590 B |
After Width: | Height: | Size: 590 B |
|
@ -1,2 +0,0 @@
|
|||
name = vox_explosions
|
||||
description = Voxelis - explosions
|
|
@ -11,4 +11,4 @@
|
|||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
vox_init = { }
|
||||
-- This file is intended as the primary entry point (init) for the game.
|
|
@ -1,2 +1,2 @@
|
|||
name = vox_init
|
||||
description = Voxelis - init
|
||||
description = Voxelis - init: core mod
|
|
@ -1,2 +0,0 @@
|
|||
name = vox_main
|
||||
description = Voxelis - main: core mod
|
|
@ -1,2 +0,0 @@
|
|||
name = vox_biomes
|
||||
description = Voxelis - biomes
|
|
@ -11,4 +11,8 @@
|
|||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
-- TODO: Why are we not initializing the blocks here?
|
||||
vox_overworld = {}
|
||||
|
||||
dofile(core.get_modpath(core.get_current_modname()) .. "/registry.lua")
|
||||
|
||||
|
2
mods/MAPGEN/vox_overworld/mod.conf
Normal file
2
mods/MAPGEN/vox_overworld/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = vox_overworld
|
||||
description = Voxelis - overworld
|
|
@ -11,4 +11,18 @@
|
|||
-- with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
vox_biomes = { }
|
||||
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
|
||||
})
|
Loading…
Add table
Reference in a new issue