First release

master
Zander Marshall 2016-09-22 11:51:00 +10:00
parent 80d9a71a9e
commit a8b2779a9a
16 changed files with 153 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

152
init.lua Normal file
View File

@ -0,0 +1,152 @@
-- GENERATED CODE
-- Node Box Editor, version 0.9.0
-- Namespace: test
minetest.register_node("bac:bac_box", {
description = "Bac_box",
tiles = {
"compass_0.png",
"technic_checkmark_icon.png",
"diplazer_grav.png",
"front.jpg",
"heart.png",
"gold.png"
},
light_source = 10,
groups = {cracky=3},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, -- NodeBox6
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- NodeBox7
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox8
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox9
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375}, -- NodeBox10
}
}
});
minetest.register_craft({
output = "bac:bac_box",
recipe = {
{"default:mese_crystal", "default:diamond", "default:mese_crystal"},
{"default:stone", "default:chest", "default:stone"},
{"default:stone", "default:stone", "default:stone"},
}
})
minetest.register_tool("bac:bac_pick", {
description = "Bac_Pick",
inventory_image = "bac_pick.png",
after_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(2000)
end,
tool_capabilities = {
max_drop_level=9,
groupcaps= {
cracky={times={[1]=1.00, [2]=1.50, [3]=2.00}, uses=99, maxlevel=9}
}
}
});
minetest.register_craft({
output = "bac:bac_pick",
recipe = {
{"bac:bac_box", "bac:bac_box", "bac:bac_box"},
{"", "default:stick", ""},
{"", "default:stick", ""},
}
})
minetest.register_tool("bac:bac_pick_upgraded", {
description = "Bac_Pick_upgraded",
inventory_image = "bac_pick_upgraded.png",
after_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(200)
end,
tool_capabilities = {
max_drop_level=99,
groupcaps= {
cracky={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99}
}
}
});
minetest.register_craft({
output = "bac:bac_pick_upgraded",
recipe = {
{"", "default:mese_crystal", ""},
{"", "bac:bac_pick", ""},
{"", "", ""},
}
})
minetest.register_tool("bac:bac_final", {
description = "Bac final",
after_use = function()
minetest.sound_play("photon_gun_shot")
end,
inventory_image = "bac_final.png",
tool_capabilities = {
max_drop_level=99,
groupcaps={
cracky={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99},
crumbly={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99},
snappy={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99},
choppy={times={[1]=0.50, [2]=1.00, [3]=1.50}, uses=99, maxlevel=99},
},
damage_groups = {fleshy=30}
},
})
minetest.register_craft({
output = "bac:bac_final",
recipe = {
{"", "default:mese_crystal", ""},
{"", "bac:bac_pick_upgraded", ""},
{"", "", ""},
}
})
minetest.register_craftitem("bac:edible", {
description = "Bac Edible",
after_use = function()
minetest.sound_play("crunch")
end,
inventory_image = "bac_edible.png",
on_use = minetest.item_eat(90),
})
minetest.register_craft({
type = "cooking",
output = "bac:edible",
recipe = "bac:bac_final",
})
minetest.register_tool("bac:bac_laser", {
description = "Bac laser",
after_use = function()
minetest.sound_play("laser")
end,
inventory_image = "bac_laser.png",
tool_capabilities = {
max_drop_level=99,
groupcaps={
cracky={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99},
crumbly={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99},
snappy={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99},
choppy={times={[1]=0.50, [2]=0.50, [3]=0.50}, uses=99, maxlevel=99},
},
damage_groups = {fleshy=99}
},
})
minetest.register_craft({
output = "bac:bac_laser",
recipe = {
{"", "default:mese_crystal", ""},
{"", "bac:edible", ""},
{"", "default:diamond", ""},
}
})

BIN
sounds/crunch.ogg Normal file

Binary file not shown.

BIN
sounds/laser.ogg Normal file

Binary file not shown.

BIN
sounds/photon_gun_shot.ogg Normal file

Binary file not shown.

BIN
textures/bac_edible.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

BIN
textures/bac_final.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

BIN
textures/bac_laser.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

BIN
textures/bac_pick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

BIN
textures/compass_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

BIN
textures/diplazer_grav.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

BIN
textures/front.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

BIN
textures/gold.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
textures/heart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B