forked from mtcontrib/darkage
Remove warnings from deprecated definitions and functions (#6)
Co-authored-by: sys4 <bricassa@sys4.fr>
This commit is contained in:
parent
befafde095
commit
e5e49ed965
18
glass.lua
18
glass.lua
@ -12,7 +12,7 @@ minetest.register_node("darkage:glass", {
|
|||||||
description = "Clean Medieval Glass",
|
description = "Clean Medieval Glass",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_glass.png"},
|
tiles = {"darkage_glass.png"},
|
||||||
use_texture_alpha=false,
|
use_texture_alpha = "clip",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
|
||||||
@ -35,7 +35,7 @@ minetest.register_node("darkage:glass_round", {
|
|||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = { "darkage_glass_round.png" },
|
tiles = { "darkage_glass_round.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = "clip",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1},
|
groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1},
|
||||||
@ -57,7 +57,7 @@ minetest.register_node("darkage:glass_square", {
|
|||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = { "darkage_glass_square.png" },
|
tiles = { "darkage_glass_square.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = "clip",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1},
|
groups = {cracky=3,oddly_breakable_by_hand=3, not_cuttable=1},
|
||||||
@ -83,7 +83,7 @@ minetest.register_node("darkage:glow_glass", {
|
|||||||
description = "Medieval Glow Glass",
|
description = "Medieval Glow Glass",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_glass.png"},
|
tiles = {"darkage_glass.png"},
|
||||||
use_texture_alpha=true,
|
use_texture_alpha = "clip",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = default.LIGHT_MAX-3,
|
light_source = default.LIGHT_MAX-3,
|
||||||
@ -114,7 +114,7 @@ minetest.register_node("darkage:glow_glass_round", {
|
|||||||
description = "Medieval Round Glow Glass",
|
description = "Medieval Round Glow Glass",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_glass_round.png"},
|
tiles = {"darkage_glass_round.png"},
|
||||||
use_texture_alpha=true,
|
use_texture_alpha = "clip",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = default.LIGHT_MAX-3,
|
light_source = default.LIGHT_MAX-3,
|
||||||
@ -144,7 +144,7 @@ minetest.register_node("darkage:glow_glass_square", {
|
|||||||
description = "Medieval Square Glow Glass",
|
description = "Medieval Square Glow Glass",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_glass_square.png"},
|
tiles = {"darkage_glass_square.png"},
|
||||||
use_texture_alpha=true,
|
use_texture_alpha = "clip",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = default.LIGHT_MAX-3,
|
light_source = default.LIGHT_MAX-3,
|
||||||
@ -181,7 +181,7 @@ if minetest.get_modpath("unifieddyes") then
|
|||||||
description = "Milky Medieval Glass (Good for colorization)",
|
description = "Milky Medieval Glass (Good for colorization)",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_milk_glass.png"},
|
tiles = {"darkage_milk_glass.png"},
|
||||||
use_texture_alpha=true,
|
use_texture_alpha = "blend",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
@ -219,7 +219,7 @@ if minetest.get_modpath("unifieddyes") then
|
|||||||
description = "Milky Medieval Round Glass (Good for colorization)",
|
description = "Milky Medieval Round Glass (Good for colorization)",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_milk_glass_round.png"},
|
tiles = {"darkage_milk_glass_round.png"},
|
||||||
use_texture_alpha=true,
|
use_texture_alpha = "blend",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
@ -257,7 +257,7 @@ if minetest.get_modpath("unifieddyes") then
|
|||||||
description = "Milky Medieval Square Glass (Good for colorization)",
|
description = "Milky Medieval Square Glass (Good for colorization)",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"darkage_milk_glass_square.png"},
|
tiles = {"darkage_milk_glass_square.png"},
|
||||||
use_texture_alpha=true,
|
use_texture_alpha = "blend",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "color",
|
paramtype2 = "color",
|
||||||
palette = "unifieddyes_palette_extended.png",
|
palette = "unifieddyes_palette_extended.png",
|
||||||
|
@ -153,8 +153,7 @@ local function generate_claylike(data, varea, name, minp, maxp, seed, chance, mi
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local mgparams = minetest.get_mapgen_params()
|
local seed = minetest.get_mapgen_setting("seed")
|
||||||
local seed = mgparams.seed
|
|
||||||
|
|
||||||
|
|
||||||
-- Generate desert stone with iron in derset.
|
-- Generate desert stone with iron in derset.
|
||||||
|
Loading…
Reference in New Issue
Block a user