Add coral nodes tree blocks and adjust coral bones tree schematic

This commit is contained in:
Juraj Vajda 2023-04-04 16:37:50 -04:00
parent c70d5956f7
commit abfbca51b0
10 changed files with 8977 additions and 6763 deletions

File diff suppressed because it is too large Load Diff

View File

@ -393,6 +393,23 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = 'everness:coral_bones_brick 4',
recipe = {
{ 'everness:coral_bones_block', 'everness:coral_bones_block' },
{ 'everness:coral_bones_block', 'everness:coral_bones_block' },
}
})
minetest.register_craft({
output = 'everness:coral_bones_block 9',
recipe = {
{ 'everness:coral_bones', 'everness:coral_bones', 'everness:coral_bones' },
{ 'everness:coral_bones', 'everness:coral_bones', 'everness:coral_bones' },
{ 'everness:coral_bones', 'everness:coral_bones', 'everness:coral_bones' },
}
})
minetest.register_craft({ minetest.register_craft({
output = 'everness:crystal_sandstone 4', output = 'everness:crystal_sandstone 4',
recipe = { recipe = {

View File

@ -220,6 +220,7 @@ register_coral_grass_decoration(0.03, 0.03, 1)
-- --
local deco_id_coral_bones_tree = minetest.get_decoration_id('everness:coral_forest_coral_bones_tree') local deco_id_coral_bones_tree = minetest.get_decoration_id('everness:coral_forest_coral_bones_tree')
local coral_bones_tree_size = { x = 16, y = 35, z = 16 }
minetest.set_gen_notify('decoration', { deco_id_coral_bones_tree }) minetest.set_gen_notify('decoration', { deco_id_coral_bones_tree })
@ -231,7 +232,10 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
-- Coral bone tree - fix light -- Coral bone tree - fix light
-- --
for _, pos in ipairs(gennotify['decoration#' .. deco_id_coral_bones_tree] or {}) do for _, pos in ipairs(gennotify['decoration#' .. deco_id_coral_bones_tree] or {}) do
minetest.fix_light(vector.offset(pos, -1, -1, -1), vector.offset(pos, 14, 35, 14)) minetest.fix_light(
vector.round(vector.new(pos.x - (coral_bones_tree_size.x / 2), pos.y, pos.z - (coral_bones_tree_size.z / 2))),
vector.round(vector.new(pos.x + (coral_bones_tree_size.x / 2), pos.y + coral_bones_tree_size.y, pos.z + (coral_bones_tree_size.z / 2)))
)
end end
end end
end) end)

View File

@ -235,7 +235,7 @@ mcl_stairs.register_stair_and_slab(
mcl_stairs.register_stair_and_slab( mcl_stairs.register_stair_and_slab(
'cursed_brick', 'cursed_brick',
'everness:cursed_brick', 'everness:cursed_brick',
{ pickaxey = 2 }, { pickaxey = 1 },
{ 'everness_cursed_brick.png' }, { 'everness_cursed_brick.png' },
S('Cursed Brick Stair'), S('Cursed Brick Stair'),
S('Cursed Brick Slab'), S('Cursed Brick Slab'),
@ -249,7 +249,7 @@ mcl_stairs.register_stair_and_slab(
mcl_stairs.register_stair_and_slab( mcl_stairs.register_stair_and_slab(
'cursed_brick_with_growth', 'cursed_brick_with_growth',
'everness:cursed_brick_with_growth', 'everness:cursed_brick_with_growth',
{ pickaxey = 2 }, { pickaxey = 1 },
{ 'everness_cursed_brick_with_growth.png' }, { 'everness_cursed_brick_with_growth.png' },
S('Cursed Brick with Growth Stair'), S('Cursed Brick with Growth Stair'),
S('Cursed Brick with Growth Slab'), S('Cursed Brick with Growth Slab'),
@ -260,6 +260,34 @@ mcl_stairs.register_stair_and_slab(
nil nil
) )
mcl_stairs.register_stair_and_slab(
'coral_bones_block',
'everness:coral_bones_block',
{ pickaxey = 1 },
{ 'everness_coral_bones_block.png' },
S('Coral Bones Block Stair'),
S('Coral Bones Block Slab'),
Everness.node_sound_stone_defaults(),
6,
2,
S('Double Coral Bones Block Slab'),
nil
)
mcl_stairs.register_stair_and_slab(
'coral_bones_brick',
'everness:coral_bones_brick',
{ pickaxey = 1 },
{ 'everness_coral_bones_brick.png' },
S('Coral Bones Brick Stair'),
S('Coral Bones Brick Slab'),
Everness.node_sound_stone_defaults(),
6,
2,
S('Double Coral Bones Brick Slab'),
nil
)
-- Quartz -- Quartz
mcl_stairs.register_stair_and_slab( mcl_stairs.register_stair_and_slab(

View File

@ -458,8 +458,49 @@ Everness:register_node('everness:coral_bones', {
stone = 1, stone = 1,
-- MCL -- MCL
pickaxey = 1, pickaxey = 1,
building_block = 1
},
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
sounds = Everness.node_sound_stone_defaults(),
})
Everness:register_node('everness:coral_bones_block', {
description = S('Coral Bones Block'),
tiles = { 'everness_coral_bones_block.png' },
groups = {
-- MTG
cracky = 2,
-- MCL
pickaxey = 1,
sandstone = 1,
normal_sandstone = 1,
building_block = 1, building_block = 1,
coral = 2, material_stone = 1,
-- ALL
stone = 1
},
_mcl_hardness = 1.5,
_mcl_blast_resistance = 6,
sounds = Everness.node_sound_stone_defaults(),
})
Everness:register_node('everness:coral_bones_brick', {
description = S('Coral Bones Brick'),
paramtype2 = 'facedir',
place_param2 = 0,
tiles = { 'everness_coral_bones_brick.png' },
groups = {
-- MTG
cracky = 2,
-- MCL
pickaxey = 1,
sandstone = 1,
normal_sandstone = 1,
building_block = 1,
material_stone = 1,
-- ALL
stone = 1
}, },
_mcl_hardness = 1.5, _mcl_hardness = 1.5,
_mcl_blast_resistance = 6, _mcl_blast_resistance = 6,

View File

@ -538,3 +538,27 @@ stairs.register_stair_and_slab(
Everness.node_sound_glass_defaults(), Everness.node_sound_glass_defaults(),
true true
) )
-- Coral Bones
stairs.register_stair_and_slab(
'coral_bones_block',
'everness:coral_bones_block',
{ cracky = 2, stone = 1 },
{ 'everness_coral_bones_block.png' },
S('Coral Bones Block Stair'),
S('Coral Bones Block Slab'),
Everness.node_sound_stone_defaults(),
true
)
stairs.register_stair_and_slab(
'coral_bones_brick',
'everness:coral_bones_brick',
{ cracky = 2, stone = 1 },
{ 'everness_coral_bones_brick.png' },
S('Coral Bones Brick Stair'),
S('Coral Bones Brick Slab'),
Everness.node_sound_stone_defaults(),
true
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 266 B