227 lines
5.4 KiB
Lua
Raw Normal View History

2022-11-21 16:12:22 -05:00
-- Solid nodes
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:autowasher", {
2022-11-21 16:12:22 -05:00
description = "Soviet Auto Washer",
tiles =
{
"soviet_machine.png",
"soviet_machine.png",
"soviet_machine.png",
"soviet_machine.png",
"soviet_machine.png",
"soviet_washer_auto.png"
},
paramtype2 = "facedir",
groups = {cracky = 3},
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:stove", {
2022-11-21 16:12:22 -05:00
description = "Soviet Gas Stove (DANGEROUS AS FUCK; CAN EXPLODE)",
tiles =
{
"soviet_stove_top.png",
"soviet_machine.png",
"soviet_machine.png",
"soviet_machine.png",
"soviet_machine.png",
"soviet_stove_front.png"
},
paramtype2 = "facedir",
groups = {cracky = 3},
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:concrete", {
2022-11-21 16:12:22 -05:00
description = "Concrete",
tiles = {"soviet_concrete.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
stairs.register_stair_and_slab(
"concrete",
"soviet:concrete",
2022-11-27 14:08:38 -05:00
{cracky = 3},
2022-11-21 16:12:22 -05:00
{"soviet_concrete.png"},
"Concrete Stair",
"Concrete Slab",
default.node_sound_stone_defaults(),
true
)
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:concrete_window", {
2022-11-21 16:12:22 -05:00
description = "Chunk of Concrete with a Window in it",
tiles = {"soviet_concrete_window.png"},
is_ground_content = false,
2022-11-27 14:08:38 -05:00
groups = {cracky = 3},
2022-11-21 16:12:22 -05:00
sounds = default.node_sound_stone_defaults(),
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:staircase_flooring", {
2022-11-21 16:12:22 -05:00
description = "Apt Building Staircase/Lobby Flooring",
tiles = {"soviet_staircase_flooring.png"},
is_ground_content = false,
2022-11-27 14:08:38 -05:00
groups = {cracky = 3},
2022-11-21 16:12:22 -05:00
sounds = default.node_sound_stone_defaults(),
})
stairs.register_stair_and_slab(
"staircase_flooring",
"soviet:staircase_flooring",
2022-11-27 14:08:38 -05:00
{cracky = 3},
2022-11-21 16:12:22 -05:00
{"soviet_staircase_flooring.png"},
"Apt Staircase/Lobby Flooring Stair",
"Apt Staircase/Lobby Flooring Slab",
default.node_sound_stone_defaults(),
true
)
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:glass",
2022-11-21 16:12:22 -05:00
{
description = "Glass Mosaic",
drawtype = "glasslike",
tiles = {"soviet_glass.png"},
inventory_image = minetest.inventorycube("soviet_glass.png"),
paramtype = "light",
use_texture_alpha = "blend",
sunlight_propagates = true,
sounds = default.node_sound_glass_defaults(),
is_ground_content = false,
2022-11-27 14:08:38 -05:00
groups = {cracky = 3},
2022-11-21 16:12:22 -05:00
})
-- Plantlike nodes
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:laundry_detergent", {
2022-11-21 16:12:22 -05:00
description = "Laundry Detergent Powder",
drawtype = "plantlike",
tiles = {"soviet_laundry_detergent.png"},
inventory_image = "soviet_laundry_detergent.png",
wield_image = "soviet_laundry_detergent.png",
paramtype = "light",
is_ground_content = false,
walkable = false,
selection_box =
{
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
groups = {dig_immediate = 3, attached_node = 1},
sounds = default.node_sound_sand_defaults(),
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:tea", {
2022-11-21 16:12:22 -05:00
description = "Glass of Tea",
drawtype = "plantlike",
tiles = {"soviet_tea.png"},
inventory_image = "soviet_tea.png",
wield_image = "soviet_tea.png",
paramtype = "light",
is_ground_content = false,
walkable = false,
selection_box =
{
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
2022-11-27 14:08:38 -05:00
groups = {cracky = 4, dig_immediate = 3, attached_node = 1},
2022-11-21 16:12:22 -05:00
sounds = default.node_sound_glass_defaults()
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:ceilling_light", {
2022-11-21 16:12:22 -05:00
description = "Ceilling Light",
drawtype = "plantlike",
tiles = {"soviet_lamp.png"},
inventory_image = "soviet_lamp.png",
wield_image = "soviet_lamp.png",
paramtype = "light",
use_texture_alpha = "blend",
light_source = 15,
is_ground_content = false,
walkable = false,
2022-11-27 14:08:38 -05:00
groups = {cracky = 3},
2022-11-21 16:12:22 -05:00
sounds = default.node_sound_glass_defaults(),
})
-- Nodeboxes
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:light_fixture", {
2022-11-21 16:12:22 -05:00
description = "Light Fixture",
tiles = {
"soviet_light.png",
"soviet_light.png",
"soviet_light.png",
"soviet_light.png",
"soviet_light.png",
"soviet_light.png"
},
drawtype = "nodebox",
light_source = 14,
paramtype2 = "facedir",
paramtype = "light",
groups = {cracky = 3},
node_box = {
type = "fixed",
fixed = {
{-0.1875, -0.125, 0.25, 0.1875, 0.3, 0.5},
}
}
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:transradio", {
2022-11-21 16:12:22 -05:00
description = "Transistor Radio Receiver",
tiles = {
"soviet_transradio_top.png",
"default_wood.png",
"soviet_transradio_right.png",
"soviet_transradio_left.png",
"soviet_transradio_back.png",
"soviet_transradio_front.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
2022-11-27 14:08:38 -05:00
groups = {cracky = 4},
2022-11-21 16:12:22 -05:00
node_box = {
type = "fixed",
fixed = {
{-0.375, -0.5, -0.1875, 0.4375, 0, 0.125},
{-0.375, 0, -0.125, -0.1875, 0.0625, -0.0625},
{-0.1875, 0.0625, -0.125, 0, 0.125, -0.0625},
{0, 0.125, -0.125, 0.1875, 0.1875, -0.0625},
{0.1875, 0.1875, -0.125, 0.375, 0.25, -0.0625},
}
}
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:concrete_thin", {
2022-11-21 16:12:22 -05:00
description = "Thin Concrete Wall",
tiles = {"soviet_concrete.png"},
is_ground_content = false,
2022-11-27 14:08:38 -05:00
groups = {cracky = 3},
2022-11-21 16:12:22 -05:00
sounds = default.node_sound_stone_defaults(),
paramtype2 = "wallmounted",
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "wallmounted",
fixed = {
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5},
}
}
})
2022-11-24 01:06:37 -05:00
minetest.register_node(":soviet:concrete_thin_lower", {
2022-11-21 16:12:22 -05:00
description = "Thin Concrete Wall",
tiles = {"soviet_concrete.png"},
is_ground_content = false,
2022-11-27 14:08:38 -05:00
groups = {cracky = 3},
2022-11-21 16:12:22 -05:00
sounds = default.node_sound_stone_defaults(),
paramtype2 = "facedir",
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, .0, 0.4375, 0.5, 0.5, 0.5},
}
}
})