Added cactus armor and admin armor
33
3d_armor/admin.lua
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
minetest.register_alias("adminboots","3d_armor:boots_admin")
|
||||||
|
minetest.register_alias("adminhelmet","3d_armor:helmet_admin")
|
||||||
|
minetest.register_alias("adminchestplate","3d_armor:chestplate_admin")
|
||||||
|
minetest.register_alias("adminlegginss","3d_armor:leggings_admin")
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:helmet_admin", {
|
||||||
|
description = "Admin Helmet",
|
||||||
|
inventory_image = "3d_armor_inv_helmet_admin.png",
|
||||||
|
groups = {armor_head=1000, armor_heal=1000, armor_use=0, not_in_creative=0},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:chestplate_admin", {
|
||||||
|
description = "Admin Chestplate",
|
||||||
|
inventory_image = "3d_armor_inv_chestplate_admin.png",
|
||||||
|
groups = {armor_torso=1000, armor_heal=1000, armor_use=0, not_in_creative=0},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:leggings_admin", {
|
||||||
|
description = "Admin Leggings",
|
||||||
|
inventory_image = "3d_armor_inv_leggings_admin.png",
|
||||||
|
groups = {armor_legs=1000, armor_heal=1000, armor_use=0, not_in_creative=0},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:boots_admin", {
|
||||||
|
description = "Admin Boots",
|
||||||
|
inventory_image = "3d_armor_inv_boots_admin.png",
|
||||||
|
groups = {armor_feet=1000, armor_heal=1000, armor_use=0, not_in_creative=0},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
@ -12,6 +12,7 @@ Helmets:
|
|||||||
+---+---+---+
|
+---+---+---+
|
||||||
|
|
||||||
[3d_armor:helmet_wood] X = [default:wood]
|
[3d_armor:helmet_wood] X = [default:wood]
|
||||||
|
[3d_armor:helmet_cactus] X = [default:cactus]
|
||||||
[3d_armor:helmet_steel] X = [default:steel_ingot]
|
[3d_armor:helmet_steel] X = [default:steel_ingot]
|
||||||
[3d_armor:helmet_bronze] X = [default:bronze_ingot]
|
[3d_armor:helmet_bronze] X = [default:bronze_ingot]
|
||||||
[3d_armor:helmet_diamond] X = [default:diamond]
|
[3d_armor:helmet_diamond] X = [default:diamond]
|
||||||
@ -29,6 +30,7 @@ Chestplates:
|
|||||||
+---+---+---+
|
+---+---+---+
|
||||||
|
|
||||||
[3d_armor:chestplate_wood] X = [default:wood]
|
[3d_armor:chestplate_wood] X = [default:wood]
|
||||||
|
[3d_armor:chestplate_cactus] X = [default:cactus]
|
||||||
[3d_armor:chestplate_steel] X = [default:steel_ingot]
|
[3d_armor:chestplate_steel] X = [default:steel_ingot]
|
||||||
[3d_armor:chestplate_bronze] X = [default:bronze_ingot]
|
[3d_armor:chestplate_bronze] X = [default:bronze_ingot]
|
||||||
[3d_armor:chestplate_diamond] X = [default:diamond]
|
[3d_armor:chestplate_diamond] X = [default:diamond]
|
||||||
@ -46,6 +48,7 @@ Leggings:
|
|||||||
+---+---+---+
|
+---+---+---+
|
||||||
|
|
||||||
[3d_armor:leggings_wood] X = [default:wood]
|
[3d_armor:leggings_wood] X = [default:wood]
|
||||||
|
[3d_armor:leggings_cactus] X = [default:cactus]
|
||||||
[3d_armor:leggings_steel] X = [default:steel_ingot]
|
[3d_armor:leggings_steel] X = [default:steel_ingot]
|
||||||
[3d_armor:leggings_bronze] X = [default:bronze_ingot]
|
[3d_armor:leggings_bronze] X = [default:bronze_ingot]
|
||||||
[3d_armor:leggings_diamond] X = [default:diamond]
|
[3d_armor:leggings_diamond] X = [default:diamond]
|
||||||
@ -61,6 +64,7 @@ Boots:
|
|||||||
+---+---+---+
|
+---+---+---+
|
||||||
|
|
||||||
[3d_armor:boots_wood] X = [default:wood]
|
[3d_armor:boots_wood] X = [default:wood]
|
||||||
|
[3d_armor:boots_cactus] X = [default:cactus]
|
||||||
[3d_armor:boots_steel] X = [default:steel_ingot]
|
[3d_armor:boots_steel] X = [default:steel_ingot]
|
||||||
[3d_armor:boots_bronze] X = [default:bronze_ingot
|
[3d_armor:boots_bronze] X = [default:bronze_ingot
|
||||||
[3d_armor:boots_diamond] X = [default:diamond]
|
[3d_armor:boots_diamond] X = [default:diamond]
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
ARMOR_MOD_NAME = minetest.get_current_modname()
|
ARMOR_MOD_NAME = minetest.get_current_modname()
|
||||||
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/armor.lua")
|
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/armor.lua")
|
||||||
|
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/admin.lua")
|
||||||
|
|
||||||
local use_moreores = minetest.get_modpath("moreores")
|
local use_moreores = minetest.get_modpath("moreores")
|
||||||
|
|
||||||
-- Regisiter Head Armor
|
-- Regisiter Head Armor
|
||||||
@ -11,6 +13,13 @@ minetest.register_tool("3d_armor:helmet_wood", {
|
|||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:helmet_cactus", {
|
||||||
|
description = "Cactuc Helmet",
|
||||||
|
inventory_image = "3d_armor_inv_helmet_cactus.png",
|
||||||
|
groups = {armor_head=5, armor_heal=0, armor_use=1000},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:helmet_steel", {
|
minetest.register_tool("3d_armor:helmet_steel", {
|
||||||
description = "Steel Helmet",
|
description = "Steel Helmet",
|
||||||
inventory_image = "3d_armor_inv_helmet_steel.png",
|
inventory_image = "3d_armor_inv_helmet_steel.png",
|
||||||
@ -57,6 +66,13 @@ minetest.register_tool("3d_armor:chestplate_wood", {
|
|||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:chestplate_cactus", {
|
||||||
|
description = "Cactus Chestplate",
|
||||||
|
inventory_image = "3d_armor_inv_chestplate_cactus.png",
|
||||||
|
groups = {armor_torso=10, armor_heal=0, armor_use=1000},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:chestplate_steel", {
|
minetest.register_tool("3d_armor:chestplate_steel", {
|
||||||
description = "Steel Chestplate",
|
description = "Steel Chestplate",
|
||||||
inventory_image = "3d_armor_inv_chestplate_steel.png",
|
inventory_image = "3d_armor_inv_chestplate_steel.png",
|
||||||
@ -103,6 +119,13 @@ minetest.register_tool("3d_armor:leggings_wood", {
|
|||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:leggings_cactus", {
|
||||||
|
description = "Cactus Leggings",
|
||||||
|
inventory_image = "3d_armor_inv_leggings_cactus.png",
|
||||||
|
groups = {armor_legs=5, armor_heal=0, armor_use=1000},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:leggings_steel", {
|
minetest.register_tool("3d_armor:leggings_steel", {
|
||||||
description = "Steel Leggings",
|
description = "Steel Leggings",
|
||||||
inventory_image = "3d_armor_inv_leggings_steel.png",
|
inventory_image = "3d_armor_inv_leggings_steel.png",
|
||||||
@ -149,6 +172,13 @@ minetest.register_tool("3d_armor:boots_wood", {
|
|||||||
wear = 0,
|
wear = 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("3d_armor:boots_cactus", {
|
||||||
|
description = "Cactus Boots",
|
||||||
|
inventory_image = "3d_armor_inv_boots_cactus.png",
|
||||||
|
groups = {armor_feet=5, armor_heal=0, armor_use=2000},
|
||||||
|
wear = 0,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("3d_armor:boots_steel", {
|
minetest.register_tool("3d_armor:boots_steel", {
|
||||||
description = "Steel Boots",
|
description = "Steel Boots",
|
||||||
inventory_image = "3d_armor_inv_boots_steel.png",
|
inventory_image = "3d_armor_inv_boots_steel.png",
|
||||||
@ -190,6 +220,7 @@ end
|
|||||||
|
|
||||||
local craft_ingreds = {
|
local craft_ingreds = {
|
||||||
wood = "default:wood",
|
wood = "default:wood",
|
||||||
|
cactus = "default:cactus",
|
||||||
steel = "default:steel_ingot",
|
steel = "default:steel_ingot",
|
||||||
bronze = "default:bronze_ingot",
|
bronze = "default:bronze_ingot",
|
||||||
diamond = "default:diamond",
|
diamond = "default:diamond",
|
||||||
|
BIN
3d_armor/textures/3d_armor_boots_admin_preview.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
3d_armor/textures/3d_armor_boots_cactus.png
Normal file
After Width: | Height: | Size: 474 B |
BIN
3d_armor/textures/3d_armor_boots_cactus_preview.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
3d_armor/textures/3d_armor_chestplate_admin.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
3d_armor/textures/3d_armor_chestplate_admin_preview.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
3d_armor/textures/3d_armor_chestplate_cactus.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
3d_armor/textures/3d_armor_chestplate_cactus_preview.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
3d_armor/textures/3d_armor_helmet_admin.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
3d_armor/textures/3d_armor_helmet_admin_preview.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
3d_armor/textures/3d_armor_helmet_cactus.png
Normal file
After Width: | Height: | Size: 846 B |
BIN
3d_armor/textures/3d_armor_helmet_cactus_preview.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
3d_armor/textures/3d_armor_inv_boots_admin.png
Normal file
After Width: | Height: | Size: 193 B |
BIN
3d_armor/textures/3d_armor_inv_boots_cactus.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
3d_armor/textures/3d_armor_inv_chestplate_admin.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
3d_armor/textures/3d_armor_inv_chestplate_cactus.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
3d_armor/textures/3d_armor_inv_helmet_admin.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
3d_armor/textures/3d_armor_inv_helmet_cactus.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
3d_armor/textures/3d_armor_inv_leggings_admin.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
3d_armor/textures/3d_armor_inv_leggings_cactus.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
3d_armor/textures/3d_armor_leggings_admin.png
Normal file
After Width: | Height: | Size: 673 B |
BIN
3d_armor/textures/3d_armor_leggings_admin_preview.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
3d_armor/textures/3d_armor_leggings_cactus.png
Normal file
After Width: | Height: | Size: 695 B |
BIN
3d_armor/textures/3d_armor_leggings_cactus_preview.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
@ -10,7 +10,25 @@ Shields -- Crafting Guide
|
|||||||
+---+---+---+
|
+---+---+---+
|
||||||
|
|
||||||
[shields:shield_wood] X = [default:wood]
|
[shields:shield_wood] X = [default:wood]
|
||||||
|
[shields:shield_cactus] X = [default:cactus]
|
||||||
[shields:shield_steel] X = [default:steel_ingot]
|
[shields:shield_steel] X = [default:steel_ingot]
|
||||||
[shields:shield_bronze] X = [default:bronze_ingot]
|
[shields:shield_bronze] X = [default:bronze_ingot]
|
||||||
[shields:shield_diamond] X = [default:diamond]
|
[shields:shield_diamond] X = [default:diamond]
|
||||||
[shields:shield_gold] X = [default:gold_ingot]
|
[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
|
-- 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", {
|
minetest.register_tool("shields:shield_wood", {
|
||||||
description = "Wooden Shield",
|
description = "Wooden Shield",
|
||||||
inventory_image = "shields_inv_shield_wood.png",
|
inventory_image = "shields_inv_shield_wood.png",
|
||||||
@ -9,6 +16,13 @@ minetest.register_tool("shields:shield_wood", {
|
|||||||
wear = 0,
|
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", {
|
minetest.register_tool("shields:shield_steel", {
|
||||||
description = "Steel Shield",
|
description = "Steel Shield",
|
||||||
inventory_image = "shields_inv_shield_steel.png",
|
inventory_image = "shields_inv_shield_steel.png",
|
||||||
@ -48,6 +62,7 @@ end
|
|||||||
|
|
||||||
local craft_ingreds = {
|
local craft_ingreds = {
|
||||||
wood = "default:wood",
|
wood = "default:wood",
|
||||||
|
cactus = "default:cactus",
|
||||||
steel = "default:steel_ingot",
|
steel = "default:steel_ingot",
|
||||||
bronze = "default:bronze_ingot",
|
bronze = "default:bronze_ingot",
|
||||||
diamond = "default:diamond",
|
diamond = "default:diamond",
|
||||||
@ -69,8 +84,38 @@ for k, v in pairs(craft_ingreds) do
|
|||||||
})
|
})
|
||||||
end
|
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()
|
minetest.after(0, function()
|
||||||
table.insert(armor.elements, "shield")
|
table.insert(armor.elements, "shield")
|
||||||
end)
|
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 |