Updated 3d_armor
- Added admin armor and cactus armor, code and textures. - TODO: Change cactus armor's values about its duration
33
mods/3d_armor/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,6 @@
|
|||||||
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 +12,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 +65,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 +118,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 +171,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 +219,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
mods/3d_armor/3d_armor/textures/3d_armor_boots_admin_preview.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_boots_cactus.png
Normal file
After Width: | Height: | Size: 474 B |
After Width: | Height: | Size: 2.0 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_chestplate_admin.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_chestplate_cactus.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.7 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_helmet_admin.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_helmet_cactus.png
Normal file
After Width: | Height: | Size: 846 B |
After Width: | Height: | Size: 1.2 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_inv_boots_admin.png
Normal file
After Width: | Height: | Size: 193 B |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_inv_boots_cactus.png
Normal file
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 226 B |
After Width: | Height: | Size: 220 B |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_inv_helmet_admin.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_inv_helmet_cactus.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_inv_leggings_admin.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_inv_leggings_cactus.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_leggings_admin.png
Normal file
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 1.9 KiB |
BIN
mods/3d_armor/3d_armor/textures/3d_armor_leggings_cactus.png
Normal file
After Width: | Height: | Size: 695 B |
After Width: | Height: | Size: 1.8 KiB |