minetest_x_bows/items.lua

150 lines
3.5 KiB
Lua
Raw Normal View History

2021-03-13 20:39:42 -06:00
x_bows.register_bow('bow_wood', {
2022-10-16 15:02:04 -05:00
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'},
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_wood', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Wood',
inventory_image = 'x_bows_arrow_wood.png',
craft = {
{'default:flint'},
{'group:stick'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 1,
max_drop_level = 0,
damage_groups = {fleshy=2}
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_stone', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Stone',
inventory_image = 'x_bows_arrow_stone.png',
craft = {
{'default:flint'},
{'group:stone'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 0,
damage_groups = {fleshy=4}
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_bronze', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Bronze',
inventory_image = 'x_bows_arrow_bronze.png',
craft = {
{'default:flint'},
{'default:bronze_ingot'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
damage_groups = {fleshy=6}
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_steel', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Steel',
inventory_image = 'x_bows_arrow_steel.png',
craft = {
{'default:flint'},
{'default:steel_ingot'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=6}
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_mese', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Mese',
inventory_image = 'x_bows_arrow_mese.png',
craft = {
{'default:flint'},
{'default:mese_crystal'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=7}
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_diamond', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Diamond',
inventory_image = 'x_bows_arrow_diamond.png',
craft = {
{'default:flint'},
{'default:diamond'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=8}
}
2021-03-13 20:39:42 -06:00
})
x_bows.register_arrow('arrow_diamond_tipped_poison', {
2022-10-16 15:02:04 -05:00
description = 'Arrow Diamond Tipped Poison (0:05)',
inventory_image = 'x_bows_arrow_diamond_poison.png',
craft = {
{'', '', ''},
{'', 'default:marram_grass_1', ''},
{'', 'x_bows:arrow_diamond', ''}
},
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
damage_groups = {fleshy=8}
},
craft_count = 1
})
x_bows.register_quiver('quiver', {
description = 'Quiver \n\n Empty\n',
short_description = 'Quiver',
recipe = {
{'group:arrow', 'group:arrow', 'group:arrow'},
{'group:arrow', 'wool:brown', 'group:arrow'},
{'group:arrow', 'group:arrow', 'group:arrow'}
},
craft_count = 1,
faster_arrows = 5,
add_damage = 2
})
minetest.register_craft({
type = 'fuel',
recipe = 'x_bows:bow_wood',
burntime = 3,
2021-03-13 20:39:42 -06:00
})
minetest.register_craft({
2022-10-16 15:02:04 -05:00
type = 'fuel',
recipe = 'x_bows:arrow_wood',
burntime = 1,
2021-03-13 20:39:42 -06:00
})
minetest.register_craft({
2022-10-16 15:02:04 -05:00
type = 'fuel',
recipe = 'x_bows:quiver',
burntime = 3,
2021-03-13 20:39:42 -06:00
})