Added three kinds of doors, added crafting recipes for pots, glass vase
@ -182,6 +182,24 @@ minetest.register_craftitem(":multidecor:chainlink",
|
||||
inventory_image = "multidecor_chainlink.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":multidecor:terracotta_fragment",
|
||||
{
|
||||
description = "Terracotta Fragment",
|
||||
inventory_image = "multidecor_terracotta_fragment.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":multidecor:copper_and_tin",
|
||||
{
|
||||
description = "Copper And Tin",
|
||||
inventory_image = "multidecor_copper_and_tin.png"
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":multidecor:copper_and_zinc",
|
||||
{
|
||||
description = "Copper And Zinc",
|
||||
inventory_image = "multidecor_copper_and_zinc.png"
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "shapeless",
|
||||
@ -226,6 +244,27 @@ minetest.register_craft({
|
||||
cooktime = 10
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "multidecor:terracotta_fragment",
|
||||
recipe = "default:clay_lump",
|
||||
cooktime = 15
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "shapeless",
|
||||
output = "multidecor:copper_and_tin",
|
||||
recipe = {"default:copper_ingot", "default:tin_ingot"}
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "shapeless",
|
||||
output = "multidecor:copper_and_zinc",
|
||||
recipe = {"default:copper_ingot", "multidecor:zinc_ingot"}
|
||||
})
|
||||
|
||||
if minetest.get_modpath("moreores") then
|
||||
minetest.register_craft(
|
||||
{
|
||||
@ -286,9 +325,17 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
type = "cooking",
|
||||
output = "multidecor:brass_ingot",
|
||||
recipe = {"default:copper_ingot", "multidecor:zinc_ingot"}
|
||||
recipe = "multidecor:copper_and_tin",
|
||||
cooktime = 8
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "multidecor:brass_ingot",
|
||||
recipe = "multidecor:copper_and_zinc",
|
||||
cooktime = 9
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
BIN
craft_ingredients/textures/multidecor_copper_and_tin.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
craft_ingredients/textures/multidecor_copper_and_zinc.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
craft_ingredients/textures/multidecor_terracotta_fragment.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
@ -241,6 +241,7 @@ function register.register_door(name, base_def, add_def, craft_def)
|
||||
mesh = c_def2.add_properties.door.mesh_activated,
|
||||
collisionbox = base_def.bounding_boxes[1],
|
||||
selectionbox = base_def.bounding_boxes[1],
|
||||
use_texture_alpha = base_def.use_texture_alpha == "blend",
|
||||
backface_culling = false,
|
||||
static_save = true,
|
||||
on_activate = default_entity_door_on_activate,
|
||||
|
@ -18,6 +18,14 @@ register.register_door("high_dark_rusty_gate", {
|
||||
mesh_activated = "multidecor_high_dark_rusty_gate_activated.b3d",
|
||||
vel = 90 -- degrees per sec
|
||||
}
|
||||
},
|
||||
{
|
||||
recipe = {
|
||||
{"multidecor:high_dark_rusty_fence", "multidecor:steel_sheet", "multidecor:steel_sheet"},
|
||||
{"multidecor:steel_scissors", "", ""},
|
||||
{"", "", ""}
|
||||
},
|
||||
replacements = {{"multidecor:steel_scissors", "multidecor:steel_scissors"}}
|
||||
})
|
||||
|
||||
register.register_door("dark_rusty_gate", {
|
||||
@ -40,4 +48,95 @@ register.register_door("dark_rusty_gate", {
|
||||
mesh_activated = "multidecor_dark_rusty_gate_activated.b3d",
|
||||
vel = 90 -- degrees per sec
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "shapeless",
|
||||
recipe = {"multidecor:high_dark_rusty_gate", "multidecor:high_dark_rusty_gate"}
|
||||
})
|
||||
|
||||
register.register_door("wooden_door", {
|
||||
style = "modern",
|
||||
material = "wood",
|
||||
visual_scale = 0.5,
|
||||
description = "Wooden Door",
|
||||
mesh = "multidecor_modern_wooden_door.b3d",
|
||||
tiles = {
|
||||
"multidecor_modern_wooden_door_base.png",
|
||||
"multidecor_jungle_wood.png"
|
||||
},
|
||||
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 1.5, -0.35}}
|
||||
},
|
||||
{
|
||||
door = {
|
||||
mesh_open = "multidecor_modern_wooden_door_open.b3d",
|
||||
mesh_activated = "multidecor_modern_wooden_door_activated.b3d",
|
||||
vel = 90 -- degrees per sec
|
||||
}
|
||||
},
|
||||
{
|
||||
recipe = {
|
||||
{"multidecor:board", "multidecor:plank", "multidecor:steel_sheet"},
|
||||
{"multidecor:board", "multidecor:plank", "multidecor:steel_scissors"},
|
||||
{"", "", ""}
|
||||
},
|
||||
replacements = {{"multidecor:steel_scissors", "multidecor:steel_scissors"}}
|
||||
})
|
||||
|
||||
register.register_door("pine_glass_door", {
|
||||
style = "modern",
|
||||
material = "wood",
|
||||
visual_scale = 0.5,
|
||||
description = "Pine Glass Door",
|
||||
mesh = "multidecor_pine_glass_door.b3d",
|
||||
tiles = {
|
||||
"multidecor_pine_glass_door_base.png",
|
||||
"multidecor_metal_material.png",
|
||||
"multidecor_glass_material.png"
|
||||
},
|
||||
use_texture_alpha = "blend",
|
||||
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 1.5, -0.4}}
|
||||
},
|
||||
{
|
||||
door = {
|
||||
mesh_open = "multidecor_pine_glass_door_open.b3d",
|
||||
mesh_activated = "multidecor_pine_glass_door_activated.b3d",
|
||||
vel = 90 -- degrees per sec
|
||||
}
|
||||
},
|
||||
{
|
||||
recipe = {
|
||||
{"multidecor:pine_board", "xpanes:pane_flat", "multidecor:pine_plank"},
|
||||
{"multidecor:pine_board", "xpanes:pane_flat", "multidecor:pine_plank"},
|
||||
{"multidecor:steel_sheet", "multidecor:steel_scissors", ""}
|
||||
},
|
||||
replacements = {{"multidecor:steel_scissors", "multidecor:steel_scissors"}}
|
||||
})
|
||||
|
||||
register.register_door("technical_door", {
|
||||
style = "modern",
|
||||
material = "metal",
|
||||
visual_scale = 0.5,
|
||||
description = "Technical Door",
|
||||
mesh = "multidecor_technical_door.b3d",
|
||||
use_texture_alpha = "blend",
|
||||
tiles = {
|
||||
"multidecor_metal_material2.png",
|
||||
"multidecor_metal_material.png",
|
||||
"multidecor_metal_door_chainlink.png"
|
||||
},
|
||||
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 1.5, -0.4}}
|
||||
},
|
||||
{
|
||||
door = {
|
||||
mesh_open = "multidecor_technical_door_open.b3d",
|
||||
mesh_activated = "multidecor_technical_door_activated.b3d",
|
||||
vel = 90 -- degrees per sec
|
||||
}
|
||||
},
|
||||
{
|
||||
recipe = {
|
||||
{"multidecor:steel_sheet", "multidecor:chainlink", "multidecor:steel_scissors"},
|
||||
{"multidecor:steel_sheet", "multidecor:steel_sheet", ""},
|
||||
{"multidecor:steel_sheet", "multidecor:steel_sheet", ""}
|
||||
}
|
||||
})
|
||||
|
@ -259,7 +259,15 @@ local pots_defs = {
|
||||
"multidecor_terracotta_material.png^[multiply:brown",
|
||||
"default_dirt.png",
|
||||
},
|
||||
bounding_boxes = {{-0.4, -0.5, -0.4, 0.4, 0.25, 0.4}}
|
||||
bounding_boxes = {{-0.4, -0.5, -0.4, 0.4, 0.25, 0.4}},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
craft = {
|
||||
recipe = {
|
||||
{"multidecor:terracotta_fragment", "multidecor:terracotta_fragment", "multidecor:terracotta_fragment"},
|
||||
{"multidecor:terracotta_fragment", "default:dirt", "multidecor:terracotta_fragment"},
|
||||
{"dye:red", "", ""}
|
||||
}
|
||||
}
|
||||
},
|
||||
["green_small_flowerpot"] = {
|
||||
description = "Green Small Flowerpot (right-click to place wielded flower)",
|
||||
@ -269,7 +277,28 @@ local pots_defs = {
|
||||
"default_dirt.png"
|
||||
},
|
||||
bounding_boxes = {{-0.3, -0.5, -0.3, 0.3, 0.05, 0.3}},
|
||||
}
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
craft = {
|
||||
recipe = {
|
||||
{"multidecor:terracotta_fragment", "default:dirt", "dye:green"},
|
||||
{"multidecor:terracotta_fragment", "", ""},
|
||||
{"", "", ""}
|
||||
}
|
||||
}
|
||||
},
|
||||
["glass_vase"] = {
|
||||
description = "Glass Vase (right-click to place wielded flower)",
|
||||
mesh = "multidecor_glass_vase",
|
||||
tiles = {"multidecor_gloss.png^[opacity:120"},
|
||||
inventory_image = "multidecor_glass_vase_inv.png",
|
||||
use_texture_alpha = "blend",
|
||||
bounding_boxes = {{-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
craft = {
|
||||
type = "shapeless",
|
||||
recipe = {"xpanes:pane_flat", "xpanes:pane_flat"}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
for name, def in pairs(pots_defs) do
|
||||
@ -277,19 +306,23 @@ for name, def in pairs(pots_defs) do
|
||||
cdef.description = def.description
|
||||
cdef.mesh = def.mesh .. ".b3d"
|
||||
cdef.tiles = def.tiles
|
||||
cdef.inventory_image = def.inventory_image
|
||||
cdef.collision_box = {
|
||||
type = "fixed",
|
||||
fixed = def.bounding_boxes
|
||||
}
|
||||
|
||||
cdef.use_texture_alpha = def.use_texture_alpha
|
||||
cdef.groups = {cracky=1.5}
|
||||
cdef.sounds = default.node_sound_stone_defaults()
|
||||
cdef.sounds = def.sounds
|
||||
cdef.selection_box = cdef.collision_box
|
||||
|
||||
cdef.on_rightclick = on_rightclick_flowerpot
|
||||
|
||||
minetest.register_node(":multidecor:" .. name, cdef)
|
||||
|
||||
def.craft.output = "multidecor:" .. name
|
||||
minetest.register_craft(def.craft)
|
||||
for i=1, #flowers do
|
||||
local cdef2 = table.copy(cdef)
|
||||
cdef2.mesh = def.mesh .. "_with_flower.b3d"
|
||||
@ -318,4 +351,11 @@ register.register_furniture_unit("white_plastic_flowerpot", {
|
||||
"default_dirt.png"
|
||||
},
|
||||
bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}}
|
||||
},
|
||||
{
|
||||
recipe = {
|
||||
{"multidecor:plastic_sheet", "multidecor:plastic_sheet", "multidecor:plastic_sheet"},
|
||||
{"multidecor:plastic_sheet", "default:dirt", "multidecor:plastic_sheet"},
|
||||
{"multidecor:plastic_sheet", "multidecor:plastic_sheet", "multidecor:plastic_sheet"}
|
||||
}
|
||||
})
|
||||
|
BIN
modern/models/multidecor_glass_vase.b3d
Normal file
BIN
modern/models/multidecor_glass_vase.blend
Normal file
BIN
modern/models/multidecor_glass_vase.blend1
Normal file
BIN
modern/models/multidecor_glass_vase_with_flower.b3d
Normal file
BIN
modern/models/multidecor_glass_vase_with_flower.blend
Normal file
BIN
modern/models/multidecor_glass_vase_with_flower.blend1
Normal file
BIN
modern/models/multidecor_modern_wooden_door.b3d
Normal file
BIN
modern/models/multidecor_modern_wooden_door.blend
Normal file
BIN
modern/models/multidecor_modern_wooden_door.blend1
Normal file
BIN
modern/models/multidecor_modern_wooden_door_activated.b3d
Normal file
BIN
modern/models/multidecor_modern_wooden_door_activated.blend
Normal file
BIN
modern/models/multidecor_modern_wooden_door_activated.blend1
Normal file
BIN
modern/models/multidecor_modern_wooden_door_open.b3d
Normal file
BIN
modern/models/multidecor_modern_wooden_door_open.blend
Normal file
BIN
modern/models/multidecor_modern_wooden_door_open.blend1
Normal file
BIN
modern/models/multidecor_pine_glass_door.b3d
Normal file
BIN
modern/models/multidecor_pine_glass_door.blend
Normal file
BIN
modern/models/multidecor_pine_glass_door.blend1
Normal file
BIN
modern/models/multidecor_pine_glass_door_activated.b3d
Normal file
BIN
modern/models/multidecor_pine_glass_door_activated.blend
Normal file
BIN
modern/models/multidecor_pine_glass_door_activated.blend1
Normal file
BIN
modern/models/multidecor_pine_glass_door_open.b3d
Normal file
BIN
modern/models/multidecor_pine_glass_door_open.blend
Normal file
BIN
modern/models/multidecor_pine_glass_door_open.blend1
Normal file
BIN
modern/models/multidecor_technical_door.b3d
Normal file
BIN
modern/models/multidecor_technical_door.blend
Normal file
BIN
modern/models/multidecor_technical_door.blend1
Normal file
BIN
modern/models/multidecor_technical_door_activated.b3d
Normal file
BIN
modern/models/multidecor_technical_door_activated.blend
Normal file
BIN
modern/models/multidecor_technical_door_activated.blend1
Normal file
BIN
modern/models/multidecor_technical_door_open.b3d
Normal file
BIN
modern/models/multidecor_technical_door_open.blend
Normal file
BIN
modern/models/multidecor_technical_door_open.blend1
Normal file
BIN
modern/textures/multidecor_glass_vase_inv.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
modern/textures/multidecor_metal_door_chainlink.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
modern/textures/multidecor_metal_material2.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
modern/textures/multidecor_modern_wooden_door_base.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
modern/textures/multidecor_pine_glass_door_base.png
Normal file
After Width: | Height: | Size: 3.6 KiB |