Add initial version

This commit is contained in:
Andrew Miner
2026-10-18 19:13:29 -06:00
parent 7fee583710
commit bfd2217cd5
29 changed files with 550 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
-- Constants ---------------------------------------------------------------------------------------
local S = core.get_translator("tmg_nodes")
-- Registrations -----------------------------------------------------------------------------------
core.register_node("tmg_nodes:bedrock", {
description = S("Bedrock"),
drop = "",
is_ground_content = false,
sounds = { footstep = "tmg_nodes_stone" },
tiles = {"tmg_nodes_bedrock.png"},
})
core.register_node("tmg_nodes:stone", {
description = S("Stone"),
drop = "tmg_nodes:stone",
sounds = { footstep = "tmg_nodes_stone" },
tiles = {"tmg_nodes_stone.png"},
})
+10
View File
@@ -0,0 +1,10 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
-- Script ------------------------------------------------------------------------------------------
local path = core.get_modpath("tmg_nodes")
dofile(path.."/earthlike.lua")
dofile(path.."/liquid.lua")
+78
View File
@@ -0,0 +1,78 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local tmg_constants = _G["tmg_constants"]
-- Constants ---------------------------------------------------------------------------------------
local S = core.get_translator("tmg_nodes")
-- Registrations -----------------------------------------------------------------------------------
core.register_node("tmg_nodes:water_flowing", {
description = S("Flowing Water"),
drawtype = tmg_constants.DRAW_TYPE.FLOWING_LIQUID,
tiles = {{
name = "tmg_nodes_water_flowing_animated.png",
animation = {
type = tmg_constants.ANIMATION_TYPE.VERTICAL_FRAMES,
aspect_w = 16,
aspect_h = 16,
length = 5.0,
},
}},
sounds = { footstep = { name = "tmg_nodes_water_footstep" } },
is_ground_content = false,
use_texture_alpha = "blend",
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
drop = "",
drowning = 4,
liquidtype = tmg_constants.LIQUID_TYPE.FLOWING,
liquid_alternative_flowing = "tmg_nodes:water_flowing",
liquid_alternative_source = "tmg_nodes:water_source",
liquid_viscosity = tmg_constants.VISCOSITY.XX_FAST,
liquid_range = 7,
waving = tmg_constants.WAVING.LIQUID_LIKE,
post_effect_color = "#033C5CCC",
groups = {},
})
core.register_node("tmg_nodes:water_source", {
description = S("Water"),
drawtype = "liquid",
waving = tmg_constants.WAVING.LIQUID_LIKE,
tiles = {{
name = "tmg_nodes_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 5.0,
}
}},
sounds = { footstep = { name = "tmg_nodes_water_footstep" } },
is_ground_content = false,
use_texture_alpha = tmg_constants.TEXTURE_ALPHA.BLEND,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
drop = "",
drowning = 4,
liquidtype = "source",
liquid_alternative_flowing = "tmg_nodes:water_flowing",
liquid_alternative_source = "tmg_nodes:water_source",
liquid_viscosity = tmg_constants.VISCOSITY.XX_FAST,
liquid_renewable = true,
liquid_range = 7,
post_effect_color = "#033C5CCC",
groups = { },
})
+5
View File
@@ -0,0 +1,5 @@
name = tmg_nodes
title = Tungston's Game / Nodes
description = define the nodes which make up the world
author = tungstonminer
depends = tmg_constants
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B