Add files via upload

master
zander999 2017-03-14 18:13:05 +10:00 committed by GitHub
parent 78489997c3
commit 2aad677450
11 changed files with 264 additions and 1 deletions

View File

@ -1 +1,69 @@
# air_items
# Minetest bac mod
This is my first public mod
## What it does
It adds 1 node, 4 tools and 1 bit of food. The one node is called a bac box it is a cube with the top off (the is middle hollow). It will generate mese when in water.
The 4 tools are for mining 2 of them are also for other use. The mining tools are bac_pick, bac_pick_upgraded, bac_final and bac_laser.
The 2 other use tools are bac_final and bac_laser they act as a pickaxe, shovel, sword and a axe.
the 1 bit of food is a bac_edible you can eat it.
## How to install
Clone or download this repository to the minetest mods folder.
## How to use it
the craft guides are for bac_pick (craft)
b=bac_box s=stick e=empty
```
(b)(b)(b)
(e)(s)(e)
(e)(s)(e)
```
bac_pick_upgraded (craft)
b=bac_pick m=mese_crystal e=empty
```
(e)(m)(e)
(e)(b)(e)
(e)(e)(e)
```
bac_final (craft)
b=bac_pick_upgraded m=mese_crystal e=empty
```
(e)(m)(e)
(e)(b)(e)
(e)(e)(e)
```
bac_edible (furnace)
f=fuel b=bac_final e=empty
```
(b) (e)
(f)
```
bac_laser (craft)
b=bac_edible d=diamond m=mese_crystal e=empty
```
(e)(m)(e)
(e)(b)(e)
(e)(d)(e)
```
bac_box (craft)
d=diamond s=stone c=chest m=mese_crystal
```
(m)(d)(m)
(s)(c)(s)
(s)(s)(s)
```
you can dig deep down to the caves or build high up to the sky.

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

194
init.lua Normal file
View File

@ -0,0 +1,194 @@
minetest.register_ore({
ore_type = "scatter",
ore = "air_items:air_ore",
wherein = "default:stone",
clust_scarcity = 5*5*5,
clust_num_ores = 2,
clust_size = 2,
height_min = -31000,
height_max = -100,
})
minetest.register_node("air_items:air_ore", {
description = "air ore",
tiles = {"default_stone.png^air_ore.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
drop = 'air_items:air',
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("air_items:air", {
description = "air",
tiles = {
"air.png",
"air.png",
"air.png",
"air.png",
"air.png",
"air.png"
},
light_source = 15,
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 = "air_items:air",
recipe = {
{"default:mese_crystal", "", "default:mese_crystal"},
{"default:stone", "", "default:stone"},
{"default:stone", "", "default:stone"},
}
})
minetest.register_tool("air_items:air_pick", {
description = "air Pick",
inventory_image = "air_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 = "air_items:air_pick",
recipe = {
{"air_items:air", "air_items:air", "air_items:air"},
{"", "default:stick", ""},
{"", "default:stick", ""},
}
})
minetest.register_tool("air_items:air_pick_upgraded", {
description = "air Pick reinforced",
inventory_image = "air_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 = "air_items:air_pick_upgraded",
recipe = {
{"", "default:mese_crystal", ""},
{"", "air_items:air_pick", ""},
{"", "", ""},
}
})
minetest.register_tool("air_items:air_sword", {
description = "air Sword",
inventory_image = "air_sword.png",
after_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(20)
end,
tool_capabilities = {
max_drop_level=99,
groupcaps={
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=99}
},
})
minetest.register_craft({
output = "air_items:air_sword",
recipe = {
{"", "air_items:air", ""},
{"", "air_items:air", ""},
{"", "default:stick", ""},
}
})
minetest.register_craftitem("air_items:air_lollipop", {
description = "air lollipop",
inventory_image = "air_lollipop.png",
on_use = minetest.item_eat(90),
})
minetest.register_craft({
type = "cooking",
output = "air_items:air_lollipop",
recipe = "air_items:air_sword",
})
minetest.register_tool("air_items:air_lazer", {
description = "air laser",
inventory_image = "air_lazer.png",
after_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(2)
end,
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 = "air_items:air_lazer",
recipe = {
{"", "default:mese_crystal", ""},
{"", "air_items:air_lollipop", ""},
{"", "default:diamond", ""},
}
})
minetest.register_abm({
nodenames = {"air_items:air"},
neighbors = {"default:water_source", "default:water_flowing"},
interval = 2.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node({x = pos.x, y = pos.y + 1, z = pos.z}, {name = "default:mese"})
end
})
minetest.register_craft({
output = "air_items:air_lollipop",
recipe = {
{"", "", ""},
{"", "default:mese_crystal", ""},
{"", "default:diamond", ""},
}
})

BIN
textures/air.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

BIN
textures/air_lazer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

BIN
textures/air_lollipop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

BIN
textures/air_ore.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

BIN
textures/air_pick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

BIN
textures/air_sword.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

BIN
textures/default_stone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B