Add technic shields by poet.nohit
|
@ -77,5 +77,25 @@ if minetest.get_modpath("technic") then
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("shields") then
|
||||||
|
for k, v in pairs(stats) do
|
||||||
|
minetest.register_tool("technic_armor:shield_"..k, {
|
||||||
|
description = v.name.." Shield",
|
||||||
|
inventory_image = "technic_armor_inv_shield_"..k..".png",
|
||||||
|
groups = {armor_shield=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
local m = mats[k]
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "technic_armor:shield_"..k,
|
||||||
|
recipe = {
|
||||||
|
{m, m, m},
|
||||||
|
{m, m, m},
|
||||||
|
{"", m, ""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
BIN
technic_armor/textures/technic_armor_inv_shield_brass.png
Normal file
After Width: | Height: | Size: 532 B |
BIN
technic_armor/textures/technic_armor_inv_shield_carbon.png
Normal file
After Width: | Height: | Size: 575 B |
BIN
technic_armor/textures/technic_armor_inv_shield_cast.png
Normal file
After Width: | Height: | Size: 546 B |
BIN
technic_armor/textures/technic_armor_inv_shield_silver.png
Normal file
After Width: | Height: | Size: 582 B |
BIN
technic_armor/textures/technic_armor_inv_shield_stainless.png
Normal file
After Width: | Height: | Size: 591 B |
BIN
technic_armor/textures/technic_armor_inv_shield_tin.png
Normal file
After Width: | Height: | Size: 524 B |
BIN
technic_armor/textures/technic_armor_shield_brass.png
Normal file
After Width: | Height: | Size: 544 B |
BIN
technic_armor/textures/technic_armor_shield_brass_preview.png
Normal file
After Width: | Height: | Size: 735 B |
BIN
technic_armor/textures/technic_armor_shield_carbon.png
Normal file
After Width: | Height: | Size: 587 B |
BIN
technic_armor/textures/technic_armor_shield_carbon_preview.png
Normal file
After Width: | Height: | Size: 773 B |
BIN
technic_armor/textures/technic_armor_shield_cast.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
technic_armor/textures/technic_armor_shield_cast_preview.png
Normal file
After Width: | Height: | Size: 751 B |
BIN
technic_armor/textures/technic_armor_shield_silver.png
Normal file
After Width: | Height: | Size: 596 B |
BIN
technic_armor/textures/technic_armor_shield_silver_preview.png
Normal file
After Width: | Height: | Size: 784 B |
BIN
technic_armor/textures/technic_armor_shield_stainless.png
Normal file
After Width: | Height: | Size: 605 B |
After Width: | Height: | Size: 787 B |
BIN
technic_armor/textures/technic_armor_shield_tin.png
Normal file
After Width: | Height: | Size: 537 B |
BIN
technic_armor/textures/technic_armor_shield_tin_preview.png
Normal file
After Width: | Height: | Size: 729 B |