Meow.
All checks were successful
Error Check / luacheck_errcheck (push) Successful in 44s
Unit Tests / busted_unit_test (push) Successful in 46s

This commit is contained in:
DesertMermaid 2024-12-10 17:27:41 -08:00
parent 8bc83cf3db
commit 6b7d865a9b
10 changed files with 135 additions and 2 deletions

View file

@ -13,8 +13,9 @@
-- This file is intended as the primary entry point for the game.
-- Grass Block
core.register_node("vox_main:grass", {
description = "Grass",
description = "Grass Block",
tiles = {"vox_grass.png"},
groups = {cracky = 3}
})
@ -31,4 +32,84 @@ core.register_biome({
height_max = 4,
heat_point = 50,
humidity_point = 50
})
})
-- 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_biome({
name = "stone",
node_top = "vox_main:stone",
depth_top = 1,
node_filler = "vox_main:stone",
depth_filler = 3,
node_stone = "vox_main:stone",
height_min = -31000,
height_max = 1,
heat_point = 50,
humidity_point = 50
})
-- Water
core.register_node("vox_main: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 = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
liquidtype = "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_main:water_source")
core.register_node("vox_main: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_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_main:water_flowing")