This commit is contained in:
Andrew Miner
2026-10-27 09:19:27 -06:00
parent a822ebbdfd
commit 267349a830
9 changed files with 45 additions and 40 deletions
-5
View File
@@ -7,8 +7,3 @@ local core = _G.core
core.clear_registered_biomes()
dofile(core.get_modpath("jvmi_biomes").."/definitions.lua")
-- Script ------------------------------------------------------------------------------------------
core.log("info", "jvmi_biomes loaded")
+2 -2
View File
@@ -21,7 +21,7 @@ local private = {}
Args:
region:Region - the region currently being generated
]]--
function private.apply(region)
function private.apply_to(region)
private.assign_biomes(region)
private.fill_surface(region)
end
@@ -82,5 +82,5 @@ end
-- Export ------------------------------------------------------------------------------------------
return {
apply_to = private.apply
apply_to = private.apply_to
}
+1 -8
View File
@@ -1,8 +1 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G.core
-- Script ------------------------------------------------------------------------------------------
core.log("info", "jvmi_first loaded")
-- Do nothing.
+1 -8
View File
@@ -1,8 +1 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G.core
-- Script ------------------------------------------------------------------------------------------
core.log("info", "jvmi_last loaded")
-- Do nothing
-2
View File
@@ -9,5 +9,3 @@ local path = core.get_modpath("jvmi_nodes")
dofile(path.."/earthy.lua")
dofile(path.."/liquid.lua")
dofile(path.."/stony.lua")
core.log("info", "jvmi_nodes loaded")
+2 -2
View File
@@ -15,7 +15,7 @@ core.register_node("jvmi_nodes:water_flowing", {
description = S("Flowing Water"),
drawtype = C.DRAW_TYPE.FLOWING_LIQUID,
tiles = {{
name = "jvmi_nodes_water_flowing_animated.png",
name = "jvmi_nodes_water_flowing.png",
animation = {
type = C.ANIMATION_TYPE.VERTICAL_FRAMES,
aspect_w = 16,
@@ -49,7 +49,7 @@ core.register_node("jvmi_nodes:water_source", {
drawtype = "liquid",
waving = C.WAVING.LIQUID_LIKE,
tiles = {{
name = "jvmi_nodes_water_source_animated.png",
name = "jvmi_nodes_water_source.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
+1 -1
View File
@@ -17,7 +17,7 @@ core.register_node("jvmi_nodes:bedrock", {
sounds = { footstep = "jvmi_nodes_stone_footstep" },
tiles = {"jvmi_nodes_bedrock.png"},
})
core.register_alias("mapgen_bedrock", "jvmi_nodes:stone")
core.register_alias("mapgen_bedrock", "jvmi_nodes:bedrock")
core.register_node("jvmi_nodes:stone", {
description = S("Stone"),
+4 -8
View File
@@ -54,10 +54,12 @@ end
away without finding anything.
If this function gets called before the world has finished generating, it will automatically
delay
delay for a bit and try again. After too many delays, it will simply abort the attempt.
Args:
- player:ObjectRef - the player to relocate
player:ObjectRef - the player to relocate
delays:int - how many times we've had to defer finding a location (0 by default)
]]--
function private.set_starting_pos(player_name, delays)
delays = delays or 0
@@ -105,7 +107,6 @@ function private.set_starting_pos(player_name, delays)
end
end
--[[
Set up privledges and settings for a new player.
@@ -129,8 +130,3 @@ core.register_on_joinplayer(function(player, last_login)
private.setup_player(player)
private.set_starting_pos(player:get_player_name())
end)
-- Script ------------------------------------------------------------------------------------------
core.log("info", "jvmi_player loaded")