minetest_x_bows/items.lua

131 lines
2.6 KiB
Lua
Raw Normal View History

2021-03-13 20:39:42 -06:00
x_bows.register_bow('bow_wood', {
description = 'Wooden Bow',
uses = 385,
-- `crit_chance` 10% chance, 5 is 20% chance
-- (1 / crit_chance) * 100 = % chance
crit_chance = 10,
recipe = {
{'', 'default:stick', 'farming:string'},
{'default:stick', '', 'farming:string'},
{'', 'default:stick', 'farming:string'},
}
})
x_bows.register_arrow('arrow_wood', {
description = 'Arrow Wood',
inventory_image = 'x_bows_arrow_wood.png',
craft = {
2021-03-20 13:25:49 -05:00
{'default:flint'},
{'group:stick'},
{'group:wool'}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 1,
max_drop_level = 0,
damage_groups = {fleshy=2}
}
})
x_bows.register_arrow('arrow_stone', {
description = 'Arrow Stone',
inventory_image = 'x_bows_arrow_stone.png',
craft = {
2021-03-20 13:25:49 -05:00
{'default:flint'},
{'group:stone'},
{'group:wool'}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 0,
damage_groups = {fleshy=4}
}
})
x_bows.register_arrow('arrow_bronze', {
description = 'Arrow Bronze',
inventory_image = 'x_bows_arrow_bronze.png',
craft = {
2021-03-20 13:25:49 -05:00
{'default:flint'},
{'default:bronze_ingot'},
{'group:wool'}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
damage_groups = {fleshy=6}
}
})
x_bows.register_arrow('arrow_steel', {
description = 'Arrow Steel',
inventory_image = 'x_bows_arrow_steel.png',
craft = {
2021-03-20 13:25:49 -05:00
{'default:flint'},
{'default:steel_ingot'},
{'group:wool'}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=6}
}
})
x_bows.register_arrow('arrow_mese', {
description = 'Arrow Mese',
inventory_image = 'x_bows_arrow_mese.png',
craft = {
2021-03-20 13:25:49 -05:00
{'default:flint'},
{'default:mese_crystal'},
{'group:wool'}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=7}
}
})
x_bows.register_arrow('arrow_diamond', {
description = 'Arrow Diamond',
inventory_image = 'x_bows_arrow_diamond.png',
craft = {
2021-03-20 13:25:49 -05:00
{'default:flint'},
{'default:diamond'},
{'group:wool'}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=8}
}
})
x_bows.register_arrow('arrow_diamond_tipped_poison', {
description = 'Arrow Diamond Tipped Poison (0:05)',
inventory_image = 'x_bows_arrow_diamond_poison.png',
craft = {
{'', '', ''},
2021-03-20 13:25:49 -05:00
{'', 'default:marram_grass_1', ''},
{'', 'x_bows:arrow_diamond', ''}
2021-03-13 20:39:42 -06:00
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=8}
},
craft_count = 1
})
minetest.register_craft({
type = 'fuel',
recipe = 'x_bows:bow_wood',
burntime = 3,
})
minetest.register_craft({
type = 'fuel',
recipe = 'x_bows:arrow_wood',
burntime = 1,
})