Rename to Jules Verne's Mysterious Island

This commit is contained in:
Andrew Miner
2026-10-21 12:23:25 -06:00
parent 7caf75de09
commit 6566d2a2fe
35 changed files with 23645 additions and 81 deletions
@@ -1,6 +1,6 @@
-- Constants ---------------------------------------------------------------------------------------
tmg_constants = { -- luacheck: globals tmg_constants
jvmi_constants = { -- luacheck: globals jvmi_constants
ALTITUDE = {
SKY = 256,
MOUNTAIN = 128,
+11
View File
@@ -0,0 +1,11 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local path = core.get_modpath("jvmi_constants")
dofile(path.."/constants.lua")
-- Script ------------------------------------------------------------------------------------------
core.log("info", "jvmi_constants loaded")
+4
View File
@@ -0,0 +1,4 @@
name = jvmi_constants
title = Jules Verne's Mysterious Island / Constants
description = defined shared values across mods
author = tungstonminer
@@ -2,21 +2,20 @@
local core = _G["core"]
tmg_first = {} -- luacheck: globals tmg_first
-- Private Functions -------------------------------------------------------------------------------
local private = {}
function private.register_mapgen_aliases()
core.register_alias("mapgen_stone", "tmg_nodes:stone")
core.register_alias("mapgen_water_source", "tmg_nodes:water_source")
core.register_alias("mapgen_river_water_source", "tmg_nodes:water_source")
core.register_alias("mapgen_stone", "jvmi_nodes:stone")
core.register_alias("mapgen_water_source", "jvmi_nodes:water_source")
core.register_alias("mapgen_river_water_source", "jvmi_nodes:water_source")
end
-- Script ------------------------------------------------------------------------------------------
core.log("info", "Tungston's Game initializing")
private.register_mapgen_aliases()
core.log("info", "jvmi_first loaded")
+4
View File
@@ -0,0 +1,4 @@
name = jvmi_first
title = Jules Verne's Mysterious Island / First
description = set up game basics
author = tungstonminer
@@ -3,6 +3,6 @@
local core = _G["core"]
-- Registrations -----------------------------------------------------------------------------------
-- Script ------------------------------------------------------------------------------------------
core.register_mapgen_script(core.get_modpath("tmg_mapgen").."/mapenv.lua")
core.log("info", "jvmi_last loaded")
+4
View File
@@ -0,0 +1,4 @@
name = jvmi_last
title = Jules Verne's Mysterious Island / Last
description = complete game setup
author = tungstonminer
+15
View File
@@ -0,0 +1,15 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local path = core.get_modpath("jvmi_mapgen")
-- Registrations -----------------------------------------------------------------------------------
core.register_mapgen_script(path.."/mapenv.lua")
-- Script ------------------------------------------------------------------------------------------
core.log("info", "jvmi_mapgen loaded")
@@ -5,10 +5,10 @@ local math = _G["math"]
local VoxelArea = _G["VoxelArea"]
-- Since this script runs inside the mapgen environment, the constants won't be in the global table,
-- so we need to run the file manually.
local tmg_constants_path = core.get_modpath("tmg_constants")
dofile(tmg_constants_path.."/constants.lua")
local C = _G["tmg_constants"]
-- yet, so we need to run the file manually.
local jvmi_constants_path = core.get_modpath("jvmi_constants")
dofile(jvmi_constants_path.."/constants.lua")
local C = _G["jvmi_constants"]
local A = C.ALTITUDE
@@ -126,7 +126,7 @@ end
function private.fill_bedrock(area, fill_min, fill_max)
if fill_min.y > A.BEDROCK then return end
local bedrock_id = core.get_content_id("tmg_nodes:bedrock")
local bedrock_id = core.get_content_id("jvmi_nodes:bedrock")
local stone_id = core.get_content_id("mapgen_stone")
for x = fill_min.x, fill_max.x do
@@ -247,8 +247,6 @@ end
-- Registrations -----------------------------------------------------------------------------------
private.prepare_terrain_table()
core.register_on_generated(function(voxels, fill_min, fill_max)
local emerged_min, emerged_max = voxels:get_emerged_area()
local area = VoxelArea(emerged_min, emerged_max)
@@ -262,3 +260,8 @@ core.register_on_generated(function(voxels, fill_min, fill_max)
voxels:calc_lighting()
voxels:update_liquids()
end)
-- Script ------------------------------------------------------------------------------------------
private.prepare_terrain_table()
+5
View File
@@ -0,0 +1,5 @@
name = jvmi_mapgen
title = Jules Verne's Mysterious Island / Map Generation
description = do the work of actually generating the map
author = tungstonminer
depends = jvmi_nodes
@@ -5,22 +5,22 @@ local core = _G["core"]
-- Constants ---------------------------------------------------------------------------------------
local S = core.get_translator("tmg_nodes")
local S = core.get_translator("jvmi_nodes")
-- Registrations -----------------------------------------------------------------------------------
core.register_node("tmg_nodes:bedrock", {
core.register_node("jvmi_nodes:bedrock", {
description = S("Bedrock"),
drop = "",
is_ground_content = false,
sounds = { footstep = "tmg_nodes_stone" },
tiles = {"tmg_nodes_bedrock.png"},
sounds = { footstep = "jvmi_nodes_stone_footstep" },
tiles = {"jvmi_nodes_bedrock.png"},
})
core.register_node("tmg_nodes:stone", {
core.register_node("jvmi_nodes:stone", {
description = S("Stone"),
drop = "tmg_nodes:stone",
sounds = { footstep = "tmg_nodes_stone" },
tiles = {"tmg_nodes_stone.png"},
drop = "jvmi_nodes:stone",
sounds = { footstep = "jvmi_nodes_stone_footstep" },
tiles = {"jvmi_nodes_stone.png"},
})
@@ -2,9 +2,11 @@
local core = _G["core"]
local path = core.get_modpath("jvmi_nodes")
-- Script ------------------------------------------------------------------------------------------
local path = core.get_modpath("tmg_nodes")
dofile(path.."/earthlike.lua")
dofile(path.."/liquid.lua")
core.log("info", "jvmi_nodes loaded")
@@ -1,29 +1,29 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local tmg_constants = _G["tmg_constants"]
local jvmi_constants = _G["jvmi_constants"]
-- Constants ---------------------------------------------------------------------------------------
local S = core.get_translator("tmg_nodes")
local S = core.get_translator("jvmi_nodes")
-- Registrations -----------------------------------------------------------------------------------
core.register_node("tmg_nodes:water_flowing", {
core.register_node("jvmi_nodes:water_flowing", {
description = S("Flowing Water"),
drawtype = tmg_constants.DRAW_TYPE.FLOWING_LIQUID,
drawtype = jvmi_constants.DRAW_TYPE.FLOWING_LIQUID,
tiles = {{
name = "tmg_nodes_water_flowing_animated.png",
name = "jvmi_nodes_water_flowing_animated.png",
animation = {
type = tmg_constants.ANIMATION_TYPE.VERTICAL_FRAMES,
type = jvmi_constants.ANIMATION_TYPE.VERTICAL_FRAMES,
aspect_w = 16,
aspect_h = 16,
length = 5.0,
},
}},
sounds = { footstep = { name = "tmg_nodes_water_footstep" } },
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
is_ground_content = false,
use_texture_alpha = "blend",
paramtype = "light",
@@ -34,22 +34,22 @@ core.register_node("tmg_nodes:water_flowing", {
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,
liquidtype = jvmi_constants.LIQUID_TYPE.FLOWING,
liquid_alternative_flowing = "jvmi_nodes:water_flowing",
liquid_alternative_source = "jvmi_nodes:water_source",
liquid_viscosity = jvmi_constants.VISCOSITY.XX_FAST,
liquid_range = 7,
waving = tmg_constants.WAVING.LIQUID_LIKE,
waving = jvmi_constants.WAVING.LIQUID_LIKE,
post_effect_color = "#033C5CCC",
groups = {},
})
core.register_node("tmg_nodes:water_source", {
core.register_node("jvmi_nodes:water_source", {
description = S("Water"),
drawtype = "liquid",
waving = tmg_constants.WAVING.LIQUID_LIKE,
waving = jvmi_constants.WAVING.LIQUID_LIKE,
tiles = {{
name = "tmg_nodes_water_source_animated.png",
name = "jvmi_nodes_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
@@ -57,9 +57,9 @@ core.register_node("tmg_nodes:water_source", {
length = 5.0,
}
}},
sounds = { footstep = { name = "tmg_nodes_water_footstep" } },
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
is_ground_content = false,
use_texture_alpha = tmg_constants.TEXTURE_ALPHA.BLEND,
use_texture_alpha = jvmi_constants.TEXTURE_ALPHA.BLEND,
paramtype = "light",
walkable = false,
pointable = false,
@@ -68,9 +68,9 @@ core.register_node("tmg_nodes:water_source", {
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_alternative_flowing = "jvmi_nodes:water_flowing",
liquid_alternative_source = "jvmi_nodes:water_source",
liquid_viscosity = jvmi_constants.VISCOSITY.XX_FAST,
liquid_renewable = true,
liquid_range = 7,
post_effect_color = "#033C5CCC",
+5
View File
@@ -0,0 +1,5 @@
name = jvmi_nodes
title = Jules Verne's Mysterious Island / Nodes
description = define the nodes which make up the world
author = tungstonminer
depends = jvmi_constants

Before

Width:  |  Height:  |  Size: 190 B

After

Width:  |  Height:  |  Size: 190 B

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

Before

Width:  |  Height:  |  Size: 647 B

After

Width:  |  Height:  |  Size: 647 B

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

@@ -2,7 +2,7 @@
local core = _G["core"]
local dump = _G["dump"]
local C = _G["tmg_constants"]
local C = _G["jvmi_constants"]
-- Constants ---------------------------------------------------------------------------------------
@@ -20,7 +20,7 @@ local SINGLEPLAYER_PRIVS = {
}
-- Private Functions -------------------------------------------------------------------------------
-- Private -----------------------------------------------------------------------------------------
local private = {}
@@ -133,4 +133,4 @@ end)
-- Script ------------------------------------------------------------------------------------------
core.log("info", "Tungston's Game initialization complete")
core.log("info", "jvmi_player loaded")
+5
View File
@@ -0,0 +1,5 @@
name = jvmi_player
title = Jules Verne's Mysterious Island / Player
description = configuring the player and his abilities
author = tungstonminer
depends = jvmi_constants
-6
View File
@@ -1,6 +0,0 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local path = core.get_modpath("tmg_constants")
dofile(path.."/constants.lua")
-4
View File
@@ -1,4 +0,0 @@
name = tmg_constants
title = Tungston's Game / Constants
description = defined shared values across mods
author = tungstonminer
-4
View File
@@ -1,4 +0,0 @@
name = tmg_first
title = Tungston's Game / First
description = set up game basics
author = tungstonminer
-5
View File
@@ -1,5 +0,0 @@
name = tmg_last
title = Tungston's Game / Last
description = complete game setup
author = tungstonminer
depends = tmg_constants
-5
View File
@@ -1,5 +0,0 @@
name = tmg_mapgen
title = Tungston's Game / Map Generation
description = do the work of actually generating the map
author = tungstonminer
depends = tmg_nodes
-5
View File
@@ -1,5 +0,0 @@
name = tmg_nodes
title = Tungston's Game / Nodes
description = define the nodes which make up the world
author = tungstonminer
depends = tmg_constants