Bamboo Extras intermediate changes 3
Added in original textures variant
|
@ -24,21 +24,20 @@ local function tiki_lamp()
|
|||
minetest.register_craft({
|
||||
output = "mcl_lanterns:tikilamp_floor",
|
||||
recipe = {
|
||||
{bamboo, bamboo,bamboo},
|
||||
{bamboo, bamboo, bamboo},
|
||||
{bamboo, "mcl_torches:torch", bamboo},
|
||||
{bamboo, bamboo,bamboo},
|
||||
{bamboo, bamboo, bamboo},
|
||||
},
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function green_bamboo_doors()
|
||||
local BAMBOO_BLOCK = "mcl_bamboo:bamboo_block"
|
||||
if minetest.get_modpath("mcl_doors") and mcl_doors then
|
||||
minetest.register_craft({
|
||||
output = "mcl_bamboo:bamboo_trapdoor_green 3",
|
||||
output = "mcl_bamboo_extras:bamboo_trapdoor_green 3",
|
||||
recipe = {
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
|
@ -46,7 +45,7 @@ local function green_bamboo_doors()
|
|||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mcl_bamboo:bamboo_trapdoor_green 2",
|
||||
output = "mcl_bamboo_extras:bamboo_trapdoor_green 2",
|
||||
recipe = {
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
|
@ -67,7 +66,7 @@ local function green_bamboo_doors()
|
|||
bot_door_tiles = {"mcl_bamboo_door_bottom.png_green", "mcl_bamboo_door_bottom_side_green.png"}
|
||||
end
|
||||
|
||||
local name = "mcl_bamboo:bamboo_door_green"
|
||||
local name = "mcl_bamboo_extras:bamboo_door_green"
|
||||
local def = {
|
||||
description = S("Bamboo Door."),
|
||||
inventory_image = "mcl_bamboo_door_wield_green.png",
|
||||
|
@ -82,7 +81,7 @@ local function green_bamboo_doors()
|
|||
|
||||
mcl_doors:register_door(name, def)
|
||||
|
||||
name = "mcl_bamboo:bamboo_trapdoor_green"
|
||||
name = "mcl_bamboo_extras:bamboo_trapdoor_green"
|
||||
local trap_def = {
|
||||
description = S("Bamboo Trapdoor."),
|
||||
inventory_image = "mcl_bamboo_trapdoor_side_green.png",
|
||||
|
@ -101,31 +100,49 @@ local function green_bamboo_doors()
|
|||
|
||||
mcl_doors:register_trapdoor(name, trap_def)
|
||||
|
||||
minetest.register_alias("bamboo_door", "mcl_bamboo:bamboo_door")
|
||||
minetest.register_alias("bamboo_trapdoor", "mcl_bamboo:bamboo_trapdoor")
|
||||
minetest.register_alias("bamboo_door_green", "mcl_bamboo_extras:bamboo_door_green")
|
||||
minetest.register_alias("bamboo_trapdoor_green", "mcl_bamboo_extras:bamboo_trapdoor_green")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function bamboo_doors_original()
|
||||
if minetest.get_modpath("mcl_doors") then
|
||||
local BAMBOO_BLOCK = "mcl_bamboo:bamboo_block_stripped"
|
||||
if minetest.get_modpath("mcl_doors") and mcl_doors then
|
||||
minetest.register_craft({
|
||||
output = "mcl_bamboo_extras:bamboo_trapdoor_orig 3",
|
||||
recipe = {
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mcl_bamboo_extras:bamboo_trapdoor_orig 2",
|
||||
recipe = {
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
{BAMBOO_BLOCK, BAMBOO_BLOCK, BAMBOO_BLOCK},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
if mcl_doors then
|
||||
local top_door_tiles = {}
|
||||
local bot_door_tiles = {}
|
||||
|
||||
if BROKEN_DOORS then
|
||||
top_door_tiles = {"mcl_bamboo_door_top_alt.png", "mcl_bamboo_door_top.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom_alt.png", "mcl_bamboo_door_bottom.png"}
|
||||
top_door_tiles = {"mcl_bamboo_door_top_alt_orig.png", "mcl_bamboo_door_top_side_orig.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom_alt_orig.png", "mcl_bamboo_door_bottom_side_orig.png"}
|
||||
else
|
||||
top_door_tiles = {"mcl_bamboo_door_top.png", "mcl_bamboo_door_top.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom.png", "mcl_bamboo_door_bottom.png"}
|
||||
top_door_tiles = {"mcl_bamboo_door_top_orig.png", "mcl_bamboo_door_top_side_orig.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom.png_orig", "mcl_bamboo_door_bottom_side_orig.png"}
|
||||
end
|
||||
|
||||
local name = "mcl_bamboo:bamboo_door"
|
||||
local name = "mcl_bamboo_extras:bamboo_door_orig"
|
||||
local def = {
|
||||
description = S("Bamboo Door."),
|
||||
inventory_image = "mcl_bamboo_door_wield.png",
|
||||
wield_image = "mcl_bamboo_door_wield.png",
|
||||
inventory_image = "mcl_bamboo_door_wield_orig.png",
|
||||
wield_image = "mcl_bamboo_door_wield_orig.png",
|
||||
groups = {handy = 1, axey = 1, material_wood = 1, flammable = -1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
|
@ -136,17 +153,17 @@ if minetest.get_modpath("mcl_doors") then
|
|||
|
||||
mcl_doors:register_door(name, def)
|
||||
|
||||
name = "mcl_bamboo:bamboo_trapdoor"
|
||||
name = "mcl_bamboo_extras:bamboo_trapdoor_orig"
|
||||
local trap_def = {
|
||||
description = S("Bamboo Trapdoor."),
|
||||
inventory_image = "mcl_bamboo_door_complete.png",
|
||||
inventory_image = "mcl_bamboo_trapdoor_side_orig.png",
|
||||
groups = {},
|
||||
tile_front = "mcl_bamboo_trapdoor_side.png",
|
||||
tile_side = "mcl_bamboo_trapdoor_side.png",
|
||||
tile_front = "mcl_bamboo_trapdoor_side_orig.png",
|
||||
tile_side = "mcl_bamboo_trapdoor_side_orig.png",
|
||||
_doc_items_longdesc = S("Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder."),
|
||||
_doc_items_usagehelp = S("To open or close the trapdoor, rightclick it or send a redstone signal to it."),
|
||||
wield_image = "mcl_bamboo_trapdoor_side.png",
|
||||
inventory_image = "mcl_bamboo_trapdoor_side.png",
|
||||
wield_image = "mcl_bamboo_trapdoor_side_orig.png",
|
||||
inventory_image = "mcl_bamboo_trapdoor_inventory.png",
|
||||
groups = {handy = 1, axey = 1, mesecon_effector_on = 1, material_wood = 1, flammable = -1},
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
|
@ -155,11 +172,10 @@ if minetest.get_modpath("mcl_doors") then
|
|||
|
||||
mcl_doors:register_trapdoor(name, trap_def)
|
||||
|
||||
minetest.register_alias("bamboo_door", "mcl_bamboo:bamboo_door")
|
||||
minetest.register_alias("bamboo_trapdoor", "mcl_bamboo:bamboo_trapdoor")
|
||||
minetest.register_alias("bamboo_door_orig", "mcl_bamboo_extras:bamboo_door_orig")
|
||||
minetest.register_alias("bamboo_trapdoor_orig", "mcl_bamboo_extras:bamboo_trapdoor_orig")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- ------------------------------------
|
||||
tiki_lamp()
|
||||
|
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 675 B |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 682 B |
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |