Tweak armor values
This commit is contained in:
parent
c1e648877d
commit
71a53fbef8
12 changed files with 89 additions and 69 deletions
|
@ -1,22 +1,28 @@
|
|||
|
||||
local S = minetest.get_translator(rainbow_ore.modname)
|
||||
|
||||
|
||||
--Define Rainbow shield
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_shield", {
|
||||
description = S("Rainbow Shield"),
|
||||
inventory_image = "rainbow_ore_shield_inv.png",
|
||||
groups = {armor_shield=20, armor_heal=17, armor_use=40, armor_fire=1},
|
||||
groups = { armor_shield = 20, armor_heal = 17, armor_use = 70, armor_fire = 1 },
|
||||
armor_groups = { fleshy = 20 },
|
||||
damage_groups = { cracky = 2, snappy = 1, level = 3 },
|
||||
reciprocate_damage = true,
|
||||
on_damage = function(player, index, stack)
|
||||
play_sound_effect(player, "default_glass_footstep")
|
||||
end,
|
||||
on_destroy = function(player, index, stack)
|
||||
play_sound_effect(player, "default_break_glass")
|
||||
end,
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow shield crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_shield",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"", "rainbow_ore:rainbow_ore_ingot", ""},
|
||||
{ "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot" },
|
||||
{ "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot" },
|
||||
{ "", "rainbow_ore:rainbow_ore_ingot", "" },
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue