mesecraft/mods/ITEMS/holiday_lights/nodes.lua

300 lines
9.5 KiB
Lua

-- White String Lights
minetest.register_node("holiday_lights:lights_white", {
description = "White String Lights",
tiles = {"holiday_lights_white.png"},
inventory_image = "holiday_lights_white.png",
wield_image = "holiday_lights_white.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Red String Lights
minetest.register_node("holiday_lights:lights_red", {
description = "Red String Lights",
tiles = {"holiday_lights_red.png"},
inventory_image = "holiday_lights_red.png",
wield_image = "holiday_lights_red.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Green String Lights
minetest.register_node("holiday_lights:lights_green", {
description = "Green String Lights",
tiles = {"holiday_lights_green.png"},
inventory_image = "holiday_lights_green.png",
wield_image = "holiday_lights_green.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Blue String Lights
minetest.register_node("holiday_lights:lights_blue", {
description = "Blue String Lights",
tiles = {"holiday_lights_blue.png"},
inventory_image = "holiday_lights_blue.png",
wield_image = "holiday_lights_blue.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Yellow String Lights
minetest.register_node("holiday_lights:lights_yellow", {
description = "Yellow String Lights",
tiles = {"holiday_lights_yellow.png"},
inventory_image = "holiday_lights_yellow.png",
wield_image = "holiday_lights_yellow.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Purple String Lights
minetest.register_node("holiday_lights:lights_purple", {
description = "Purple String Lights",
tiles = {"holiday_lights_purple.png"},
inventory_image = "holiday_lights_purple.png",
wield_image = "holiday_lights_purple.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Orange String Lights
minetest.register_node("holiday_lights:lights_orange", {
description = "Orange String Lights",
tiles = {"holiday_lights_orange.png"},
inventory_image = "holiday_lights_orange.png",
wield_image = "holiday_lights_orange.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Pink String Lights
minetest.register_node("holiday_lights:lights_pink", {
description = "Pink String Lights",
tiles = {"holiday_lights_pink.png"},
inventory_image = "holiday_lights_pink.png",
wield_image = "holiday_lights_pink.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Rainbow String Lights
minetest.register_node("holiday_lights:lights_rainbow", {
description = "Rainbow String Lights",
tiles = {"holiday_lights_rainbow.png"},
inventory_image = "holiday_lights_rainbow.png",
wield_image = "holiday_lights_rainbow.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Festive String Lights
minetest.register_node("holiday_lights:lights_festive", {
description = "Festive String Lights",
tiles = {"holiday_lights_festive.png"},
inventory_image = "holiday_lights_festive.png",
wield_image = "holiday_lights_festive.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Spooky String Lights
minetest.register_node("holiday_lights:lights_spooky", {
description = "Spooky String Lights",
tiles = {"holiday_lights_spooky.png"},
inventory_image = "holiday_lights_spooky.png",
wield_image = "holiday_lights_spooky.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Patriotic String Lights
minetest.register_node("holiday_lights:lights_patriotic", {
description = "Patriotic String Lights",
tiles = {"holiday_lights_patriotic.png"},
inventory_image = "holiday_lights_patriotic.png",
wield_image = "holiday_lights_patriotic.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})
-- Icy String Lights
minetest.register_node("holiday_lights:lights_icy", {
description = "Icy String Lights",
tiles = {"holiday_lights_icicle.png"},
inventory_image = "holiday_lights_icicle.png",
wield_image = "holiday_lights_icicle.png",
sunlight_propagates = true,
walkable = false,
climbable = false,
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
legacy_wallmounted = true,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
light_source = 8,
paramtype2 = "wallmounted",
groups = {snappy = 3},
sounds = default.node_sound_leaves_defaults(),
})