First Upload
|
@ -0,0 +1,150 @@
|
|||
|
||||
|
||||
-- Bat Pavers-------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_pavers", {
|
||||
description = "Bat Pavers",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_pavers.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_pavers 5",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_block', 'bat_blocks:bat_block', ''},
|
||||
{'', 'bat_blocks:bat_block', 'bat_blocks:bat_block'},
|
||||
{'','','bat_blocks:bat_block'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Block----------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_block", {
|
||||
description = "Bat Block",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_block.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_block 9",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Tile Block----------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_tile", {
|
||||
description = "Bat Tile",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_tile.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_tile 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', ''},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Black With Bat--------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_black_wbat", {
|
||||
description = "Black with Bat",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_bat.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_black_wbat 1",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Diagonal Block-----------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_diag", {
|
||||
description = "Bat Diagonal",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_diag.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_diag 6",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black'}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Bat X Block------------------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_x", {
|
||||
description = "Bat X",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_x_block.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_x 3",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow'},
|
||||
{'bat_blocks:bat_color_black','bat_blocks:bat_color_yellow','bat_blocks:bat_color_black'}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
|
||||
-- Bat Bounce--------------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_bounce", {
|
||||
description = "Bat Bounce",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_bounce.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, bouncy = 70, fall_damage_add_percent = -1000},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_bounce",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_rubber_sheet', 'bat_blocks:bat_rubber_sheet', 'bat_blocks:bat_rubber_sheet'},
|
||||
{'bat_blocks:bat_rubber_sheet', 'bat_blocks:bat_color_black', 'bat_blocks:bat_rubber_sheet'},
|
||||
{'bat_blocks:bat_rubber_sheet', 'bat_blocks:bat_rubber_sheet', 'bat_blocks:bat_rubber_sheet'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat no Bounce----------------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_bounce_not", {
|
||||
description = "Bat No Bounce",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_bounce_not.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, disable_jump = 1, fall_damage_add_percent = -1000},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_bounce_not",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_glue', 'bat_blocks:bat_glue', 'bat_blocks:bat_glue'},
|
||||
{'bat_blocks:bat_glue', 'bat_blocks:bat_color_yellow', 'bat_blocks:bat_glue'},
|
||||
{'bat_blocks:bat_glue', 'bat_blocks:bat_glue', 'bat_blocks:bat_glue'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Glue-------------------------------------------------------------------------------------
|
||||
|
||||
minetest.register_craftitem("bat_blocks:bat_glue", {
|
||||
description = "Bat Glue",
|
||||
inventory_image = "bat_glue.png",
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bat_blocks:bat_glue",
|
||||
recipe = "bat_blocks:bat_rod_yellow",
|
||||
cooktime = 3
|
||||
})
|
||||
|
||||
|
||||
-- Bat Rubber Raw-----------------------------------------------------------------------
|
||||
|
||||
minetest.register_craftitem("bat_blocks:bat_rubber_raw", {
|
||||
description = "Bat Rubber Raw",
|
||||
inventory_image = "bat_rubber_raw.png",
|
||||
|
||||
})
|
||||
|
||||
-- Crafts
|
||||
|
||||
--Bat Rubber Raw Walkable Lava
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_rubber_raw",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_lava:bat_lava_w', ''},
|
||||
{'', '', ''},
|
||||
{'', '', ''}
|
||||
}
|
||||
})
|
||||
|
||||
--Bat Rubber Raw Not Walkable Lava
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_rubber_raw",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_lava:bat_lava_nw', ''},
|
||||
{'', '', ''},
|
||||
{'', '', ''}
|
||||
}
|
||||
})
|
||||
--Bat Rubber Raw Not Default Lava
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_rubber_raw",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'default:lava_source', ''},
|
||||
{'', '', ''},
|
||||
{'', '', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Rubber Sheet--------------------------------------------------------------------------------
|
||||
|
||||
minetest.register_craftitem("bat_blocks:bat_rubber_sheet", {
|
||||
description = "Bat Rubber Sheet",
|
||||
inventory_image = "bat_rubber_sheet.png",
|
||||
|
||||
})
|
||||
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_rubber_sheet",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_rubber_raw'},
|
||||
{'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_rubber_raw'},
|
||||
{'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_rubber_raw'}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
-- Brick Block--------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_brick", {
|
||||
description = "Bat brick",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_brick.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_brick 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', ''},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Small Brick Block-------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_smbrick", {
|
||||
description = "Bat Brick Small",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_smbrick.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_smbrick 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow'}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
-- Ceiling Block
|
||||
|
||||
minetest.register_node("bat_blocks:ceiling_block", {
|
||||
description = "Ceiling Tile Block",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_ceiling.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:ceiling_block 2",
|
||||
recipe = {
|
||||
{"bat_blocks:bat_color_white","bat_blocks:bat_color_white",""},
|
||||
{"dye:grey","dye:grey",""},
|
||||
{"","",""}
|
||||
}
|
||||
})
|
||||
|
||||
--Ceiling Tile
|
||||
|
||||
minetest.register_node("bat_blocks:ceiling_tile",{
|
||||
description = "Ceiling Tile",
|
||||
drawtype="nodebox",
|
||||
tiles = {"bat_ceiling.png"},
|
||||
paramtype = "light",
|
||||
groups = {oddly_breakable_by_hand = 3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:ceiling_tile 3",
|
||||
recipe = {
|
||||
{"bat_blocks:bat_color_white","",""},
|
||||
{"dye:grey","",""},
|
||||
{"","",""}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,93 @@
|
|||
|
||||
-- Checker Block------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_checker", {
|
||||
description = "Bat Checker",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_checker.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_checker 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black', ''},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', ''},
|
||||
{'','',''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Small Checker Block------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_checker_sm", {
|
||||
description = "Bat Checker Small",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_checkersm.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_checker_sm 6",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_yellow', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_yellow','bat_blocks:bat_color_black','bat_blocks:bat_color_yellow'}
|
||||
}
|
||||
})
|
||||
|
||||
-- White Checker Block------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_checker_white", {
|
||||
description = "Bat Checker White",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_checker_white.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_checker_white 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_white', 'bat_blocks:bat_color_black', ''},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_white', ''},
|
||||
{'','',''}
|
||||
}
|
||||
})
|
||||
|
||||
-- White Small Checker Block------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_checker_sm_white", {
|
||||
description = "Bat Checker White Small",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_checkersm_white.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_checker_sm_white 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_white', 'bat_blocks:bat_color_black', 'bat_blocks:bat_color_white'},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_color_white', 'bat_blocks:bat_color_black'},
|
||||
{'bat_blocks:bat_color_white','bat_blocks:bat_color_black','bat_blocks:bat_color_white'}
|
||||
}
|
||||
})
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
|
||||
--ChecPlate-----------------------------------------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_checplate", {
|
||||
description = "Bat Checker Plate",
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"bat_checplate.png",
|
||||
"bat_checplate_side.png",
|
||||
"bat_checplate_side.png",
|
||||
"bat_checplate_side.png",
|
||||
"bat_checplate_side.png",
|
||||
"bat_checplate_side.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
}
|
||||
},
|
||||
inventory_image = "bat_checplate.png",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_checplate 9",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_block', 'dye:grey', 'dye:grey'}
|
||||
}
|
||||
})
|
||||
|
||||
--ChecPlate Block----------------------------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_checplate_block", {
|
||||
description = "Bat Checker Plate Block",
|
||||
drawtype = "normal",
|
||||
tiles = {
|
||||
"bat_checplate.png"},
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_checplate_block 9",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_checplate', ''},
|
||||
{'bat_blocks:bat_checplate', 'bat_blocks:bat_checplate', 'bat_blocks:bat_checplate'},
|
||||
{'','bat_blocks:bat_checplate', ''},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,129 @@
|
|||
|
||||
|
||||
-- Bat Cobble--------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble", {
|
||||
description = "Bat Cobble",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'default:cobble', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Cobble White----------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_white", {
|
||||
description = "Bat Cobble White",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble_white.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_white 1",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_cobble', 'dye:white', 'dye:white'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Cobble Tan----------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_tan", {
|
||||
description = "Bat Cobble Tan",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble_tan.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_tan 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_cobble_white', 'default:sand', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Cobble Tan Corner---------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_tan_corner", {
|
||||
description = "Bat Cobble Tan Corner",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble_tan.png",
|
||||
"bat_cobble_tan.png",
|
||||
"bat_cobble_tan.png",
|
||||
"bat_cobble_tan_l.png",
|
||||
"bat_cobble_tan.png",
|
||||
"bat_cobble_tan_r.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_tan_corner 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_cobble', 'bat_blocks:bat_cobble_tan', ''},
|
||||
{'bat_blocks:bat_cobble', 'bat_blocks:bat_cobble_tan', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Cobble Corner---------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_corner", {
|
||||
description = "Bat Cobble Corner",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble_corner_l.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble_corner_r.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_corner 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_tile', ''},
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_cobble', ''}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,146 @@
|
|||
|
||||
|
||||
-- Bat Cobble Door Top M
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_door_top", {
|
||||
description = "Bat Cobble Door Top Middle",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png",
|
||||
"bat_black.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble_door_top_m.png",
|
||||
"bat_cobble_door_top_m.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Bat Cobble Door Top L
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_door_top_l", {
|
||||
description = "Bat Cobble Door Top Left",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png",
|
||||
"bat_black.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble_door_top_r.png",
|
||||
"bat_cobble_door_top_l.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Bat Cobble Door Top R
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_door_top_r", {
|
||||
description = "Bat Cobble Door Top Right",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png",
|
||||
"bat_black.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble_door_top_l.png",
|
||||
"bat_cobble_door_top_r.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Bat Cobble Door Side R
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_door_side_r", {
|
||||
description = "Bat Cobble",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_black.png",
|
||||
"bat_cobble_door_side_l.png",
|
||||
"bat_cobble_door_side_r.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Bat Cobble Door Side L
|
||||
|
||||
minetest.register_node("bat_blocks:bat_cobble_door_side_l", {
|
||||
description = "Bat Cobble",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_cobble.png",
|
||||
"bat_cobble.png",
|
||||
"bat_black.png",
|
||||
"bat_cobble.png",
|
||||
"bat_cobble_door_side_r.png",
|
||||
"bat_cobble_door_side_l.png",},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
--Crafting
|
||||
---------------------------------------------------------------------------------------
|
||||
|
||||
--Cobble Door Top M
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_door_top 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_cobble', 'bat_blocks:bat_cobble', ''},
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_tile', ''}
|
||||
}
|
||||
})
|
||||
|
||||
--Cobble Top Right
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_door_top_r 5",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_cobble', 'bat_blocks:bat_cobble', ''},
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_tile', 'bat_blocks:bat_tile'}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Cobble Top Left
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_door_top_l 5",
|
||||
recipe = {
|
||||
{'', 'bat_blocks:bat_cobble', 'bat_blocks:bat_cobble'},
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_tile', 'bat_blocks:bat_tile'}
|
||||
}
|
||||
})
|
||||
--Cobble Door Side Left
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_door_side_l 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_cobble', 'bat_blocks:bat_tile', ''},
|
||||
{'bat_blocks:bat_cobble', 'bat_blocks:bat_tile', ''}
|
||||
}
|
||||
})
|
||||
--Cobble Door Side Right
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_cobble_door_side_r 4",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_cobble', ''},
|
||||
{'bat_blocks:bat_tile', 'bat_blocks:bat_cobble', ''}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,193 @@
|
|||
|
||||
|
||||
-- Black Black--------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_black", {
|
||||
description = "Bat Black",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_black.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_black 2",
|
||||
recipe = {
|
||||
{'default:stone', 'dye:black', ''},
|
||||
{'dye:black', 'default:stone', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Yellow Block-------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_yellow", {
|
||||
description = "Bat Yellow",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_yellow.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_yellow 2",
|
||||
recipe = {
|
||||
{'default:stone', 'dye:yellow', ''},
|
||||
{'dye:yellow', 'default:stone', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- White Block--------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_white", {
|
||||
description = "Bat White",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_white.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_white 1",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_white_powder', 'bat_blocks:bat_color_yellow', ''},
|
||||
{'bat_blocks:bat_color_yellow', 'bat_blocks:bat_white_powder', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Beige Block--------------------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_beige", {
|
||||
description = "Beige Block",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_beige_block.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
-- sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_beige",
|
||||
recipe = {
|
||||
{"bat_blocks:bat_cobble_white","default:sand"}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
-- Bat green-----------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_green", {
|
||||
description = "Bat Green",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_green.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_green 2",
|
||||
recipe = {
|
||||
{'default:stone', 'dye:green', ''},
|
||||
{'dye:green', 'default:stone', ''}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Bat Red-----------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_red", {
|
||||
description = "Bat Red",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_red.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_red 2",
|
||||
recipe = {
|
||||
{'default:stone', 'dye:red', ''},
|
||||
{'dye:red', 'default:stone', ''}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Bat Blue-----------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_blue", {
|
||||
description = "Bat Blue",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_blue.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_blue 2",
|
||||
recipe = {
|
||||
{'default:stone', 'dye:blue', ''},
|
||||
{'dye:blue', 'default:stone', ''}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Bat Orange-----------------------------------------------------------------
|
||||
|
||||
minetest.register_node("bat_blocks:bat_color_orange", {
|
||||
description = "Bat Orange",
|
||||
drawtype = "normal",
|
||||
tiles = {"bat_orange.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
-- Craft
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_color_orange 2",
|
||||
recipe = {
|
||||
{'default:stone', 'dye:orange', ''},
|
||||
{'dye:orange', 'default:stone', ''}
|
||||
}
|
||||
})
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
|
||||
|
||||
-- Black Rod-----------------------------------------------------
|
||||
|
||||
minetest.register_craftitem("bat_blocks:bat_rod_black", {
|
||||
description = "Black Rod",
|
||||
inventory_image = "bat_blackrod.png",
|
||||
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bat_blocks:bat_rod_black 4",
|
||||
recipe = "bat_blocks:bat_color_black",
|
||||
cooktime = 2
|
||||
})
|
||||
|
||||
-- Yellow Rod----------------------------------------------------
|
||||
|
||||
minetest.register_craftitem("bat_blocks:bat_rod_yellow", {
|
||||
description = "Yellow Rod",
|
||||
inventory_image = "bat_yellowrod.png",
|
||||
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bat_blocks:bat_rod_yellow 4",
|
||||
recipe = "bat_blocks:bat_color_yellow",
|
||||
cooktime = 2
|
||||
})
|
||||
|
||||
-- White Rod-----------------------------------------------------
|
||||
|
||||
minetest.register_craftitem("bat_blocks:bat_rod_white", {
|
||||
description = "White Rod",
|
||||
inventory_image = "bat_whiterod.png",
|
||||
|
||||
})
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bat_blocks:bat_rod_white 4",
|
||||
recipe = "bat_blocks:bat_color_white",
|
||||
cooktime = 2
|
||||
})
|
||||
|
||||
-- Bat White Powder
|
||||
|
||||
minetest.register_node("bat_blocks:bat_white_powder", {
|
||||
description = "Bat White Powder",
|
||||
drawtype = "plantlike",
|
||||
tile_images = {"bat_white_powder.png"},
|
||||
inventory_image = "bat_white_powder.png",
|
||||
paramtype = "light",
|
||||
})
|
||||
|
||||
minetest.register_alias("batmod:bat_white_powder", "bat_blocks:bat_white_powder")
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bat_blocks:bat_white_powder",
|
||||
recipe = "bat_blocks:bat_cobble_white",
|
||||
cooktime = 4
|
||||
})
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
doors
|
|
@ -0,0 +1,124 @@
|
|||
-- Bat Mod by Batman --
|
||||
--===========================================
|
||||
|
||||
--
|
||||
-- register nodes:
|
||||
--
|
||||
|
||||
|
||||
doors.register_door("bat_blocks:bat_door", {
|
||||
description = "Bat Door",
|
||||
inventory_image = "batdoor_inv.png",
|
||||
groups = {choppy=2,cracky=2,door=1},
|
||||
tiles_bottom = {"batdoor_bottom.png", "batdoor_edge.png"},
|
||||
tiles_top = {"batdoor_top.png", "batdoor_edge.png"},
|
||||
only_placer_can_open = true,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_door",
|
||||
recipe = {
|
||||
{"bat_blocks:bat_color_black", "default:tree"},
|
||||
{"default:tree", "bat_blocks:bat_rod_black"},
|
||||
{"bat_blocks:bat_color_black", "default:tree"}
|
||||
}
|
||||
})
|
||||
|
||||
--Unlocked Door
|
||||
|
||||
doors.register_door("bat_blocks:bat_door_unlocked", {
|
||||
description = "Bat Door Unlocked",
|
||||
inventory_image = "batdoor_unlocked_inv.png",
|
||||
groups = {choppy=2,cracky=2,door=1},
|
||||
tiles_bottom = {"batdoor_bottom.png", "batdoor_edge.png"},
|
||||
tiles_top = {"batdoor_unlocked_top.png", "batdoor_edge.png"},
|
||||
only_placer_can_open = false,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_door_unlocked",
|
||||
recipe = {
|
||||
{"bat_blocks:bat_color_black", "default:tree"},
|
||||
{"default:tree", "bat_blocks:bat_color_black"},
|
||||
{"bat_blocks:bat_color_black", "default:tree"}
|
||||
}
|
||||
})
|
||||
----trapdoor----
|
||||
|
||||
local function update_node(pos, node)
|
||||
minetest.set_node(pos, node)
|
||||
end
|
||||
|
||||
local function punch(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local state = meta:get_int("state")
|
||||
local me = minetest.get_node(pos)
|
||||
local tmp_node
|
||||
local tmp_node2
|
||||
oben = {x=pos.x, y=pos.y, z=pos.z}
|
||||
if state == 1 then
|
||||
state = 0
|
||||
tmp_node = {name="bat_blocks:bat_trapdoor", param1=me.param1, param2=me.param2}
|
||||
else
|
||||
state = 1
|
||||
tmp_node = {name="bat_blocks:bat_trapdoor_open", param1=me.param1, param2=me.param2}
|
||||
end
|
||||
update_node(pos, tmp_node)
|
||||
meta:set_int("state", state)
|
||||
end
|
||||
minetest.register_node("bat_blocks:bat_trapdoor", {
|
||||
description = "Trapdoor",
|
||||
inventory_image = "bat_trapdoor.png",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"bat_trapdoor.png", "bat_trapdoor.png", "bat_trap_side.png", "bat_trap_side.png", "bat_trap_side.png", "bat_trap_side.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "bat_blocks:bat_trapdoor",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
|
||||
},
|
||||
|
||||
on_punch = function(pos, node, clicker)
|
||||
punch(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("bat_blocks:bat_trapdoor_open", {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"bat_trap_side.png", "bat_trap_side.png", "bat_trap_side.png", "bat_trap_side.png", "bat_trapdoor.png", "bat_trapdoor.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
pointable = true,
|
||||
stack_max = 0,
|
||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
|
||||
climbable = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "bat_blocks:bat_trapdoor",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5}
|
||||
},
|
||||
on_punch = function(pos, node, clicker)
|
||||
punch(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'bat_blocks:bat_trapdoor 2',
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_rod_black', ''},
|
||||
{'bat_blocks:bat_color_black', 'bat_blocks:bat_rod_black', ''},
|
||||
{'', '', ''},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,227 @@
|
|||
|
||||
--Bat Fences
|
||||
|
||||
-- Bat Black fence
|
||||
minetest.register_node("bat_blocks:bat_fence_black", {
|
||||
description = "Bat Fence Black",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_black.png"},
|
||||
inventory_image = "bat_fence_black_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat White fence
|
||||
minetest.register_node("bat_blocks:bat_fence_white", {
|
||||
description = "Bat Fence White",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_white.png"},
|
||||
inventory_image = "bat_fence_white_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat Yellow fence
|
||||
minetest.register_node("bat_blocks:bat_fence_yellow", {
|
||||
description = "Bat Fence Yellow",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_yellow.png"},
|
||||
inventory_image = "bat_fence_yellow_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat Blue fence
|
||||
minetest.register_node("bat_blocks:bat_fence_blue", {
|
||||
description = "Bat Fence Blue",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_blue.png"},
|
||||
inventory_image = "bat_fence_blue_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat Green fence
|
||||
minetest.register_node("bat_blocks:bat_fence_green", {
|
||||
description = "Bat Fence Green",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_green.png"},
|
||||
inventory_image = "bat_fence_green_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat Red fence
|
||||
minetest.register_node("bat_blocks:bat_fence_red", {
|
||||
description = "Bat Fence Red",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_red.png"},
|
||||
inventory_image = "bat_fence_red_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat Beige fence
|
||||
minetest.register_node("bat_blocks:bat_fence_beige", {
|
||||
description = "Bat Fence Beige",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_beige_block.png"},
|
||||
inventory_image = "bat_fence_beige_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- Bat Orange fence
|
||||
minetest.register_node("bat_blocks:bat_fence_orange", {
|
||||
description = "Bat Fence Orange",
|
||||
drawtype = "fencelike",
|
||||
tiles = {"bat_orange.png"},
|
||||
inventory_image = "bat_fence_orange_inv.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/8, -1/2, -1/8, 1/8, 1/2, 1/8},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--Crafts
|
||||
|
||||
--black
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_black 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_black',''},
|
||||
{'','bat_blocks:bat_color_black',''},
|
||||
{'','bat_blocks:bat_color_black',''}
|
||||
}
|
||||
})
|
||||
|
||||
--white
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_white 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_white',''},
|
||||
{'','bat_blocks:bat_color_white',''},
|
||||
{'','bat_blocks:bat_color_white',''}
|
||||
}
|
||||
})
|
||||
|
||||
--yellow
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_yellow 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_yellow',''},
|
||||
{'','bat_blocks:bat_color_yellow',''},
|
||||
{'','bat_blocks:bat_color_yellow',''}
|
||||
}
|
||||
})
|
||||
|
||||
--blue
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_blue 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_blue',''},
|
||||
{'','bat_blocks:bat_color_blue',''},
|
||||
{'','bat_blocks:bat_color_blue',''}
|
||||
}
|
||||
})
|
||||
|
||||
--green
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_green 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_green',''},
|
||||
{'','bat_blocks:bat_color_green',''},
|
||||
{'','bat_blocks:bat_color_green',''}
|
||||
}
|
||||
})
|
||||
|
||||
--red
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_red 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_red',''},
|
||||
{'','bat_blocks:bat_color_red',''},
|
||||
{'','bat_blocks:bat_color_red',''}
|
||||
}
|
||||
})
|
||||
|
||||
--beige
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_beige 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_beige',''},
|
||||
{'','bat_blocks:bat_color_beige',''},
|
||||
{'','bat_blocks:bat_color_beige',''}
|
||||
}
|
||||
})
|
||||
|
||||
--orange
|
||||
minetest.register_craft({
|
||||
output = "bat_blocks:bat_fence_orange 6",
|
||||
recipe = {
|
||||
{'','bat_blocks:bat_color_orange',''},
|
||||
{'','bat_blocks:bat_color_orange',''},
|
||||
{'','bat_blocks:bat_color_orange',''}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,36 @@
|
|||
dofile(minetest.get_modpath("bat_blocks").."/blocks.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/cobble.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/colors.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/checker.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/brick.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/craftitems.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/checplate.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/bouncy.lua")
|
||||
--dofile(minetest.get_modpath("bat_blocks").."/cobbleextras.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/fence.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/doors.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/lava.lua")
|
||||
dofile(minetest.get_modpath("bat_blocks").."/ceiling_tile.lua")
|
||||
print("bat_blocks loaded")
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
-------------------------Batman Mod------------------------------------
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
--[[
|
||||
Batman Mod is a mod created so I could learn how to make mods. It is a combination of my work and the work of
|
||||
many others. I want to thank everyone who works to make Minetest a better game.
|
||||
If I have used your code and did not give credit or if I was not allowed to use the code please let me know.
|
||||
I neglected to keep track of whos work I was using. I mean no disrespect. Sorry!
|
||||
The Batman mod is licened under "wtfpl"
|
||||
|
||||
** * * **
|
||||
** ** ** **
|
||||
** ***** **
|
||||
*** ***** ***
|
||||
*************************
|
||||
*** ***** ***
|
||||
** *** **
|
||||
** *** **
|
||||
** * **
|
||||
]]
|
|
@ -0,0 +1,63 @@
|
|||
|
||||
|
||||
-- Not Walkable Fake Lava
|
||||
|
||||
--remove the -- from the next line and add it to the following line to replace the default lava
|
||||
|
||||
--minetest.register_node(":default:lava_source", {
|
||||
|
||||
minetest.register_node("bat_blocks:bat_lava_nw", {
|
||||
description = "Bat Lava Not Walkable",
|
||||
drawtype = "allfaces",
|
||||
tiles = {"bat_lava.png","bat_lava.png","bat_lava.png","bat_lava.png","bat_lava.png","bat_lava.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
light_source = LIGHT_MAX-1,
|
||||
paramtype2 = "facedir",
|
||||
walkable = false,
|
||||
groups = {snappy = 2, cracky = 2, dig_immediate = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
minetest.register_alias("batmod:bat_lava_nw", "bat_blocks:bat_lava_nw")
|
||||
|
||||
-- Walkable Fake Lava
|
||||
|
||||
minetest.register_node("bat_blocks:bat_lava_w", {
|
||||
description = "Bat Lava Walkable",
|
||||
drawtype = "allfaces",
|
||||
tiles = {"bat_lava.png","bat_lava.png","bat_lava.png","bat_lava.png","bat_lava.png","bat_lava.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
light_source = LIGHT_MAX-1,
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = {snappy = 2, cracky = 2, dig_immediate = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
||||
})
|
||||
|
||||
minetest.register_alias("batmod:bat_lava_w", "bat_blocks:bat_lava_w")
|
||||
|
||||
|
||||
|
||||
-- Crafts
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'bat_blocks:bat_lava_nw',
|
||||
recipe = {
|
||||
{'default:stone','default:mese_crystal'},
|
||||
{'dye:red','default:torch'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'bat_blocks:bat_lava_w',
|
||||
recipe = {
|
||||
{'default:cobble','default:mese_crystal'},
|
||||
{'dye:red','default:torch'},
|
||||
}
|
||||
})
|
||||
|
||||
|
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 404 B |
After Width: | Height: | Size: 113 B |
After Width: | Height: | Size: 251 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 640 B |
After Width: | Height: | Size: 466 B |
After Width: | Height: | Size: 130 B |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 133 B |
After Width: | Height: | Size: 133 B |
After Width: | Height: | Size: 145 B |
After Width: | Height: | Size: 145 B |
After Width: | Height: | Size: 152 B |
After Width: | Height: | Size: 110 B |
After Width: | Height: | Size: 298 B |
After Width: | Height: | Size: 258 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 407 B |
After Width: | Height: | Size: 377 B |
After Width: | Height: | Size: 351 B |
After Width: | Height: | Size: 345 B |
After Width: | Height: | Size: 351 B |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 700 B |
After Width: | Height: | Size: 658 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 147 B |
After Width: | Height: | Size: 374 B |
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 161 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 227 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 685 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 174 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 138 B |
After Width: | Height: | Size: 150 B |
After Width: | Height: | Size: 107 B |
After Width: | Height: | Size: 299 B |
After Width: | Height: | Size: 83 B |
After Width: | Height: | Size: 239 B |
After Width: | Height: | Size: 251 B |
After Width: | Height: | Size: 206 B |
After Width: | Height: | Size: 123 B |
After Width: | Height: | Size: 257 B |
After Width: | Height: | Size: 374 B |
After Width: | Height: | Size: 110 B |
After Width: | Height: | Size: 725 B |
After Width: | Height: | Size: 357 B |
After Width: | Height: | Size: 787 B |
After Width: | Height: | Size: 407 B |
After Width: | Height: | Size: 342 B |
|
@ -0,0 +1,21 @@
|
|||
-- Bat White Powder
|
||||
|
||||
minetest.register_node("bat_blocks:bat_white_powder", {
|
||||
description = "Bat White Powder",
|
||||
drawtype = "plantlike",
|
||||
tile_images = {"bat_white_powder.png"},
|
||||
inventory_image = "bat_white_powder.png",
|
||||
paramtype = "light",
|
||||
})
|
||||
|
||||
minetest.register_alias("batmod:bat_white_powder", "bat_blocks:bat_white_powder")
|
||||
|
||||
--Craft
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bat_blocks:bat_white_powder",
|
||||
recipe = "bat_blocks:bat_cobble_white",
|
||||
cooktime = 4
|
||||
})
|
||||
|
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,87 @@
|
|||
|
||||
--Bat Black Framed
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_framed_black", {
|
||||
description = "Bat Glass Framed Black",
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"bat_black_frame.png","bat_glass_glass.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2,oddly_breakable_by_hand=3},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
||||
})
|
||||
|
||||
--Bat Glass Yellow Framed
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_framed_yellow", {
|
||||
description = "Bat Glass Framed Yellow",
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"bat_yellow_frame.png","bat_glass_glass.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2,oddly_breakable_by_hand=3},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
||||
})
|
||||
|
||||
--Bat Glass White Framed
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_framed_white", {
|
||||
description = "Bat Glass Framed White",
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"bat_white_frame.png","bat_glass_glass.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2,oddly_breakable_by_hand=3},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
||||
})
|
||||
|
||||
--Bat Framed Glass
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_framed_bat", {
|
||||
description = "Bat Glass Framed Bat",
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"bat_glass_frame.png","bat_glass_glass.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 2,oddly_breakable_by_hand=3},
|
||||
stack_max = 500,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
--Crafts
|
||||
-- Bat Glass Framed Black
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_framed_black 2",
|
||||
recipe = {
|
||||
{'bat_glass:bat_glass_black', 'bat_blocks:bat_glue', ''}
|
||||
}
|
||||
})
|
||||
-- Bat Glass Framed White
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_framed_white 2",
|
||||
recipe = {
|
||||
{'bat_glass:bat_glass_white', 'bat_blocks:bat_glue', ''}
|
||||
}
|
||||
})
|
||||
-- Bat Glass Framed Yellow
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_framed_yellow 2",
|
||||
recipe = {
|
||||
{'bat_glass:bat_glass_yellow', 'bat_blocks:bat_glue', ''}
|
||||
}
|
||||
})
|
||||
-- Bat Glass Framed Bat
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_framed_bat 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_checker', 'default:glass', ''}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,114 @@
|
|||
|
||||
-- Bat Glass
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass", {
|
||||
description = "Bat Glass",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"bat_glass.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
light_source = 14,
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
||||
--Bat Glass plain
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass2", {
|
||||
description = "Bat Glass Mesh",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"bat_glass2.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
||||
})
|
||||
|
||||
|
||||
-- Bat Glass Black
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_black", {
|
||||
description = "Bat Glass Black",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"bat_glass_black.png"},
|
||||
inventory_image = minetest.inventorycube("bat_glass_black.png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
-- Bat Glass Yellow
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_yellow", {
|
||||
description = "Bat Glass Yellow",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"bat_glass_yellow.png"},
|
||||
inventory_image = minetest.inventorycube("bat_glass_yellow.png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
-- Bat Glass White
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_white", {
|
||||
description = "Bat Glass White",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"bat_glass_white.png"},
|
||||
inventory_image = minetest.inventorycube("bat_glass_white.png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
--Crafts
|
||||
--------------------------------------------------------------
|
||||
|
||||
-- Bat Glass
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_block', 'default:glass', 'default:torch'}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Glass 2
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass2 1",
|
||||
recipe = {
|
||||
{'dye:black', 'default:glass', ''}
|
||||
}
|
||||
})
|
||||
|
||||
-- Bat Glass Black
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_black 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_black', 'default:glass', ''}
|
||||
}
|
||||
})
|
||||
-- Bat Glass White
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_white 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_white', 'default:glass', ''}
|
||||
}
|
||||
})
|
||||
-- Bat Glass Yellow
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_yellow 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_color_yellow', 'default:glass', ''}
|
||||
}
|
||||
})
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
--Glass Pane
|
||||
|
||||
minetest.register_node("bat_glass:bat_glass_pane", {
|
||||
description = "Bat Glass Pane",
|
||||
tiles = {
|
||||
"bat_glass_glass3.png",
|
||||
"bat_glass_glass3.png",
|
||||
"bat_glass_glass3.png",
|
||||
"bat_glass_glass3.png",
|
||||
"bat_glass_glass2.png",
|
||||
"bat_glass_glass2.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0, 0.5, 0.5, 0.1875}, -- NodeBox1
|
||||
}
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "bat_glass:bat_glass_pane 6",
|
||||
recipe = {
|
||||
{'bat_glass:bat_glass_white','bat_glass:bat_glass_white','bat_glass:bat_glass_white'},
|
||||
{'','',''},
|
||||
{'','',''}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,26 @@
|
|||
dofile(minetest.get_modpath("bat_glass").."/glass.lua")
|
||||
dofile(minetest.get_modpath("bat_glass").."/glass_pane.lua")
|
||||
dofile(minetest.get_modpath("bat_glass").."/framed.lua")
|
||||
print("bat_glass mod loaded succesfully!")
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
-------------------------Batman Mod------------------------------------
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
--[[
|
||||
Batman Mod is a mod created so I could learn how to make mods. It is a combination of my work and the work of
|
||||
many others. I want to thank everyone who works to make Minetest a better game.
|
||||
If I have used your code and did not give credit or if I was not allowed to use the code please let me know.
|
||||
I neglected to keep track of whos work I was using. I mean no disrespect. Sorry!
|
||||
The Batman mod is licened under "wtfpl"
|
||||
|
||||
** * * **
|
||||
** ** ** **
|
||||
** ***** **
|
||||
*** ***** ***
|
||||
*************************
|
||||
*** ***** ***
|
||||
** *** **
|
||||
** *** **
|
||||
** * **
|
||||
]]
|
After Width: | Height: | Size: 109 B |
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 150 B |
After Width: | Height: | Size: 145 B |
After Width: | Height: | Size: 128 B |
After Width: | Height: | Size: 133 B |
After Width: | Height: | Size: 248 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 145 B |
After Width: | Height: | Size: 145 B |
After Width: | Height: | Size: 109 B |
After Width: | Height: | Size: 109 B |
|
@ -0,0 +1,132 @@
|
|||
|
||||
-- Bat Rope
|
||||
|
||||
minetest.register_node("bat_ladders:bat_rope", {
|
||||
description = "Bat Rope",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
||||
tiles = {
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}, -- NodeBox1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'bat_ladders:bat_rope 3',
|
||||
recipe = {
|
||||
{'bat_blocks:bat_rubber_raw', '', ''},
|
||||
{'bat_blocks:bat_rubber_raw', 'bat_blocks:bat_glue', ''},
|
||||
{'bat_blocks:bat_rubber_raw', '', ''}
|
||||
}
|
||||
})
|
||||
|
||||
--Rope Box
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
||||
minetest.register_node("bat_ladders:bat_rope_for_box", {
|
||||
description = "Rope for Ropebox",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
tiles = {
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png",
|
||||
"bat_rubber_rope.png"
|
||||
},
|
||||
groups = {not_in_creative_inventory=1},
|
||||
climbable = true,
|
||||
walkable = false,
|
||||
diggable = false,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, -0.5, -0.0625, 0.0625, 0.5, 0.0625}, -- NodeBox1
|
||||
}
|
||||
},
|
||||
after_destruct = function(pos,oldnode)
|
||||
local node = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
if node.name == "bat_ladders:bat_rope_for_box" then
|
||||
minetest.remove_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("bat_ladders:bat_ropebox", {
|
||||
description = "Ropebox Block",
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
tiles = {"bat_tree_trunk.png",
|
||||
"bat_tree_trunk.png",
|
||||
"bat_tree_trunk.png",
|
||||
"bat_tree_trunk.png",
|
||||
"bat_tree_trunk.png",
|
||||
"bat_tree_trunk.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-2/16, -2/16, -4/16, 2/16, 2/16, 4/16},
|
||||
{-2/16, -4/16, -2/16, 2/16, 4/16, 2/16},
|
||||
{-2/16, -3/16, -3/16, 2/16, 3/16, 3/16},
|
||||
{-3/16, -2/16, -2/16, -2/16, 8/16, 2/16},
|
||||
{2/16, -2/16, -2/16, 3/16, 8/16, 2/16},
|
||||
{-1/16, -8/16, -1/16, 1/16, -4/16, 1/16},
|
||||
},
|
||||
},
|
||||
after_destruct = function(pos,oldnode)
|
||||
local node = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
if node.name == "bat_ladders:bat_rope_for_box" then
|
||||
minetest.remove_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"bat_ladders:bat_ropebox"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
if minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z}).name ~= 'air' then return end
|
||||
minetest.add_node({x=pos.x,y=pos.y-1,z=pos.z}, {name="bat_ladders:bat_rope_for_box"})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"bat_ladders:bat_rope_for_box"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
if minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z}).name ~= 'air' then return end
|
||||
minetest.add_node({x=pos.x,y=pos.y-1,z=pos.z}, {name="bat_ladders:bat_rope_for_box"})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_ladders:bat_ropebox",
|
||||
recipe = {
|
||||
{"bat_blocks:bat_color_black"},
|
||||
{"bat_ladders:bat_rope"},
|
||||
{"bat_ladders:bat_rope"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,25 @@
|
|||
dofile(minetest.get_modpath("bat_ladders").."/ladders.lua")
|
||||
dofile(minetest.get_modpath("bat_ladders").."/bat_rope.lua")
|
||||
print("bat_ladders loaded")
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
-------------------------Batman Mod------------------------------------
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
--[[
|
||||
Batman Mod is a mod created so I could learn how to make mods. It is a combination of my work and the work of
|
||||
many others. I want to thank everyone who works to make Minetest a better game.
|
||||
If I have used your code and did not give credit or if I was not allowed to use the code please let me know.
|
||||
I neglected to keep track of whos work I was using. I mean no disrespect. Sorry!
|
||||
The Batman mod is licened under "wtfpl"
|
||||
|
||||
** * * **
|
||||
** ** ** **
|
||||
** ***** **
|
||||
*** ***** ***
|
||||
*************************
|
||||
*** ***** ***
|
||||
** *** **
|
||||
** *** **
|
||||
** * **
|
||||
]]
|
|
@ -0,0 +1,95 @@
|
|||
-- Bat Mod by Batman --
|
||||
--===========================================
|
||||
|
||||
--
|
||||
-- register nodes:
|
||||
--
|
||||
|
||||
--BatLadder
|
||||
|
||||
minetest.register_node("bat_ladders:bat_ladder", {
|
||||
description = "Bat_Ladder",
|
||||
drawtype = "signlike",
|
||||
tiles = {"bat_ladder.png"},
|
||||
inventory_image = "bat_ladder.png",
|
||||
wield_image = "bat_ladder.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_top = = <default>
|
||||
--wall_bottom = = <default>
|
||||
--wall_side = = <default>
|
||||
},
|
||||
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2},
|
||||
legacy_wallmounted = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
--3d Bat Ladder
|
||||
|
||||
minetest.register_node("bat_ladders:bat_3dladder", {
|
||||
description = "Bat 3d Ladder",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"bat_ladder_top.png",
|
||||
"bat_ladder_bottom.png",
|
||||
"bat_ladder_right.png",
|
||||
"bat_ladder_left.png",
|
||||
"bat_ladder_back.png",
|
||||
"bat_ladder_front.png"},
|
||||
inventory_image = "bat_ladder_front.png",
|
||||
wield_image = "bat_3dladder.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
climbable = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.375000,-0.500000,0.375000,-0.250000,0.500000,0.500000}, --NodeBox 1
|
||||
{0.250000,-0.500000,0.375000,0.375000,0.500000,0.500000}, --NodeBox 2
|
||||
{-0.250000,0.437500,0.375000,0.250000,0.312500,0.500000}, --NodeBox 3
|
||||
{-0.250000,0.062500,0.375000,0.250000,0.187500,0.500000}, --NodeBox 4
|
||||
{-0.250000,-0.187500,0.375000,0.250000,-0.062500,0.500000}, --NodeBox 5
|
||||
{-0.250000,-0.437500,0.375000,0.250000,-0.312500,0.500000}, --NodeBox 6
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.375,-0.5,0.375,0.375,0.5,0.5},
|
||||
},
|
||||
},
|
||||
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2},
|
||||
legacy_wallmounted = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
--Crafting
|
||||
---------------------------------------------------------
|
||||
|
||||
-- Bat Ladder
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_ladders:bat_ladder 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_rod_black', '', 'bat_blocks:bat_rod_black'},
|
||||
{'bat_blocks:bat_rod_black', 'bat_blocks:bat_rod_yellow', 'bat_blocks:bat_rod_black'},
|
||||
{'bat_blocks:bat_rod_black', '', 'bat_blocks:bat_rod_black'}
|
||||
}
|
||||
})
|
||||
|
||||
--Bat 3d Ladder
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bat_ladders:bat_3dladder 2",
|
||||
recipe = {
|
||||
{'bat_blocks:bat_rod_black', '', 'bat_blocks:bat_rod_black'},
|
||||
{'bat_blocks:bat_rod_black', 'bat_blocks:bat_rod_black', 'bat_blocks:bat_rod_black'},
|
||||
{'bat_blocks:bat_rod_black', '', 'bat_blocks:bat_rod_black'}
|
||||
}
|
||||
})
|