This commit is contained in:
Andrew Miner
2026-10-26 11:07:59 -06:00
parent bfd7f78a69
commit a822ebbdfd
25 changed files with 178 additions and 181 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local core = _G.core
-- Constants ---------------------------------------------------------------------------------------
+1 -1
View File
@@ -1,6 +1,6 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local core = _G.core
-- Script ------------------------------------------------------------------------------------------
+9 -9
View File
@@ -1,11 +1,11 @@
-- Imports & Exports -------------------------------------------------------------------------------
local core = _G["core"]
local jvmi_constants = _G["jvmi_constants"]
-- Constants ---------------------------------------------------------------------------------------
local C = dofile(core.get_game_info().path.."/common/constants.lua")
local S = core.get_translator("jvmi_nodes")
@@ -13,11 +13,11 @@ local S = core.get_translator("jvmi_nodes")
core.register_node("jvmi_nodes:water_flowing", {
description = S("Flowing Water"),
drawtype = jvmi_constants.DRAW_TYPE.FLOWING_LIQUID,
drawtype = C.DRAW_TYPE.FLOWING_LIQUID,
tiles = {{
name = "jvmi_nodes_water_flowing_animated.png",
animation = {
type = jvmi_constants.ANIMATION_TYPE.VERTICAL_FRAMES,
type = C.ANIMATION_TYPE.VERTICAL_FRAMES,
aspect_w = 16,
aspect_h = 16,
length = 5.0,
@@ -34,12 +34,12 @@ core.register_node("jvmi_nodes:water_flowing", {
buildable_to = true,
drop = "",
drowning = 4,
liquidtype = jvmi_constants.LIQUID_TYPE.FLOWING,
liquidtype = C.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_viscosity = C.VISCOSITY.XX_FAST,
liquid_range = 7,
waving = jvmi_constants.WAVING.LIQUID_LIKE,
waving = C.WAVING.LIQUID_LIKE,
post_effect_color = "#033C5CCC",
groups = {},
})
@@ -47,7 +47,7 @@ core.register_node("jvmi_nodes:water_flowing", {
core.register_node("jvmi_nodes:water_source", {
description = S("Water"),
drawtype = "liquid",
waving = jvmi_constants.WAVING.LIQUID_LIKE,
waving = C.WAVING.LIQUID_LIKE,
tiles = {{
name = "jvmi_nodes_water_source_animated.png",
animation = {
@@ -59,7 +59,7 @@ core.register_node("jvmi_nodes:water_source", {
}},
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
is_ground_content = false,
use_texture_alpha = jvmi_constants.TEXTURE_ALPHA.BLEND,
use_texture_alpha = C.TEXTURE_ALPHA.BLEND,
paramtype = "light",
walkable = false,
pointable = false,
@@ -70,7 +70,7 @@ core.register_node("jvmi_nodes:water_source", {
liquidtype = "source",
liquid_alternative_flowing = "jvmi_nodes:water_flowing",
liquid_alternative_source = "jvmi_nodes:water_source",
liquid_viscosity = jvmi_constants.VISCOSITY.XX_FAST,
liquid_viscosity = C.VISCOSITY.XX_FAST,
liquid_renewable = true,
liquid_range = 7,
post_effect_color = "#033C5CCC",
-1
View File
@@ -2,4 +2,3 @@ name = jvmi_nodes
title = Jules Verne's Mysterious Island / Nodes
description = define the nodes which make up the world
author = tungstonminer
depends = jvmi_constants