Add doors to MCL - initial commit
This commit is contained in:
parent
fa7cb97636
commit
0d1f512465
|
@ -87,4 +87,5 @@ read_globals = {
|
||||||
"mcl_stairs",
|
"mcl_stairs",
|
||||||
"mcl_core",
|
"mcl_core",
|
||||||
"mcl_util",
|
"mcl_util",
|
||||||
|
"mcl_doors",
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,8 @@
|
||||||
"mcl_walls",
|
"mcl_walls",
|
||||||
"mcl_stairs",
|
"mcl_stairs",
|
||||||
"mcl_core",
|
"mcl_core",
|
||||||
"mcl_util"
|
"mcl_util",
|
||||||
|
"mcl_doors"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,8 +95,8 @@ doors.register('everness:door_crystal_wood', {
|
||||||
sounds = Everness.node_sound_glass_defaults(),
|
sounds = Everness.node_sound_glass_defaults(),
|
||||||
sound_open = 'everness_door_glass_open',
|
sound_open = 'everness_door_glass_open',
|
||||||
sound_close = 'everness_door_glass_close',
|
sound_close = 'everness_door_glass_close',
|
||||||
gain_open = 0.3,
|
gain_open = 0.2,
|
||||||
gain_close = 0.25,
|
gain_close = 0.15,
|
||||||
recipe = {
|
recipe = {
|
||||||
{ 'everness:crystal_wood', 'everness:crystal_wood' },
|
{ 'everness:crystal_wood', 'everness:crystal_wood' },
|
||||||
{ 'everness:crystal_wood', 'everness:crystal_wood' },
|
{ 'everness:crystal_wood', 'everness:crystal_wood' },
|
||||||
|
@ -114,8 +114,8 @@ doors.register_trapdoor('everness:trapdoor_crystal_wood', {
|
||||||
sounds = Everness.node_sound_glass_defaults(),
|
sounds = Everness.node_sound_glass_defaults(),
|
||||||
sound_open = 'everness_door_glass_open',
|
sound_open = 'everness_door_glass_open',
|
||||||
sound_close = 'everness_door_glass_close',
|
sound_close = 'everness_door_glass_close',
|
||||||
gain_open = 0.3,
|
gain_open = 0.2,
|
||||||
gain_close = 0.25,
|
gain_close = 0.15,
|
||||||
groups = { node = 1, cracky = 3, oddly_breakable_by_hand = 3, door = 1 },
|
groups = { node = 1, cracky = 3, oddly_breakable_by_hand = 3, door = 1 },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
2
mod.conf
2
mod.conf
|
@ -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
|
||||||
|
|
|
@ -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 |
Ŝarĝante…
Reference in New Issue