Add doors to MCL - initial commit

This commit is contained in:
Juraj Vajda 2023-03-30 13:11:00 -04:00
parent bd2438540a
commit ca20248f16
8 changed files with 85 additions and 3 deletions

View File

@ -87,4 +87,5 @@ read_globals = {
"mcl_stairs", "mcl_stairs",
"mcl_core", "mcl_core",
"mcl_util", "mcl_util",
"mcl_doors",
} }

View File

@ -116,7 +116,8 @@
"mcl_walls", "mcl_walls",
"mcl_stairs", "mcl_stairs",
"mcl_core", "mcl_core",
"mcl_util" "mcl_util",
"mcl_doors"
] ]
} }
} }

View File

@ -1,6 +1,6 @@
name = everness name = everness
description = Never ending discovery in Everness mapgen. description = Never ending discovery in Everness mapgen.
depends = depends =
optional_depends = default, xpanes, doors, stairs, walls, x_obsidianmese, x_tumbleweed, x_farming, x_clay, mcl_core, mcl_fences, mcl_walls, mcl_stairs, mcl_util, mcl_autogroup optional_depends = default, xpanes, doors, stairs, walls, x_obsidianmese, x_tumbleweed, x_farming, x_clay, mcl_core, mcl_fences, mcl_walls, mcl_stairs, mcl_util, mcl_autogroup, mcl_doors
supported_games = minetest_game supported_games = minetest_game
min_minetest_version = 5.4 min_minetest_version = 5.4

View File

@ -17,7 +17,7 @@
--]] --]]
local S = minetest.get_translator(minetest.get_current_modname()) local S = minetest.get_translator(minetest.get_current_modname())
--[[]] --[[
minetest.register_on_mods_loaded(function() minetest.register_on_mods_loaded(function()
local everness_registered_nodes = {} local everness_registered_nodes = {}
local everness_registered_nodes_length = 0 local everness_registered_nodes_length = 0
@ -82,6 +82,7 @@ minetest.register_on_mods_loaded(function()
print('sand', everness_registered_nodes_sand_length) print('sand', everness_registered_nodes_sand_length)
print('total', everness_registered_nodes_length) print('total', everness_registered_nodes_length)
end) end)
--]]
--- ---
-- Fence / Gates -- Fence / Gates
@ -115,6 +116,18 @@ mcl_fences.register_fence_and_fence_gate(
Everness.node_sound_wood_defaults() Everness.node_sound_wood_defaults()
) )
mcl_fences.register_fence_and_fence_gate(
'gate_crystal_wood',
S('Crystal Wood Fence'),
S('Crystal Wood Fence Gate'),
'everness_crystal_wood.png',
{ handy = 1, axey = 1, flammable = 2, fence_wood = 1, fire_encouragement = 5, fire_flammability = 20 },
2,
15,
{ 'group:fence_wood' },
Everness.node_sound_wood_defaults()
)
--- ---
-- Walls -- Walls
--- ---
@ -839,3 +852,70 @@ mcl_stairs.register_stair_and_slab(
S('Double Crystal Forest Deep Ocean Sandstone Brick Slab'), S('Double Crystal Forest Deep Ocean Sandstone Brick Slab'),
nil nil
) )
-- Crystal Wood
mcl_stairs.register_stair_and_slab(
'crystal_wood',
'everness:crystal_wood',
{ choppy = 2, oddly_breakable_by_hand = 2, flammable = 2 },
{ 'everness_crystal_wood.png' },
S('Crystal Wood Stair'),
S('Crystal Wood Slab'),
Everness.node_sound_wood_defaults(),
6,
2,
S('Double Crystal Wood Slab'),
nil
)
---
-- Doors
---
mcl_doors:register_door('everness:door_bamboo', {
description = S('Bamboo Door'),
inventory_image = 'everness_door_bamboo_item.png',
groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 },
tiles_bottom = { 'everness_mcl_doors_door_bamboo_lower.png', 'everness_mcl_doors_door_bamboo_side_upper.png' },
tiles_top = { 'everness_mcl_doors_door_bamboo_upper.png', 'everness_mcl_doors_door_bamboo_side_upper.png' },
sounds = Everness.node_sound_bamboo_defaults({
dug = { name = 'everness_bamboo_hit', gain = 1.25 }
}),
sound_open = 'everness_door_bamboo_open',
sound_close = 'everness_door_bamboo_open',
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
})
minetest.register_craft({
output = 'everness:door_bamboo 3',
recipe = {
{ 'everness:bamboo_wood', 'everness:bamboo_wood' },
{ 'everness:bamboo_wood', 'everness:bamboo_wood' },
{ 'everness:bamboo_wood', 'everness:bamboo_wood' }
}
})
mcl_doors:register_trapdoor('everness:trapdoor_bamboo', {
description = S('Bamboo Trapdoor'),
tile_front = 'everness_door_trapdoor_bamboo.png',
tile_side = 'everness_mcl_doors_trapdoor_bamboo_side.png',
wield_image = 'everness_door_trapdoor_bamboo.png',
groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 },
sounds = Everness.node_sound_bamboo_defaults({
dug = { name = 'everness_bamboo_hit', gain = 1.25 }
}),
sound_open = 'everness_door_bamboo_open',
sound_close = 'everness_door_bamboo_open',
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
})
minetest.register_craft({
output = 'everness:trapdoor_bamboo',
recipe = {
{ 'everness:bamboo_wood', 'everness:bamboo_wood' },
{ 'everness:bamboo_wood', 'everness:bamboo_wood' },
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B