2013-11-12 22:28:21 +01:00
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ Craft Items +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_craftitem("cannons:gunpowder", {
|
2013-10-12 12:24:24 +02:00
|
|
|
groups = {gunpowder=1},
|
2013-11-10 17:58:23 +01:00
|
|
|
description = "Gunpowder",
|
2013-11-13 17:42:48 +01:00
|
|
|
inventory_image = "cannons_gunpowder.png"
|
2013-10-12 12:24:24 +02:00
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_craftitem("cannons:salt", {
|
2013-11-10 17:58:23 +01:00
|
|
|
description = "Salt",
|
2013-11-13 17:42:48 +01:00
|
|
|
inventory_image = "cannons_salt.png"
|
2013-10-12 12:24:24 +02:00
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_craftitem("cannons:bucket_salt", {
|
2013-11-10 17:58:23 +01:00
|
|
|
description = "Bucket with salt",
|
2013-11-13 17:42:48 +01:00
|
|
|
inventory_image = "cannons_bucket_salt.png",
|
2013-11-10 17:58:23 +01:00
|
|
|
stack_max = 300
|
|
|
|
})
|
|
|
|
|
2013-10-12 12:24:24 +02:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ crafts +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:salt 12',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
2013-11-13 17:42:48 +01:00
|
|
|
"cannons:bucket_salt"
|
2013-11-12 22:28:21 +01:00
|
|
|
},
|
|
|
|
replacements = {
|
2013-11-13 17:42:48 +01:00
|
|
|
{"cannons:bucket_salt", "bucket:bucket_empty"}
|
2013-11-12 22:28:21 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:bucket_salt',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = 'bucket:bucket_water',
|
|
|
|
cooktime = 15
|
|
|
|
})
|
|
|
|
|
2013-11-10 17:58:23 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:gunpowder',
|
2013-11-10 17:58:23 +01:00
|
|
|
recipe = {
|
2013-11-13 17:42:48 +01:00
|
|
|
"default:coal_lump", "default:mese_crystal", "cannons:salt"
|
2013-11-10 17:58:23 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-11-12 23:02:48 +01:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
-- new crafts --
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
minetest.register_craft({
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:cannon',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:steelblock", "default:steelblock", "default:steelblock"},
|
2013-11-13 17:42:48 +01:00
|
|
|
{"cannons:gunpowder", "default:mese_block", ""},
|
2013-11-12 22:28:21 +01:00
|
|
|
{"default:steelblock", "default:steelblock", "default:steelblock"}
|
|
|
|
},
|
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
minetest.register_craft({
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:bronze_canon',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:bronzeblock", "default:bronzeblock", "default:bronzeblock"},
|
2013-11-13 17:42:48 +01:00
|
|
|
{"cannons:gunpowder", "default:mese_block", ""},
|
2013-11-12 22:28:21 +01:00
|
|
|
{"default:bronzeblock", "default:bronzeblock", "default:bronzeblock"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:stand',
|
2013-11-13 21:12:23 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:wood", "", "default:wood"},
|
|
|
|
{"default:wood", "default:steelblock", "default:cobble"},
|
|
|
|
{"default:wood", "default:wood", "default:cobble"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'cannons:stand_wood',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:wood", "", "default:wood"},
|
|
|
|
{"default:wood", "default:steelblock", "default:wood"},
|
|
|
|
{"default:wood", "default:wood", "default:wood"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:ball_steel_stack',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
2013-11-13 17:46:54 +01:00
|
|
|
"cannons:ball_steel", "cannons:ball_steel", "cannons:ball_steel", "cannons:ball_steel"
|
2013-11-12 22:28:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:ball_stone_stack',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
2013-11-13 17:46:54 +01:00
|
|
|
"cannons:ball_stone", "cannons:ball_stone", "cannons:ball_stone", "cannons:ball_stone"
|
2013-11-12 22:28:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:ball_wood_stack',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
2013-11-13 17:46:54 +01:00
|
|
|
"cannons:ball_wood", "cannons:ball_wood", "cannons:ball_wood", "cannons:ball_wood"
|
2013-11-12 22:28:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:ball_wood 2',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:wood","default:wood"},
|
|
|
|
},
|
2013-10-12 12:24:24 +02:00
|
|
|
})
|
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
minetest.register_craft({
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:ball_stone',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:stone"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2013-11-13 17:42:48 +01:00
|
|
|
output = 'cannons:ball_steel',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
|
|
|
{"default:steelblock"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ cannon stuff +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
2013-11-13 16:50:35 +01:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
-- classic cannon --
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:cannon", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon",
|
|
|
|
stack_max = 1,
|
2013-11-13 17:42:48 +01:00
|
|
|
tiles = {"cannon_cannon_top.png","cannon_cannon_top.png","cannon_cannon_side.png","cannon_cannon_side.png","cannon_cannon_top.png^cannons_rim.png","cannon_cannon_side.png"},
|
2013-11-12 22:28:21 +01:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
2013-10-12 12:24:24 +02:00
|
|
|
paramtype2 = "facedir",
|
2013-11-12 22:28:21 +01:00
|
|
|
groups = {cracky=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-11-13 17:42:48 +01:00
|
|
|
node_box = cannons.nodebox,
|
|
|
|
on_place = cannons.on_place,
|
|
|
|
selection_box = cannons.nodebox,
|
|
|
|
on_punch = cannons.punched,
|
|
|
|
on_construct = cannons.on_construct,
|
2013-10-12 12:24:24 +02:00
|
|
|
can_dig = function(pos,player)
|
|
|
|
local meta = minetest.get_meta(pos);
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
if not inv:is_empty("gunpowder") then
|
|
|
|
return false
|
|
|
|
elseif not inv:is_empty("muni") then
|
|
|
|
return false
|
|
|
|
else
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end,
|
2013-11-13 17:42:48 +01:00
|
|
|
allow_metadata_inventory_put = cannons.allow_metadata_inventory_put,
|
2013-11-12 23:02:48 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
allow_metadata_inventory_move = cannons.allow_metadata_inventory_move,
|
2013-11-12 23:02:48 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
on_metadata_inventory_put = cannons.inventory_modified,
|
2013-10-12 12:24:24 +02:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
on_metadata_inventory_take = cannons.inventory_modified,
|
2013-10-12 12:24:24 +02:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
on_metadata_inventory_move = cannons.inventory_modified,
|
2013-10-12 12:24:24 +02:00
|
|
|
|
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
-- bronze cannon --
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:bronze_canon", {
|
2013-11-12 22:57:22 +01:00
|
|
|
description = "Cannon (bronze)",
|
2013-11-12 22:28:21 +01:00
|
|
|
stack_max = 1,
|
2013-11-13 17:42:48 +01:00
|
|
|
tiles = {"cannon_bronze_cannon_top.png","cannon_bronze_cannon_top.png","cannon_bronze_cannon_side.png","cannon_bronze_cannon_side.png","cannon_bronze_cannon_top.png^cannons_rim.png","cannon_bronze_cannon_side.png"},
|
2013-11-12 22:28:21 +01:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-11-13 17:42:48 +01:00
|
|
|
node_box = cannons.nodebox,
|
|
|
|
selection_box = cannons.nodebox,
|
|
|
|
on_punch = cannons.punched,
|
|
|
|
on_construct = cannons.on_construct,
|
2013-11-12 22:28:21 +01:00
|
|
|
can_dig = function(pos,player)
|
|
|
|
local meta = minetest.get_meta(pos);
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
if not inv:is_empty("gunpowder") then
|
|
|
|
return false
|
|
|
|
elseif not inv:is_empty("muni") then
|
|
|
|
return false
|
|
|
|
else
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end,
|
2013-11-13 17:42:48 +01:00
|
|
|
allow_metadata_inventory_put = cannons.allow_metadata_inventory_put,
|
2013-11-12 22:28:21 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
allow_metadata_inventory_move = cannons.allow_metadata_inventory_move,
|
2013-11-12 22:57:22 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
on_metadata_inventory_put = cannons.inventory_modified,
|
2013-11-12 22:28:21 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
on_metadata_inventory_take = cannons.inventory_modified,
|
2013-11-12 22:28:21 +01:00
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
on_metadata_inventory_move = cannons.inventory_modified,
|
2013-11-12 22:28:21 +01:00
|
|
|
|
|
|
|
})
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:stand", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon Stand",
|
|
|
|
stack_max = 99,
|
2013-11-13 17:42:48 +01:00
|
|
|
tiles = {"default_junglewood.png","default_junglewood.png^cannons_rim.png","default_junglewood.png^cannons_rim.png","default_junglewood.png^cannons_rim.png","default_cobble.png","default_junglewood.png^cannons_rim.png"},
|
2013-11-12 22:28:21 +01:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-11-13 17:42:48 +01:00
|
|
|
node_box = cannons.stand_nodebox,
|
2013-11-12 22:28:21 +01:00
|
|
|
selection_box = {
|
2013-11-13 16:50:35 +01:00
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2013-11-12 22:28:21 +01:00
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
2013-11-13 16:50:35 +01:00
|
|
|
}
|
2013-11-12 22:28:21 +01:00
|
|
|
})
|
2013-11-13 21:12:23 +01:00
|
|
|
|
|
|
|
minetest.register_node("cannons:stand_wood", {
|
|
|
|
description = "Cannon Stand",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_junglewood.png","default_junglewood.png^cannons_rim.png","default_junglewood.png^cannons_rim.png","default_junglewood.png^cannons_rim.png","default_wood.png","default_junglewood.png^cannons_rim.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = cannons.stand_nodebox,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:ball_wood", {
|
2013-11-12 22:57:22 +01:00
|
|
|
description = "Cannon Ball Wood",
|
2013-11-12 22:28:21 +01:00
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:ball_stone", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon Ball Stone",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:ball_steel", {
|
2013-11-12 22:57:22 +01:00
|
|
|
description = "Cannon Ball Steel",
|
2013-11-12 22:28:21 +01:00
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"cannon_cannon_top.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:ball_wood_stack", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon Ball Wood Stack",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
drawtype = "nodebox",
|
2013-11-13 17:42:48 +01:00
|
|
|
drop = 'cannons:ball_wood 4',
|
2013-11-12 22:28:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.1, -0.2, 0.2, 0.3, 0.2}, -- ball top
|
|
|
|
{0.1, -0.5, -0.2, 0.2, -0.1, 0.2}, -- ball left
|
|
|
|
{0.5, -0.5, -0.2, 0.2, -0.1, 0.2}, -- ball left
|
|
|
|
{-0.2, -0.5, 0.5, 0.0, -0.1, 0.2},-- ball back
|
|
|
|
{0.0, -0.5, 0.1, -0.4, -0.1, 0.2},--ball back
|
|
|
|
{-0.2, -0.5, 0.5, -0.4, -0.1, 0.2},-- ball back
|
|
|
|
{-0.2, -0.5, 0.1, -0.4, -0.1, 0.2},-- ball back
|
|
|
|
{-0.2, -0.5, -0.1, -0.4, -0.1, -0.5},
|
|
|
|
{0.0, -0.5, -0.1, -0.4, -0.1, -0.5},
|
|
|
|
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.5, 0.5, 0.3, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:ball_stone_stack", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon Ball Stone Stack",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
drawtype = "nodebox",
|
2013-11-13 17:42:48 +01:00
|
|
|
drop = 'cannons:ball_stone 4',
|
2013-11-12 22:28:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.1, -0.2, 0.2, 0.3, 0.2}, -- ball top
|
|
|
|
{0.1, -0.5, -0.2, 0.2, -0.1, 0.2}, -- ball left
|
|
|
|
{0.5, -0.5, -0.2, 0.2, -0.1, 0.2}, -- ball left
|
|
|
|
{-0.2, -0.5, 0.5, 0.0, -0.1, 0.2},-- ball back
|
|
|
|
{0.0, -0.5, 0.1, -0.4, -0.1, 0.2},--ball back
|
|
|
|
{-0.2, -0.5, 0.5, -0.4, -0.1, 0.2},-- ball back
|
|
|
|
{-0.2, -0.5, 0.1, -0.4, -0.1, 0.2},-- ball back
|
|
|
|
{-0.2, -0.5, -0.1, -0.4, -0.1, -0.5},
|
|
|
|
{0.0, -0.5, -0.1, -0.4, -0.1, -0.5},
|
|
|
|
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.5, 0.5, 0.3, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-11-13 17:42:48 +01:00
|
|
|
minetest.register_node("cannons:canon_ball_steel_stack", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon Ball Steel Stack",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"cannon_cannon_top.png"},
|
|
|
|
drawtype = "nodebox",
|
2013-11-13 17:42:48 +01:00
|
|
|
drop = 'cannons:ball_steel 4',
|
2013-11-12 22:28:21 +01:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.1, -0.2, 0.2, 0.3, 0.2}, -- ball top
|
|
|
|
{0.1, -0.5, -0.2, 0.2, -0.1, 0.2}, -- ball left
|
|
|
|
{0.5, -0.5, -0.2, 0.2, -0.1, 0.2}, -- ball left
|
|
|
|
{-0.2, -0.5, 0.5, 0.0, -0.1, 0.2},-- ball back
|
|
|
|
{0.0, -0.5, 0.1, -0.4, -0.1, 0.2},--ball back
|
|
|
|
{-0.2, -0.5, 0.5, -0.4, -0.1, 0.2},-- ball back
|
|
|
|
{-0.2, -0.5, 0.1, -0.4, -0.1, 0.2},-- ball back
|
|
|
|
{-0.2, -0.5, -0.1, -0.4, -0.1, -0.5},
|
|
|
|
{0.0, -0.5, -0.1, -0.4, -0.1, -0.5},
|
|
|
|
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.5, 0.5, 0.3, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2013-11-10 17:58:23 +01:00
|
|
|
|