forked from rudzik8/mcl_decor
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:
parent
114f3a24fe
commit
1f87c1ddfd
54
api.lua
54
api.lua
|
@ -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)
|
function mcl_decor.register_chair_and_table(name, desc, name2, desc2, material, tiles)
|
||||||
-- chair part
|
-- chair part
|
||||||
minetest.register_node(name, {
|
minetest.register_node(name, {
|
||||||
|
|
|
@ -4,7 +4,13 @@ Coalquartz Tile=Уголекварцевая плитка
|
||||||
Coalquartz Stair=Уголекварцевая ступенька
|
Coalquartz Stair=Уголекварцевая ступенька
|
||||||
Coalquartz Slab=Уголекварцевая плита
|
Coalquartz Slab=Уголекварцевая плита
|
||||||
Double Coalquartz Slab=Двойная уголекварцевая плита
|
Double Coalquartz Slab=Двойная уголекварцевая плита
|
||||||
Gravel Path=Дорожка из гравия
|
Gravel Path=Гравийная дорожка
|
||||||
|
Cobblestone Path=Булыжниковая дорожка
|
||||||
|
Stone Path=Каменная дорожка
|
||||||
|
Granite Path=Гранитовая дорожка
|
||||||
|
Andesite Path=Андезитовая дорожка
|
||||||
|
Diorite Path=Диоритовая дорожка
|
||||||
|
Netherrack Path=Адская каменная дорожка
|
||||||
Rainbow Block=Радужный блок
|
Rainbow Block=Радужный блок
|
||||||
Table Lamp=Настольная лампа
|
Table Lamp=Настольная лампа
|
||||||
Oak Chair=Дубовый стул
|
Oak Chair=Дубовый стул
|
||||||
|
|
|
@ -5,6 +5,12 @@ Coalquartz Stair=
|
||||||
Coalquartz Slab=
|
Coalquartz Slab=
|
||||||
Double Coalquartz Slab=
|
Double Coalquartz Slab=
|
||||||
Gravel Path=
|
Gravel Path=
|
||||||
|
Cobblestone Path=
|
||||||
|
Stone Path=
|
||||||
|
Granite Path=
|
||||||
|
Andesite Path=
|
||||||
|
Diorite Path=
|
||||||
|
Netherrack Path=
|
||||||
Rainbow Block=
|
Rainbow Block=
|
||||||
Table Lamp=
|
Table Lamp=
|
||||||
Oak Chair=
|
Oak Chair=
|
||||||
|
|
129
register.lua
129
register.lua
|
@ -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"))
|
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 ---
|
--- Paths ---
|
||||||
minetest.register_node("mcl_decor:gravel_path", {
|
mcl_decor.register_path(
|
||||||
description = S("Gravel Path"),
|
"mcl_decor:gravel_path",
|
||||||
tiles = {
|
S("Gravel Path"),
|
||||||
|
"mcl_core:gravel",
|
||||||
"default_gravel.png",
|
"default_gravel.png",
|
||||||
},
|
"shovely",
|
||||||
wield_image = "mcl_decor_gravel_path.png^default_gravel.png^" ..
|
mcl_sounds.node_sound_dirt_defaults({footstep = {name="default_gravel_footstep", gain=0.45}})
|
||||||
"mcl_decor_gravel_path.png^[makealpha:255,126,126",
|
)
|
||||||
inventory_image = "mcl_decor_gravel_path.png^default_gravel.png^" ..
|
mcl_decor.register_path(
|
||||||
"mcl_decor_gravel_path.png^[makealpha:255,126,126",
|
"mcl_decor:cobble_path",
|
||||||
groups = {handy=1, shovely=1, attached_node=1, dig_by_piston=1, deco_block=1, material_sand=1},
|
S("Cobblestone Path"),
|
||||||
drawtype = "nodebox",
|
"mcl_core:cobble",
|
||||||
paramtype = "light",
|
"default_cobble.png",
|
||||||
sunlight_propagates = true,
|
"pickaxey",
|
||||||
buildable_to = true,
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
walkable = true,
|
)
|
||||||
node_box = {
|
mcl_decor.register_path(
|
||||||
type = "fixed",
|
"mcl_decor:stone_path",
|
||||||
fixed = {
|
S("Stone Path"),
|
||||||
{-0.4375, -0.5, -0.4375, -0.125, -0.4375, -0.125},
|
"mcl_core:stone",
|
||||||
{-0.125, -0.5, -0.0625, 0.0625, -0.4375, 0.125},
|
"default_stone.png",
|
||||||
{-0.3125, -0.5, 0.1875, -0.0625, -0.4375, 0.4375},
|
"pickaxey",
|
||||||
{0.0625, -0.5, -0.375, 0.25, -0.4375, -0.1875},
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
{0.125, -0.5, 0.125, 0.375, -0.4375, 0.375},
|
)
|
||||||
{0.25, -0.5, -0.125, 0.375, -0.4375, 0},
|
mcl_decor.register_path(
|
||||||
{-0.4375, -0.5, 0, -0.3125, -0.4375, 0.125},
|
"mcl_decor:granite_path",
|
||||||
}
|
S("Granite Path"),
|
||||||
},
|
"mcl_core:granite",
|
||||||
selection_box = {
|
"mcl_core_granite.png",
|
||||||
type = "fixed",
|
"pickaxey",
|
||||||
fixed = {
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
)
|
||||||
}
|
mcl_decor.register_path(
|
||||||
},
|
"mcl_decor:andesite_path",
|
||||||
collision_box = {
|
S("Andesite Path"),
|
||||||
type = "fixed",
|
"mcl_core:andesite",
|
||||||
fixed = {
|
"mcl_core_andesite.png",
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
"pickaxey",
|
||||||
}
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
},
|
)
|
||||||
_mcl_blast_resistance = 0.3,
|
mcl_decor.register_path(
|
||||||
_mcl_hardness = 0.3,
|
"mcl_decor:diorite_path",
|
||||||
sounds = mcl_sounds.node_sound_dirt_defaults({
|
S("Diorite Path"),
|
||||||
footstep = {name="default_gravel_footstep", gain=0.45},
|
"mcl_core:diorite",
|
||||||
}),
|
"mcl_core_diorite.png",
|
||||||
})
|
"pickaxey",
|
||||||
minetest.register_craft({
|
mcl_sounds.node_sound_stone_defaults()
|
||||||
output = "mcl_decor:gravel_path 16",
|
)
|
||||||
recipe = {
|
mcl_decor.register_path(
|
||||||
{"mcl_core:gravel", "", "mcl_core:gravel"},
|
"mcl_decor:netherrack_path",
|
||||||
{"", "mcl_core:gravel", ""},
|
S("Netherrack Path"),
|
||||||
{"mcl_core:gravel", "", "mcl_core:gravel"}
|
"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 ---
|
--- Table Lamp ---
|
||||||
minetest.register_node("mcl_decor:table_lamp", {
|
minetest.register_node("mcl_decor:table_lamp", {
|
||||||
|
|
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 208 B |
Binary file not shown.
Before Width: | Height: | Size: 194 B |
Loading…
Reference in New Issue