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-16 00:01:52 +01:00
|
|
|
output = 'cannons:ball_wood 5',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
2013-11-16 00:01:52 +01:00
|
|
|
{"","default:wood",""},
|
|
|
|
{"default:wood","default:wood","default:wood"},
|
|
|
|
{"","default:wood",""},
|
2013-11-12 22:28:21 +01:00
|
|
|
},
|
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({
|
2014-03-23 11:17:35 +01:00
|
|
|
output = 'cannons:ball_steel 2',
|
2013-11-12 22:28:21 +01:00
|
|
|
recipe = {
|
2014-03-23 11:17:35 +01:00
|
|
|
{"", "default:steel_ingot",""},
|
|
|
|
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
|
|
|
|
{"", "default:steel_ingot",""},
|
2013-11-12 22:28:21 +01:00
|
|
|
},
|
|
|
|
})
|
2014-03-23 11:17:35 +01:00
|
|
|
|
2013-11-16 00:01:52 +01:00
|
|
|
if cannons.enable_explosion then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'cannons:ball_exploding 2',
|
|
|
|
recipe = {
|
|
|
|
{"","default:mese",""},
|
|
|
|
{"default:mese","cannons:gunpowder","default:mese"},
|
|
|
|
{"","default:mese",""},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
2014-03-23 11:17:35 +01:00
|
|
|
|
2013-11-16 00:01:52 +01:00
|
|
|
if cannons.enable_fire then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'cannons:ball_fire 2',
|
|
|
|
recipe = {
|
|
|
|
{"","default:wood",""},
|
|
|
|
{"default:wood","default:torch","default:wood"},
|
|
|
|
{"","default:wood",""},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
2013-11-12 22:28:21 +01:00
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ 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-12-05 02:24:34 +01:00
|
|
|
description = "Cannon",
|
2013-11-12 22:28:21 +01:00
|
|
|
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-12-05 06:14:27 +01:00
|
|
|
groups = {cracky=1,cannon=1},
|
2013-12-04 16:28:00 +01:00
|
|
|
sounds = cannons.sound_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.cannon,
|
2013-11-13 17:42:48 +01:00
|
|
|
on_punch = cannons.punched,
|
2013-12-05 02:24:34 +01:00
|
|
|
mesecons = cannons.supportMesecons,
|
2013-11-13 17:42:48 +01:00
|
|
|
on_construct = cannons.on_construct,
|
2013-12-05 02:24:34 +01:00
|
|
|
can_dig = cannons.can_dig,
|
|
|
|
allow_metadata_inventory_put = cannons.allow_metadata_inventory_put,
|
|
|
|
allow_metadata_inventory_move = cannons.allow_metadata_inventory_move,
|
|
|
|
on_metadata_inventory_put = cannons.inventory_modified,
|
|
|
|
on_metadata_inventory_take = cannons.inventory_modified,
|
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-12-05 06:15:52 +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",
|
2013-12-05 06:14:27 +01:00
|
|
|
groups = {cracky=1,cannon=1},
|
2013-12-04 16:28:00 +01:00
|
|
|
sounds = cannons.sound_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.cannon,
|
2013-11-13 17:42:48 +01:00
|
|
|
on_punch = cannons.punched,
|
2013-12-05 02:24:34 +01:00
|
|
|
mesecons = cannons.supportMesecons,
|
2013-11-13 17:42:48 +01:00
|
|
|
on_construct = cannons.on_construct,
|
2013-12-05 02:24:34 +01:00
|
|
|
can_dig = cannons.can_dig,
|
2013-11-13 17:42:48 +01:00
|
|
|
allow_metadata_inventory_put = cannons.allow_metadata_inventory_put,
|
2013-12-05 02:24:34 +01:00
|
|
|
allow_metadata_inventory_move = cannons.allow_metadata_inventory_move,
|
|
|
|
on_metadata_inventory_put = cannons.inventory_modified,
|
|
|
|
on_metadata_inventory_take = cannons.inventory_modified,
|
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-16 01:11:05 +01:00
|
|
|
description = "stone cannon stand",
|
2013-11-12 22:28:21 +01:00
|
|
|
stack_max = 99,
|
2013-11-16 01:07:47 +01:00
|
|
|
tiles = {"default_junglewood.png","default_cobble.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",
|
2013-11-16 01:07:47 +01:00
|
|
|
groups = {cracky=2,cannonstand=1},
|
2013-11-12 22:28:21 +01:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.stand,
|
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", {
|
2013-11-16 01:11:05 +01:00
|
|
|
description = "wooden cannon stand",
|
2013-11-13 21:12:23 +01:00
|
|
|
stack_max = 99,
|
2013-11-16 01:07:47 +01:00
|
|
|
tiles = {"default_junglewood.png","default_wood.png","default_junglewood.png^cannons_rim.png","default_junglewood.png^cannons_rim.png","default_wood.png","default_junglewood.png^cannons_rim.png"},
|
2013-11-13 21:12:23 +01:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2013-11-16 01:07:47 +01:00
|
|
|
groups = {cracky=2,cannonstand=1},
|
2013-11-13 21:12:23 +01:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.stand,
|
2013-11-13 21:12:23 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
2013-11-16 00:01:52 +01:00
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ cannon balls +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
2013-11-13 21:12:23 +01:00
|
|
|
|
2013-12-05 02:24:34 +01:00
|
|
|
--wood ball
|
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(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball,
|
2013-11-12 22:28:21 +01:00
|
|
|
})
|
|
|
|
|
2013-12-05 02:24:34 +01:00
|
|
|
--stone ball
|
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},
|
2013-12-05 06:15:52 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball,
|
2013-11-12 22:28:21 +01:00
|
|
|
})
|
|
|
|
|
2013-12-05 02:24:34 +01:00
|
|
|
--steel ball
|
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},
|
2013-12-05 06:15:52 +01:00
|
|
|
sounds = cannons.sound_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball,
|
2013-11-12 22:28:21 +01:00
|
|
|
})
|
2013-12-05 02:24:34 +01:00
|
|
|
|
|
|
|
--explosion cannon ball
|
2013-11-16 00:01:52 +01:00
|
|
|
if cannons.enable_explosion then
|
|
|
|
minetest.register_node("cannons:ball_exploding", {
|
|
|
|
description = "Exploding Cannon Ball",
|
|
|
|
stack_max = 99,
|
2013-12-02 16:36:29 +01:00
|
|
|
tiles = {"default_mese_block.png"},
|
2013-11-16 00:01:52 +01:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball,
|
2013-11-16 00:01:52 +01:00
|
|
|
})
|
|
|
|
end
|
2013-12-05 02:24:34 +01:00
|
|
|
|
|
|
|
--fire cannon ball
|
2013-11-16 00:01:52 +01:00
|
|
|
if cannons.enable_fire then
|
|
|
|
minetest.register_node("cannons:ball_fire", {
|
|
|
|
description = "Burning Cannon Ball",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_tree.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball,
|
2013-11-16 00:01:52 +01:00
|
|
|
})
|
|
|
|
end
|
2013-12-05 02:24:34 +01:00
|
|
|
|
|
|
|
--ball wood stack
|
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(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball_stack,
|
2013-11-12 22:28:21 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.5, 0.5, 0.3, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-12-05 02:24:34 +01:00
|
|
|
--ball stone stack
|
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},
|
2013-12-05 06:15:52 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball_stack,
|
2013-11-12 22:28:21 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.5, 0.5, 0.3, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-12-05 02:24:34 +01:00
|
|
|
--ball steel stack
|
2013-12-05 06:15:52 +01:00
|
|
|
minetest.register_node("cannons: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},
|
2013-12-05 06:15:52 +01:00
|
|
|
sounds = cannons.sound_defaults(),
|
2013-12-05 02:24:34 +01:00
|
|
|
node_box = cannons.nodeboxes.ball_stack,
|
2013-11-12 22:28:21 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.5, 0.5, 0.3, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2013-12-05 22:38:45 +01:00
|
|
|
minetest.register_alias("cannons:canon_ball_steel_stack", "cannons:ball_steel_stack")
|
2013-11-12 22:28:21 +01:00
|
|
|
|
2013-11-10 17:58:23 +01:00
|
|
|
|