Added cactus armor and admin armor
@ -10,7 +10,25 @@ Shields -- Crafting Guide
|
||||
+---+---+---+
|
||||
|
||||
[shields:shield_wood] X = [default:wood]
|
||||
[shields:shield_cactus] X = [default:cactus]
|
||||
[shields:shield_steel] X = [default:steel_ingot]
|
||||
[shields:shield_bronze] X = [default:bronze_ingot]
|
||||
[shields:shield_diamond] X = [default:diamond]
|
||||
[shields:shield_gold] X = [default:gold_ingot]
|
||||
|
||||
Enhanced Shields
|
||||
----------------
|
||||
|
||||
+---+
|
||||
| S |
|
||||
+---+
|
||||
| X |
|
||||
+---+
|
||||
| S |
|
||||
+---+
|
||||
|
||||
[shields:shield_enhanced_wood] X = [shields:shield_wood]
|
||||
[shields:shield_enhanced_cactus] X = [shields:shield_cactus]
|
||||
|
||||
S = [default:steel_ingot]
|
||||
|
||||
|
@ -2,6 +2,13 @@ local use_moreores = minetest.get_modpath("moreores")
|
||||
|
||||
-- Regisiter Shields
|
||||
|
||||
minetest.register_tool("shields:shield_admin", {
|
||||
description = "Admin Shield",
|
||||
inventory_image = "shields_inv_shield_admin.png",
|
||||
groups = {armor_shield=1000, armor_heal=100, armor_use=0},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("shields:shield_wood", {
|
||||
description = "Wooden Shield",
|
||||
inventory_image = "shields_inv_shield_wood.png",
|
||||
@ -9,6 +16,13 @@ minetest.register_tool("shields:shield_wood", {
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("shields:shield_cactus", {
|
||||
description = "Cactus Shield",
|
||||
inventory_image = "shields_inv_shield_cactus.png",
|
||||
groups = {armor_shield=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("shields:shield_steel", {
|
||||
description = "Steel Shield",
|
||||
inventory_image = "shields_inv_shield_steel.png",
|
||||
@ -48,6 +62,7 @@ end
|
||||
|
||||
local craft_ingreds = {
|
||||
wood = "default:wood",
|
||||
cactus = "default:cactus",
|
||||
steel = "default:steel_ingot",
|
||||
bronze = "default:bronze_ingot",
|
||||
diamond = "default:diamond",
|
||||
@ -69,8 +84,38 @@ for k, v in pairs(craft_ingreds) do
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_tool("shields:shield_enhanced_wood", {
|
||||
description = "Enhanced Wood Shield",
|
||||
inventory_image = "shields_inv_shield_enhanced_wood.png",
|
||||
groups = {armor_shield=8, armor_heal=0, armor_use=1000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("shields:shield_enhanced_cactus", {
|
||||
description = "Enhanced Cactus Shield",
|
||||
inventory_image = "shields_inv_shield_enhanced_cactus.png",
|
||||
groups = {armor_shield=8, armor_heal=0, armor_use=1000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "shields:shield_enhanced_wood",
|
||||
recipe = {
|
||||
{"default:steel_ingot"},
|
||||
{"shields:shield_wood"},
|
||||
{"default:steel_ingot"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "shields:shield_enhanced_cactus",
|
||||
recipe = {
|
||||
{"default:steel_ingot"},
|
||||
{"shields:shield_cactus"},
|
||||
{"default:steel_ingot"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.after(0, function()
|
||||
table.insert(armor.elements, "shield")
|
||||
end)
|
||||
|
||||
|
||||
|
BIN
shields/textures/shields_inv_shield_admin.png
Normal file
After Width: | Height: | Size: 580 B |
BIN
shields/textures/shields_inv_shield_cactus.png
Normal file
After Width: | Height: | Size: 419 B |
BIN
shields/textures/shields_inv_shield_enhanced_cactus.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
shields/textures/shields_inv_shield_enhanced_wood.png
Normal file
After Width: | Height: | Size: 661 B |
BIN
shields/textures/shields_shield_admin.png
Normal file
After Width: | Height: | Size: 543 B |
BIN
shields/textures/shields_shield_admin_preview.png
Normal file
After Width: | Height: | Size: 873 B |
BIN
shields/textures/shields_shield_cactus.png
Normal file
After Width: | Height: | Size: 455 B |
BIN
shields/textures/shields_shield_cactus_preview.png
Normal file
After Width: | Height: | Size: 739 B |
BIN
shields/textures/shields_shield_enhanced_cactus.png
Normal file
After Width: | Height: | Size: 515 B |
BIN
shields/textures/shields_shield_enhanced_cactus_preview.png
Normal file
After Width: | Height: | Size: 824 B |
BIN
shields/textures/shields_shield_enhanced_wood.png
Normal file
After Width: | Height: | Size: 693 B |
BIN
shields/textures/shields_shield_enhanced_wood_preview.png
Normal file
After Width: | Height: | Size: 1.1 KiB |