Prepare mod for publishing, part 1

this commit includes: delete rainbow block completely for several reasons, add more paths, etc
This commit is contained in:
Mikita Wiśniewski 2022-03-23 14:10:46 +07:00
parent 114f3a24fe
commit 1f87c1ddfd
6 changed files with 125 additions and 74 deletions

54
api.lua
View File

@ -52,6 +52,60 @@ end
function mcl_decor.register_path(name, desc, material, tiles, sgroup, sounds)
minetest.register_node(name, {
description = desc,
tiles = {tiles},
wield_image = "mcl_decor_path_alpha.png^"..tiles.."^" ..
"mcl_decor_path_alpha.png^[makealpha:255,126,126",
inventory_image = "mcl_decor_path_alpha.png^"..tiles.."^" ..
"mcl_decor_path_alpha.png^[makealpha:255,126,126",
groups = {handy=1, [sgroup]=1, attached_node=1, dig_by_piston=1, deco_block=1},
drawtype = "nodebox",
paramtype = "light",
sunlight_propagates = true,
buildable_to = true,
walkable = true,
node_box = {
type = "fixed",
fixed = {
{-0.4375, -0.5, -0.4375, -0.125, -0.4375, -0.125},
{-0.125, -0.5, -0.0625, 0.0625, -0.4375, 0.125},
{-0.3125, -0.5, 0.1875, -0.0625, -0.4375, 0.4375},
{0.0625, -0.5, -0.375, 0.25, -0.4375, -0.1875},
{0.125, -0.5, 0.125, 0.375, -0.4375, 0.375},
{0.25, -0.5, -0.125, 0.375, -0.4375, 0},
{-0.4375, -0.5, 0, -0.3125, -0.4375, 0.125},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
}
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
}
},
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
sounds = sounds
})
minetest.register_craft({
output = name.." 16",
recipe = {
{material, "", material},
{"", material, ""},
{material, "", material}
}
})
end
function mcl_decor.register_chair_and_table(name, desc, name2, desc2, material, tiles)
-- chair part
minetest.register_node(name, {

View File

@ -4,7 +4,13 @@ Coalquartz Tile=Уголекварцевая плитка
Coalquartz Stair=Уголекварцевая ступенька
Coalquartz Slab=Уголекварцевая плита
Double Coalquartz Slab=Двойная уголекварцевая плита
Gravel Path=Дорожка из гравия
Gravel Path=Гравийная дорожка
Cobblestone Path=Булыжниковая дорожка
Stone Path=Каменная дорожка
Granite Path=Гранитовая дорожка
Andesite Path=Андезитовая дорожка
Diorite Path=Диоритовая дорожка
Netherrack Path=Адская каменная дорожка
Rainbow Block=Радужный блок
Table Lamp=Настольная лампа
Oak Chair=Дубовый стул

View File

@ -5,6 +5,12 @@ Coalquartz Stair=
Coalquartz Slab=
Double Coalquartz Slab=
Gravel Path=
Cobblestone Path=
Stone Path=
Granite Path=
Andesite Path=
Diorite Path=
Netherrack Path=
Rainbow Block=
Table Lamp=
Oak Chair=

View File

@ -28,80 +28,65 @@ minetest.register_craft({
})
mcl_stairs.register_stair_and_slab_simple("coalquartz_tile", "mcl_decor:coalquartz_tile", S("Coalquartz Stair"), S("Coalquartz Slab"), S("Double Coalquartz Slab"))
--- Gravel Path ---
minetest.register_node("mcl_decor:gravel_path", {
description = S("Gravel Path"),
tiles = {
"default_gravel.png",
},
wield_image = "mcl_decor_gravel_path.png^default_gravel.png^" ..
"mcl_decor_gravel_path.png^[makealpha:255,126,126",
inventory_image = "mcl_decor_gravel_path.png^default_gravel.png^" ..
"mcl_decor_gravel_path.png^[makealpha:255,126,126",
groups = {handy=1, shovely=1, attached_node=1, dig_by_piston=1, deco_block=1, material_sand=1},
drawtype = "nodebox",
paramtype = "light",
sunlight_propagates = true,
buildable_to = true,
walkable = true,
node_box = {
type = "fixed",
fixed = {
{-0.4375, -0.5, -0.4375, -0.125, -0.4375, -0.125},
{-0.125, -0.5, -0.0625, 0.0625, -0.4375, 0.125},
{-0.3125, -0.5, 0.1875, -0.0625, -0.4375, 0.4375},
{0.0625, -0.5, -0.375, 0.25, -0.4375, -0.1875},
{0.125, -0.5, 0.125, 0.375, -0.4375, 0.375},
{0.25, -0.5, -0.125, 0.375, -0.4375, 0},
{-0.4375, -0.5, 0, -0.3125, -0.4375, 0.125},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
}
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
}
},
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
sounds = mcl_sounds.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.45},
}),
})
minetest.register_craft({
output = "mcl_decor:gravel_path 16",
recipe = {
{"mcl_core:gravel", "", "mcl_core:gravel"},
{"", "mcl_core:gravel", ""},
{"mcl_core:gravel", "", "mcl_core:gravel"}
}
})
--- Paths ---
mcl_decor.register_path(
"mcl_decor:gravel_path",
S("Gravel Path"),
"mcl_core:gravel",
"default_gravel.png",
"shovely",
mcl_sounds.node_sound_dirt_defaults({footstep = {name="default_gravel_footstep", gain=0.45}})
)
mcl_decor.register_path(
"mcl_decor:cobble_path",
S("Cobblestone Path"),
"mcl_core:cobble",
"default_cobble.png",
"pickaxey",
mcl_sounds.node_sound_stone_defaults()
)
mcl_decor.register_path(
"mcl_decor:stone_path",
S("Stone Path"),
"mcl_core:stone",
"default_stone.png",
"pickaxey",
mcl_sounds.node_sound_stone_defaults()
)
mcl_decor.register_path(
"mcl_decor:granite_path",
S("Granite Path"),
"mcl_core:granite",
"mcl_core_granite.png",
"pickaxey",
mcl_sounds.node_sound_stone_defaults()
)
mcl_decor.register_path(
"mcl_decor:andesite_path",
S("Andesite Path"),
"mcl_core:andesite",
"mcl_core_andesite.png",
"pickaxey",
mcl_sounds.node_sound_stone_defaults()
)
mcl_decor.register_path(
"mcl_decor:diorite_path",
S("Diorite Path"),
"mcl_core:diorite",
"mcl_core_diorite.png",
"pickaxey",
mcl_sounds.node_sound_stone_defaults()
)
mcl_decor.register_path(
"mcl_decor:netherrack_path",
S("Netherrack Path"),
"mcl_nether:netherrack",
"mcl_nether_netherrack.png",
"pickaxey",
mcl_sounds.node_sound_stone_defaults()
)
--- Rainbow Block ---
minetest.register_node("mcl_decor:rainbow_block", {
description = S("Rainbow Block"),
tiles = {"mcl_decor_rainbow_block.png"},
is_ground_content = false,
light_source = minetest.LIGHT_MAX,
groups = {handy=1, building_block=1, material_glass=1},
sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_blast_resistance = 0.9,
_mcl_hardness = 0.9,
})
minetest.register_craft({
output = "mcl_decor:rainbow_block",
recipe = {
{"mcl_dye:red", "mcl_dye:orange", "mcl_dye:yellow"},
{"mcl_dye:green", "mcl_nether:glowstone", "mcl_dye:lightblue"},
{"mcl_dye:blue", "mcl_dye:violet", "mcl_dye:pink"}
}
})
--- Table Lamp ---
minetest.register_node("mcl_decor:table_lamp", {

View File

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B