big changes to armor, and other small tweaks.
|
@ -1,49 +0,0 @@
|
|||
3d_armor
|
||||
ambience
|
||||
beacon
|
||||
beds
|
||||
bees
|
||||
boats
|
||||
bones
|
||||
bucket
|
||||
compassgps
|
||||
creative
|
||||
crops
|
||||
default
|
||||
denseores
|
||||
doors
|
||||
dye
|
||||
farming
|
||||
fire
|
||||
flowers
|
||||
food
|
||||
furniture
|
||||
gate
|
||||
give_initial_stuff
|
||||
glow
|
||||
goblins
|
||||
hiking
|
||||
hud
|
||||
hunger
|
||||
intersecting
|
||||
item_drop
|
||||
mobs
|
||||
more_fire
|
||||
mymonths
|
||||
mytreasure
|
||||
pathv6alt
|
||||
plantlife_modpack
|
||||
railcorridors
|
||||
screwdriver
|
||||
sethome
|
||||
soil
|
||||
stairs
|
||||
survival
|
||||
thirsty
|
||||
trail
|
||||
unified_inventory
|
||||
valleys_mapgen
|
||||
vessels
|
||||
walking_light
|
||||
wool
|
||||
xpanes
|
|
@ -1,3 +1,8 @@
|
|||
2017-01-28:
|
||||
Many changes to armor.
|
||||
Added NSSPF by NPX team.
|
||||
Added the ability to fill a wineskin from the well, and drink machines.
|
||||
|
||||
2017-01-13:
|
||||
Added orienteering mod.
|
||||
updated mobs.
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
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("adminleggings","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, armor_water=1, not_in_creative_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
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_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
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_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
||||
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_inventory=1},
|
||||
wear = 0,
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
|
@ -7,12 +7,6 @@ ARMOR_DESTROY = false
|
|||
ARMOR_LEVEL_MULTIPLIER = 1
|
||||
ARMOR_HEAL_MULTIPLIER = 1
|
||||
ARMOR_RADIATION_MULTIPLIER = 1
|
||||
ARMOR_MATERIALS = {
|
||||
steel = "default:steel_ingot",
|
||||
bronze = "default:bronze_ingot",
|
||||
gold = "default:gold_ingot",
|
||||
leather = "animals:leather",
|
||||
}
|
||||
ARMOR_FIRE_PROTECT = minetest.get_modpath("ethereal") ~= nil
|
||||
ARMOR_FIRE_NODES = {
|
||||
{"default:lava_source", 5, 8},
|
||||
|
@ -41,12 +35,6 @@ if input then
|
|||
input:close()
|
||||
input = nil
|
||||
end
|
||||
if not minetest.get_modpath("moreores") then
|
||||
ARMOR_MATERIALS.mithril = nil
|
||||
end
|
||||
if not minetest.get_modpath("ethereal") then
|
||||
ARMOR_MATERIALS.crystal = nil
|
||||
end
|
||||
|
||||
armor = {
|
||||
timer = 0,
|
||||
|
@ -611,15 +599,3 @@ minetest.register_globalstep(function(dtime)
|
|||
end
|
||||
armor.timer = 0
|
||||
end)
|
||||
|
||||
-- kill player when command issued
|
||||
minetest.register_chatcommand("kill", {
|
||||
params = "<name>",
|
||||
description = "Kills player instantly",
|
||||
func = function(name, param)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if player then
|
||||
player:set_hp(-1001)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
-- Hacky method used here to control the armor rating. Leather is rated one higher than cloth
|
||||
-- but because we don't want to do a lot of extra math, we use a base value and then add to that
|
||||
-- adding one more for leather than we do cloth, so the leather with metal is still stronger.
|
||||
-- I use the elemental symbols for the metals, just to keep file names a little shorter.
|
||||
|
||||
helper_table = { -- base material, bonus
|
||||
{'leather', 2},
|
||||
-- {'cloth', 1}
|
||||
}
|
||||
|
||||
for i in ipairs (helper_table) do
|
||||
local base = helper_table[i][1]
|
||||
local bonus = helper_table[i][2]
|
||||
local metal = 'Cu'
|
||||
local desc = 'Copper'
|
||||
|
||||
|
||||
minetest.register_tool('3d_armor:helmet_'..base..'_'..metal, {
|
||||
description = desc..' Helmet',
|
||||
inventory_image = '3d_armor_inv_helmet_'..base..'_'..metal..'.png',
|
||||
groups = {armor_head=(5+bonus), armor_heal=0, armor_use=3000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool('3d_armor:chestplate_'..base..'_'..metal, {
|
||||
description = desc..' Chestplate',
|
||||
inventory_image = '3d_armor_inv_chestplate_'..base..'_'..metal..'.png',
|
||||
groups = {armor_torso=(10+bonus), armor_heal=0, armor_use=3000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool('3d_armor:leggings_'..base..'_'..metal, {
|
||||
description = desc..' Leggings',
|
||||
inventory_image = '3d_armor_inv_leggings_'..base..'_'..metal..'.png',
|
||||
groups = {armor_legs=(5+bonus), armor_heal=0, armor_use=3000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool('3d_armor:boots_'..base..'_'..metal, {
|
||||
description = desc..' Boots',
|
||||
inventory_image = '3d_armor_inv_boots_'..base..'_'..metal..'.png',
|
||||
groups = {armor_feet=(5+bonus), armor_heal=0, armor_use=3000},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
material_table = {
|
||||
{'leather', 'copper'},
|
||||
-- {'cloth', 'copper'}
|
||||
}
|
||||
|
||||
for i in ipairs (material_table) do
|
||||
local base = material_table[i][1]
|
||||
local metal = material_table[i][2]
|
||||
local metalsym = 'Cu'
|
||||
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:helmet_'..base..'_'..metalsym,
|
||||
recipe = {
|
||||
{'', 'ores:'..metal..'_sheet', ''},
|
||||
{'ores:'..metal..'_sheet', '3d_armor:helmet_'..base, 'ores:'..metal..'_sheet'},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:chestplate_'..base..'_'..metalsym,
|
||||
recipe = {
|
||||
{'', 'ores:'..metal..'_sheet', ''},
|
||||
{'ores:'..metal..'_sheet', '3d_armor:chestplate_'..base, 'ores:'..metal..'_sheet'},
|
||||
{'', 'ores:'..metal..'_sheet', ''},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:leggings_'..base..'_'..metalsym,
|
||||
recipe = {
|
||||
{'ores:'..metal..'_sheet', '3d_armor:leggings_'..base, 'ores:'..metal..'_sheet'},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = '3d_armor:boots_'..base..'_'..metalsym,
|
||||
recipe = {
|
||||
{'ores:'..metal..'_sheet', '3d_armor:boots_'..base, 'ores:'..metal..'_sheet'},
|
||||
},
|
||||
})
|
||||
end
|
|
@ -1,79 +0,0 @@
|
|||
3d_armor -- Crafting Guide
|
||||
--------------------------
|
||||
|
||||
Helmets:
|
||||
|
||||
+---+---+---+
|
||||
| X | X | X |
|
||||
+---+---+---+
|
||||
| X | | X |
|
||||
+---+---+---+
|
||||
| | | |
|
||||
+---+---+---+
|
||||
|
||||
[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_bronze] X = [default:bronze_ingot]
|
||||
[3d_armor:helmet_diamond] X = [default:diamond]
|
||||
[3d_armor:helmet_gold] X = [default:gold_ingot]
|
||||
[3d_armor:helmet_mithril] X = [moreores:mithril_ingot] *
|
||||
[3d_armor:helmet_crystal] X = [ethereal:crystal_ingot] **
|
||||
|
||||
Chestplates:
|
||||
|
||||
+---+---+---+
|
||||
| X | | X |
|
||||
+---+---+---+
|
||||
| X | X | X |
|
||||
+---+---+---+
|
||||
| X | X | X |
|
||||
+---+---+---+
|
||||
|
||||
[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_bronze] X = [default:bronze_ingot]
|
||||
[3d_armor:chestplate_diamond] X = [default:diamond]
|
||||
[3d_armor:chestplate_gold] X = [default:gold_ingot]
|
||||
[3d_armor:chestplate_mithril] X = [moreores:mithril_ingot] *
|
||||
[3d_armor:chestplate_crystal] X = [ethereal:crystal_ingot] **
|
||||
|
||||
Leggings:
|
||||
|
||||
+---+---+---+
|
||||
| X | X | X |
|
||||
+---+---+---+
|
||||
| X | | X |
|
||||
+---+---+---+
|
||||
| X | | X |
|
||||
+---+---+---+
|
||||
|
||||
[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_bronze] X = [default:bronze_ingot]
|
||||
[3d_armor:leggings_diamond] X = [default:diamond]
|
||||
[3d_armor:leggings_gold] X = [default:gold_ingot]
|
||||
[3d_armor:leggings_mithril] X = [moreores:mithril_ingot] *
|
||||
[3d_armor:leggings_crystal] X = [ethereal:crystal_ingot] **
|
||||
|
||||
Boots:
|
||||
|
||||
+---+---+---+
|
||||
| X | | X |
|
||||
+---+---+---+
|
||||
| X | | X |
|
||||
+---+---+---+
|
||||
|
||||
[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_bronze] X = [default:bronze_ingot
|
||||
[3d_armor:boots_diamond] X = [default:diamond]
|
||||
[3d_armor:boots_gold] X = [default:gold_ingot]
|
||||
[3d_armor:boots_mithril] X = [moreores:mithril_ingot] *
|
||||
[3d_armor:boots_crystal] X = [ethereal:crystal_ingot] **
|
||||
|
||||
* Requires moreores mod by Calinou - https://forum.minetest.net/viewtopic.php?id=549
|
||||
** Requires ethereal mod by Chinchow & TenPlus1 - https://github.com/tenplus1/ethereal
|
|
@ -1,253 +1,6 @@
|
|||
ARMOR_MOD_NAME = minetest.get_current_modname()
|
||||
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/armor.lua")
|
||||
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/admin.lua")
|
||||
|
||||
if ARMOR_MATERIALS.leather then
|
||||
minetest.register_tool("3d_armor:helmet_leather", {
|
||||
description = "Leather Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_leather.png",
|
||||
groups = {armor_head=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_leather", {
|
||||
description = "Leather Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_leather.png",
|
||||
groups = {armor_torso=10, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_leather", {
|
||||
description = "Leather Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_leather.png",
|
||||
groups = {armor_legs=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_leather", {
|
||||
description = "Leather Boots",
|
||||
inventory_image = "3d_armor_inv_boots_leather.png",
|
||||
groups = {armor_feet=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.cactus then
|
||||
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: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: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: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,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.steel then
|
||||
minetest.register_tool("3d_armor:helmet_steel", {
|
||||
description = "Steel Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_steel.png",
|
||||
groups = {armor_head=10, armor_heal=0, armor_use=500},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_steel", {
|
||||
description = "Steel Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_steel.png",
|
||||
groups = {armor_torso=15, armor_heal=0, armor_use=500},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_steel", {
|
||||
description = "Steel Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_steel.png",
|
||||
groups = {armor_legs=15, armor_heal=0, armor_use=500},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_steel", {
|
||||
description = "Steel Boots",
|
||||
inventory_image = "3d_armor_inv_boots_steel.png",
|
||||
groups = {armor_feet=10, armor_heal=0, armor_use=500},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.bronze then
|
||||
minetest.register_tool("3d_armor:helmet_bronze", {
|
||||
description = "Bronze Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_bronze.png",
|
||||
groups = {armor_head=10, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_bronze", {
|
||||
description = "Bronze Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_bronze.png",
|
||||
groups = {armor_torso=15, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_bronze", {
|
||||
description = "Bronze Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_bronze.png",
|
||||
groups = {armor_legs=15, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_bronze", {
|
||||
description = "Bronze Boots",
|
||||
inventory_image = "3d_armor_inv_boots_bronze.png",
|
||||
groups = {armor_feet=10, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.diamond then
|
||||
minetest.register_tool("3d_armor:helmet_diamond", {
|
||||
description = "Diamond Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_diamond.png",
|
||||
groups = {armor_head=15, armor_heal=12, armor_use=100},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_diamond", {
|
||||
description = "Diamond Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_diamond.png",
|
||||
groups = {armor_torso=20, armor_heal=12, armor_use=100},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_diamond", {
|
||||
description = "Diamond Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_diamond.png",
|
||||
groups = {armor_legs=20, armor_heal=12, armor_use=100},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_diamond", {
|
||||
description = "Diamond Boots",
|
||||
inventory_image = "3d_armor_inv_boots_diamond.png",
|
||||
groups = {armor_feet=15, armor_heal=12, armor_use=100},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.gold then
|
||||
minetest.register_tool("3d_armor:helmet_gold", {
|
||||
description = "Gold Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_gold.png",
|
||||
groups = {armor_head=10, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_gold", {
|
||||
description = "Gold Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_gold.png",
|
||||
groups = {armor_torso=15, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_gold", {
|
||||
description = "Gold Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_gold.png",
|
||||
groups = {armor_legs=15, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_gold", {
|
||||
description = "Gold Boots",
|
||||
inventory_image = "3d_armor_inv_boots_gold.png",
|
||||
groups = {armor_feet=10, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.mithril then
|
||||
minetest.register_tool("3d_armor:helmet_mithril", {
|
||||
description = "Mithril Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_mithril.png",
|
||||
groups = {armor_head=15, armor_heal=12, armor_use=50},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_mithril", {
|
||||
description = "Mithril Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_mithril.png",
|
||||
groups = {armor_torso=20, armor_heal=12, armor_use=50},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_mithril", {
|
||||
description = "Mithril Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_mithril.png",
|
||||
groups = {armor_legs=20, armor_heal=12, armor_use=50},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_mithril", {
|
||||
description = "Mithril Boots",
|
||||
inventory_image = "3d_armor_inv_boots_mithril.png",
|
||||
groups = {armor_feet=15, armor_heal=12, armor_use=50},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
if ARMOR_MATERIALS.crystal then
|
||||
minetest.register_tool("3d_armor:helmet_crystal", {
|
||||
description = "Crystal Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_crystal.png",
|
||||
groups = {armor_head=15, armor_heal=12, armor_use=50, armor_fire=1},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:chestplate_crystal", {
|
||||
description = "Crystal Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_crystal.png",
|
||||
groups = {armor_torso=20, armor_heal=12, armor_use=50, armor_fire=1},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:leggings_crystal", {
|
||||
description = "Crystal Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_crystal.png",
|
||||
groups = {armor_legs=20, armor_heal=12, armor_use=50, armor_fire=1},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("3d_armor:boots_crystal", {
|
||||
description = "Crystal Boots",
|
||||
inventory_image = "3d_armor_inv_boots_crystal.png",
|
||||
groups = {armor_feet=15, armor_heal=12, armor_use=50, physics_speed=1, physics_jump=0.5, armor_fire=1},
|
||||
wear = 0,
|
||||
})
|
||||
end
|
||||
|
||||
for k, v in pairs(ARMOR_MATERIALS) do
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:helmet_"..k,
|
||||
recipe = {
|
||||
{v, v, v},
|
||||
{v, "", v},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:chestplate_"..k,
|
||||
recipe = {
|
||||
{v, "", v},
|
||||
{v, v, v},
|
||||
{v, v, v},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:leggings_"..k,
|
||||
recipe = {
|
||||
{v, v, v},
|
||||
{v, "", v},
|
||||
{v, "", v},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:boots_"..k,
|
||||
recipe = {
|
||||
{v, "", v},
|
||||
{v, "", v},
|
||||
},
|
||||
})
|
||||
end
|
||||
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/leather.lua")
|
||||
--dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/cloth.lua") --haven't made a cloth mod yet.
|
||||
dofile(minetest.get_modpath(ARMOR_MOD_NAME)..'/copper.lua')
|
||||
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/shields.lua")
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
minetest.register_tool("3d_armor:helmet_leather", {
|
||||
description = "Leather Helmet",
|
||||
inventory_image = "3d_armor_inv_helmet_leather.png",
|
||||
groups = {armor_head=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("3d_armor:chestplate_leather", {
|
||||
description = "Leather Chestplate",
|
||||
inventory_image = "3d_armor_inv_chestplate_leather.png",
|
||||
groups = {armor_torso=10, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("3d_armor:leggings_leather", {
|
||||
description = "Leather Leggings",
|
||||
inventory_image = "3d_armor_inv_leggings_leather.png",
|
||||
groups = {armor_legs=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_tool("3d_armor:boots_leather", {
|
||||
description = "Leather Boots",
|
||||
inventory_image = "3d_armor_inv_boots_leather.png",
|
||||
groups = {armor_feet=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:helmet_leather",
|
||||
recipe = {
|
||||
{'animals:leather', 'animals:leather', 'animals:leather'},
|
||||
{'animals:leather', "", 'animals:leather'},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:chestplate_leather",
|
||||
recipe = {
|
||||
{'animals:leather', "", 'animals:leather'},
|
||||
{'animals:leather', 'animals:leather', 'animals:leather'},
|
||||
{'animals:leather', 'animals:leather', 'animals:leather'},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:leggings_leather",
|
||||
recipe = {
|
||||
{'animals:leather', 'animals:leather', 'animals:leather'},
|
||||
{'animals:leather', "", 'animals:leather'},
|
||||
{'animals:leather', "", 'animals:leather'},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:boots_leather",
|
||||
recipe = {
|
||||
{'animals:leather', "", 'animals:leather'},
|
||||
{'animals:leather', "", 'animals:leather'},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,15 @@
|
|||
minetest.register_tool("3d_armor:shield_wood", {
|
||||
description = "Wooden Shield",
|
||||
inventory_image = "3d_armor_inv_shield_wood.png",
|
||||
groups = {armor_shield=5, armor_heal=0, armor_use=2000},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:shield_wood",
|
||||
recipe = {
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{'group:wood', 'group:wood', 'group:wood'},
|
||||
{"", 'group:wood', ""},
|
||||
},
|
||||
})
|
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 308 B |
Before Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 494 B |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 712 B |
Before Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 883 B |
Before Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 533 B |
Before Width: | Height: | Size: 883 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 893 B |
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 511 B |
Before Width: | Height: | Size: 853 B |
Before Width: | Height: | Size: 549 B |
Before Width: | Height: | Size: 887 B |
Before Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 129 B |
After Width: | Height: | Size: 723 B |
After Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 200 B |