New Fire Texture, Change Liquid Speeds, Lava now spreads Fire

This commit is contained in:
IamPyu
2024-11-15 23:04:58 -06:00
parent 10243aba44
commit 7b0252863b
7 changed files with 24 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ PyuTest.make_building_blocks = function(name, desc, tex, colortint, cgroups, ext
end
PyuTest.make_liquid = function(name, desc, groups, texture, speed, extra_conf)
local function make_liquid_flags(liquidtype)
local function make_liquid_flags(liquidtype, extra_conf2)
local drawtype = ""
if liquidtype == "source" then
@@ -230,7 +230,7 @@ PyuTest.make_liquid = function(name, desc, groups, texture, speed, extra_conf)
backface_culling = true
}
} or nil
}, extra_conf or {})
}, PyuTest.util.tableconcat(extra_conf or {}, extra_conf2 or {}))
return t
end
@@ -242,4 +242,9 @@ PyuTest.make_liquid = function(name, desc, groups, texture, speed, extra_conf)
liquid_source = 1
}), { texture }, make_liquid_flags("source"))
PyuTest.make_node(name .. "_flowing", "Flowing " .. desc, g, { texture }, make_liquid_flags("flowing"))
PyuTest.make_node(name .. "_infinite", "Infinite " .. desc, PyuTest.util.tableconcat(g, {
not_in_creative_inventory = 0
}), { texture }, make_liquid_flags("source", {
liquid_alternative_flowing = name .. "_infinite",
}))
end

View File

@@ -2,7 +2,8 @@ PyuTest.make_node("pyutest_blocks:fire", "Fire", {
dig_immediate = 3,
oddly_breakable_by_hand = PyuTest.BLOCK_FAST,
emits_heat = 1,
not_in_creative_inventory = 1
not_in_creative_inventory = 1,
fire_spreading = 1
}, {
{
name = "pyutest-fire-animated.png",
@@ -10,7 +11,7 @@ PyuTest.make_node("pyutest_blocks:fire", "Fire", {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1
length = 1.2
}
}
}, {
@@ -27,7 +28,7 @@ PyuTest.make_node("pyutest_blocks:fire", "Fire", {
minetest.register_abm({
label = "Fire Spread",
nodenames = { "group:flammable" },
neighbors = { "pyutest_blocks:fire" },
neighbors = { "group:fire_spreading" },
interval = 1,
chance = 4,
action = function(pos)

View File

@@ -2,7 +2,7 @@ PyuTest.make_liquid("pyutest_blocks:water", "Water", {
water = 1,
freezable = 1,
heatable = 1
}, "pyutest-water.png", 1, {
}, "pyutest-water.png", 0, {
post_effect_color = { a = 60, r = 24.7, g = 46.3, b = 89.4 },
paramtype2 = "color",
})
@@ -11,11 +11,12 @@ PyuTest.make_liquid("pyutest_blocks:lava", "Lava", {
lava = 1,
coolable = 1,
emits_heat = 1,
}, "pyutest-lava.png", 5, {
fire_spreading = 1
}, "pyutest-lava.png", 3, {
damage_per_second = 4,
light_source = 8
})
PyuTest.make_liquid("pyutest_blocks:oil", "Oil", {}, "pyutest-oil.png", 3)
PyuTest.make_liquid("pyutest_blocks:liquid_acid", "Acid", {}, "pyutest-acid.png", 7, {
PyuTest.make_liquid("pyutest_blocks:liquid_acid", "Acid", {}, "pyutest-acid.png", 5, {
damage_per_second = 4
})

View File

@@ -13,6 +13,14 @@ minetest.register_on_joinplayer(function (player)
player:set_lighting({
volumetric_light = { strength = 0.1 },
saturation = 1.1,
shadows = { intensity = 0.33 },
exposure = {
luminance_min = -3.5,
luminance_max = -2.5,
exposure_correction = 0.35,
speed_dark_bright = 1500,
speed_bright_dark = 700,
},
})
-- creative mode privs