2013-11-12 22:28:21 +01:00
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ Craft Items +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2013-10-12 12:24:24 +02:00
|
|
|
minetest.register_craftitem("canons:gunpowder", {
|
|
|
|
groups = {gunpowder=1},
|
2013-11-10 17:58:23 +01:00
|
|
|
description = "Gunpowder",
|
2013-10-12 12:24:24 +02:00
|
|
|
inventory_image = "canons_gunpowder.png"
|
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-10-12 12:24:24 +02:00
|
|
|
minetest.register_craftitem("canons:salt", {
|
2013-11-10 17:58:23 +01:00
|
|
|
description = "Salt",
|
2013-10-12 12:24:24 +02:00
|
|
|
inventory_image = "canons_salt.png"
|
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
|
|
|
minetest.register_craftitem("canons:bucket_salt", {
|
|
|
|
description = "Bucket with salt",
|
|
|
|
inventory_image = "canons_bucket_salt.png",
|
|
|
|
stack_max = 300
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("canons:iron_barrel", {
|
|
|
|
groups = {canonbarrel=1},
|
|
|
|
description = "Iron Cannonbarrel",
|
|
|
|
inventory_image = "canons_barrel_iron.png",
|
|
|
|
stack_max = 10
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("canons:copper_barrel", {
|
|
|
|
groups = {canonbarrel=1},
|
|
|
|
description = "copper Cannonbarrel",
|
|
|
|
inventory_image = "canons_barrel_copper.png",
|
|
|
|
stack_max = 10
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("canons:mithrill_barrel", {
|
|
|
|
groups = {canonbarrel=1},
|
|
|
|
description = "mithrill Cannonbarrel",
|
|
|
|
inventory_image = "canons_barrel_mithrill.png",
|
|
|
|
stack_max = 10
|
2013-10-12 12:24:24 +02:00
|
|
|
})
|
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
minetest.register_craftitem("canons:stone_bullet", {
|
|
|
|
Description = "Stone Bullet",
|
|
|
|
inventory_image = "canons_bullet.png"
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ crafts +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'canons:salt 12',
|
|
|
|
recipe = {
|
|
|
|
"canons:bucket_salt"
|
|
|
|
},
|
|
|
|
replacements = {
|
|
|
|
{"canons:bucket_salt", "bucket:bucket_empty"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = 'canons:bucket_salt',
|
|
|
|
recipe = 'bucket:bucket_water',
|
|
|
|
cooktime = 15
|
|
|
|
})
|
|
|
|
|
2013-11-10 17:58:23 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'canons:gunpowder',
|
|
|
|
recipe = {
|
|
|
|
"default:coal_lump", "default:mese_crystal", "canons:salt"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
-- not needed --
|
2013-11-10 17:58:23 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'canons:iron_barrel',
|
|
|
|
recipe = {
|
|
|
|
{"default:steelblock", "default:steelblock", "default:steelblock"},
|
|
|
|
{"", "default:mese_block", ""},
|
|
|
|
{"default:steelblock", "default:steelblock", "default:steelblock"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'canons:canon',
|
|
|
|
recipe = {
|
|
|
|
{"default:cobble", "default:cobble", "default:cobble"},
|
|
|
|
{"", "group:canonbarrel", ""},
|
|
|
|
{"default:cobble", "default:cobble", "default:cobble"}
|
|
|
|
},
|
|
|
|
})
|
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({
|
|
|
|
output = 'canons:canon',
|
|
|
|
recipe = {
|
|
|
|
{"default:steelblock", "default:steelblock", "default:steelblock"},
|
|
|
|
{"canons:gunpowder", "default:mese_block", ""},
|
|
|
|
{"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({
|
|
|
|
output = 'canons:bronze_canon',
|
|
|
|
recipe = {
|
|
|
|
{"default:bronzeblock", "default:bronzeblock", "default:bronzeblock"},
|
|
|
|
{"canons:gunpowder", "default:mese_block", ""},
|
|
|
|
{"default:bronzeblock", "default:bronzeblock", "default:bronzeblock"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'canons:canon_stand',
|
|
|
|
recipe = {
|
|
|
|
{"default:wood", "", "default:wood"},
|
|
|
|
{"default:wood", "default:steelblock", "default:wood"},
|
|
|
|
{"default:wood", "default:wood", "default:wood"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'canons:canon_ball_steel_stack',
|
|
|
|
recipe = {
|
|
|
|
"canons:canon_ball_steel", "canons:canon_ball_steel", "canons:canon_ball_steel", "canons:canon_ball_steel"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'canons:canon_ball_stone_stack',
|
|
|
|
recipe = {
|
|
|
|
"canons:canon_ball_stone", "canons:canon_ball_stone", "canons:canon_ball_stone", "canons:canon_ball_stone"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = 'canons:canon_ball_wood_stack',
|
|
|
|
recipe = {
|
|
|
|
"canons:canon_ball_wood", "canons:canon_ball_wood", "canons:canon_ball_wood", "canons:canon_ball_wood"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'canons:canon_ball_wood 2',
|
|
|
|
recipe = {
|
|
|
|
{"default:wood","default:wood"},
|
|
|
|
},
|
2013-10-12 12:24:24 +02:00
|
|
|
})
|
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'canons:canon_ball_stone',
|
|
|
|
recipe = {
|
|
|
|
{"default:stone"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'canons:canon_ball_steel',
|
|
|
|
recipe = {
|
|
|
|
{"default:steelblock"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- silly crafts --
|
|
|
|
|
|
|
|
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
|
|
|
--+ cannon stuff +
|
|
|
|
--++++++++++++++++++++++++++++++++++++
|
2013-10-12 12:24:24 +02:00
|
|
|
canons.formspec =
|
|
|
|
"size[8,9]"..
|
|
|
|
"list[current_name;gunpowder;2,3;1,1;]"..
|
|
|
|
"list[current_name;muni;2,1;1,1;]"..
|
|
|
|
"list[current_player;main;0,5;8,4;]"
|
2013-11-12 22:28:21 +01:00
|
|
|
-- classic cannon --
|
2013-10-12 12:24:24 +02:00
|
|
|
minetest.register_node("canons:canon", {
|
2013-11-12 22:28:21 +01:00
|
|
|
description = "Cannon",
|
|
|
|
stack_max = 1,
|
|
|
|
tiles = {"cannon_cannon_top.png","cannon_cannon_top.png","cannon_cannon_side.png","cannon_cannon_side.png","cannon_cannon_top.png^canons_canons_rim.png","cannon_cannon_side.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
2013-10-12 12:24:24 +02:00
|
|
|
paramtype2 = "facedir",
|
2013-11-12 22:28:21 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, 0.2, -0.7, 0.2, -0.2, 0.9}, -- barrle --
|
|
|
|
{0.53, -0.1, 0.1, -0.53, 0.1, -0.1}, -- plinth --
|
|
|
|
|
|
|
|
-- side , top hight , depth , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, 0.2, -0.7, 0.2, -0.2, 0.9},
|
|
|
|
{0.53, -0.1, 0.1, -0.53, 0.1, -0.1},
|
|
|
|
},
|
|
|
|
},
|
2013-10-12 12:24:24 +02:00
|
|
|
on_punch = canons.punched,
|
|
|
|
on_construct = function(pos)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
meta:set_string("formspec", canons.formspec)
|
|
|
|
meta:set_string("infotext", "Canon has no muni and no gunpowder")
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("gunpowder", 1)
|
|
|
|
inv:set_size("muni", 1)
|
|
|
|
|
|
|
|
end,
|
|
|
|
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,
|
|
|
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
stack = stack:to_table()
|
|
|
|
if listname == "gunpowder" and stack.name == "canons:gunpowder" then
|
|
|
|
return stack.count
|
|
|
|
elseif listname == "muni" and canons.is_muni(stack.name) then
|
|
|
|
return stack.count
|
|
|
|
else return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
end,
|
|
|
|
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
local stack = inv:get_stack(from_list, from_index)
|
|
|
|
stack = stack:to_table()
|
|
|
|
if to_list == "gunpowder" and stack.name == "canons:gunpowder" then
|
|
|
|
return count
|
|
|
|
|
|
|
|
elseif to_list == "muni" and canons.is_muni(stack.name) then
|
|
|
|
return count
|
|
|
|
else
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
end,
|
|
|
|
on_metadata_inventory_put = canons.inventory_modified,
|
|
|
|
|
|
|
|
on_metadata_inventory_take = canons.inventory_modified,
|
|
|
|
|
|
|
|
on_metadata_inventory_move = canons.inventory_modified,
|
|
|
|
|
|
|
|
})
|
2013-11-10 17:58:23 +01:00
|
|
|
|
2013-11-12 22:28:21 +01:00
|
|
|
-- bronze cannon --
|
|
|
|
minetest.register_node("canons:bronze_canon", {
|
|
|
|
description = "Cannon",
|
|
|
|
stack_max = 1,
|
|
|
|
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^canons_canons_rim.png","cannon_bronze_cannon_side.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, 0.2, -0.7, 0.2, -0.2, 0.9}, -- barrle --
|
|
|
|
{0.53, -0.1, 0.1, -0.53, 0.1, -0.1}, -- plinth --
|
|
|
|
|
|
|
|
-- side , top hight , depth , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, 0.2, -0.7, 0.2, -0.2, 0.9},
|
|
|
|
{0.53, -0.1, 0.1, -0.53, 0.1, -0.1},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
on_punch = canons.punched,
|
|
|
|
on_construct = function(pos)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
meta:set_string("formspec", canons.formspec)
|
|
|
|
meta:set_string("infotext", "Canon has no muni and no gunpowder")
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("gunpowder", 1)
|
|
|
|
inv:set_size("muni", 1)
|
|
|
|
|
|
|
|
end,
|
|
|
|
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,
|
|
|
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
stack = stack:to_table()
|
|
|
|
if listname == "gunpowder" and stack.name == "canons:gunpowder" then
|
|
|
|
return stack.count
|
|
|
|
elseif listname == "muni" and canons.is_muni(stack.name) then
|
|
|
|
return stack.count
|
|
|
|
else return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
end,
|
|
|
|
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
local stack = inv:get_stack(from_list, from_index)
|
|
|
|
stack = stack:to_table()
|
|
|
|
if to_list == "gunpowder" and stack.name == "canons:gunpowder" then
|
|
|
|
return count
|
|
|
|
|
|
|
|
elseif to_list == "muni" and canons.is_muni(stack.name) then
|
|
|
|
return count
|
|
|
|
else
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
end,
|
|
|
|
on_metadata_inventory_put = canons.inventory_modified,
|
|
|
|
|
|
|
|
on_metadata_inventory_take = canons.inventory_modified,
|
|
|
|
|
|
|
|
on_metadata_inventory_move = canons.inventory_modified,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("canons:canon_stand", {
|
|
|
|
description = "Cannon Stand",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_junglewood.png","default_junglewood.png^canons_canons_rim.png","default_junglewood.png^canons_canons_rim.png","default_junglewood.png^canons_canons_rim.png","default_cobble.png","default_junglewood.png^canons_canons_rim.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, -- bottom --
|
|
|
|
{-0.5, -0.5, -0.5, -0.35, 1.0, 0.5}, -- side left --
|
|
|
|
{0.35, -0.5, -0.5, 0.5, 1.0, 0.5}, -- side right --
|
|
|
|
{0.35, -0.5, -0.2, 0.5, 1.2, 0.5}, -- side right --
|
|
|
|
{-0.5, -0.5, -0.2, -0.35, 1.2, 0.5}, -- side left --
|
|
|
|
|
|
|
|
-- side , top , side , side , bottom, side,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.register_node("canons:canon_ball_wood", {
|
|
|
|
description = "Cannon Ball Stone",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
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},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("canons:canon_ball_stone", {
|
|
|
|
description = "Cannon Ball Stone",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
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},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("canons:canon_ball_steel", {
|
|
|
|
description = "Cannon Ball Wood",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"cannon_cannon_top.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
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},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("canons:canon_ball_wood_stack", {
|
|
|
|
description = "Cannon Ball Wood Stack",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
drop = 'canons:canon_ball_wood 4',
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
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},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("canons:canon_ball_stone_stack", {
|
|
|
|
description = "Cannon Ball Stone Stack",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
drop = 'canons:canon_ball_stone 4',
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
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},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("canons:canon_ball_steel_stack", {
|
|
|
|
description = "Cannon Ball Steel Stack",
|
|
|
|
stack_max = 99,
|
|
|
|
tiles = {"cannon_cannon_top.png"},
|
|
|
|
drawtype = "nodebox",
|
|
|
|
drop = 'canons:canon_ball_steel 4',
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = true,
|
|
|
|
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
|
|
|
|