From 9be8f7106690ad722efdee0c60a708460c8c208f Mon Sep 17 00:00:00 2001 From: Elkien3 Date: Sat, 12 May 2018 10:10:33 -0500 Subject: [PATCH] add back armor slowing and melting down --- mods/3d_armor-master/3d_armor/armor.lua | 53 +++++++++++++++++++------ 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/mods/3d_armor-master/3d_armor/armor.lua b/mods/3d_armor-master/3d_armor/armor.lua index 85d120a..0ffb722 100644 --- a/mods/3d_armor-master/3d_armor/armor.lua +++ b/mods/3d_armor-master/3d_armor/armor.lua @@ -117,7 +117,7 @@ if armor.materials.steel then description = S("Steel Helmet"), inventory_image = "3d_armor_inv_helmet_steel.png", groups = {armor_head=1, armor_heal=0, armor_use=800, - physics_speed=-0.01, physics_gravity=0.01}, + physics_speed=-0.05}, armor_groups = {fleshy=10}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) @@ -125,7 +125,7 @@ if armor.materials.steel then description = S("Steel Chestplate"), inventory_image = "3d_armor_inv_chestplate_steel.png", groups = {armor_torso=1, armor_heal=0, armor_use=800, - physics_speed=-0.04, physics_gravity=0.04}, + physics_speed=-0.1}, armor_groups = {fleshy=15}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) @@ -133,7 +133,7 @@ if armor.materials.steel then description = S("Steel Leggings"), inventory_image = "3d_armor_inv_leggings_steel.png", groups = {armor_legs=1, armor_heal=0, armor_use=800, - physics_speed=-0.03, physics_gravity=0.03}, + physics_speed=-0.1}, armor_groups = {fleshy=15}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) @@ -141,7 +141,7 @@ if armor.materials.steel then description = S("Steel Boots"), inventory_image = "3d_armor_inv_boots_steel.png", groups = {armor_feet=1, armor_heal=0, armor_use=800, - physics_speed=-0.01, physics_gravity=0.01}, + physics_speed=-0.05}, armor_groups = {fleshy=10}, damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, }) @@ -152,7 +152,7 @@ if armor.materials.bronze then description = S("Bronze Helmet"), inventory_image = "3d_armor_inv_helmet_bronze.png", groups = {armor_head=1, armor_heal=6, armor_use=400, - physics_speed=-0.01, physics_gravity=0.01}, + physics_speed=-0.06, physics_gravity=0.01}, armor_groups = {fleshy=10}, damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2}, }) @@ -160,7 +160,7 @@ if armor.materials.bronze then description = S("Bronze Chestplate"), inventory_image = "3d_armor_inv_chestplate_bronze.png", groups = {armor_torso=1, armor_heal=6, armor_use=400, - physics_speed=-0.04, physics_gravity=0.04}, + physics_speed=-0.11, physics_gravity=0.04}, armor_groups = {fleshy=15}, damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2}, }) @@ -168,7 +168,7 @@ if armor.materials.bronze then description = S("Bronze Leggings"), inventory_image = "3d_armor_inv_leggings_bronze.png", groups = {armor_legs=1, armor_heal=6, armor_use=400, - physics_speed=-0.03, physics_gravity=0.03}, + physics_speed=-0.06, physics_gravity=0.03}, armor_groups = {fleshy=15}, damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2}, }) @@ -176,7 +176,7 @@ if armor.materials.bronze then description = S("Bronze Boots"), inventory_image = "3d_armor_inv_boots_bronze.png", groups = {armor_feet=1, armor_heal=6, armor_use=400, - physics_speed=-0.01, physics_gravity=0.01}, + physics_speed=-0.11, physics_gravity=0.01}, armor_groups = {fleshy=10}, damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2}, }) @@ -218,7 +218,7 @@ if armor.materials.gold then description = S("Gold Helmet"), inventory_image = "3d_armor_inv_helmet_gold.png", groups = {armor_head=1, armor_heal=6, armor_use=300, - physics_speed=-0.02, physics_gravity=0.02}, + physics_speed=-0.1}, armor_groups = {fleshy=10}, damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2}, }) @@ -226,7 +226,7 @@ if armor.materials.gold then description = S("Gold Chestplate"), inventory_image = "3d_armor_inv_chestplate_gold.png", groups = {armor_torso=1, armor_heal=6, armor_use=300, - physics_speed=-0.05, physics_gravity=0.05}, + physics_speed=-0.15}, armor_groups = {fleshy=15}, damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2}, }) @@ -234,7 +234,7 @@ if armor.materials.gold then description = S("Gold Leggings"), inventory_image = "3d_armor_inv_leggings_gold.png", groups = {armor_legs=1, armor_heal=6, armor_use=300, - physics_speed=-0.04, physics_gravity=0.04}, + physics_speed=-0.15}, armor_groups = {fleshy=15}, damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2}, }) @@ -242,7 +242,7 @@ if armor.materials.gold then description = S("Gold Boots"), inventory_image = "3d_armor_inv_boots_gold.png", groups = {armor_feet=1, armor_heal=6, armor_use=300, - physics_speed=-0.02, physics_gravity=0.02}, + physics_speed=-0.1}, armor_groups = {fleshy=10}, damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2}, }) @@ -343,4 +343,31 @@ for k, v in pairs(armor.materials) do {v, "", v}, }, }) -end +--MELTING DOWN + if v ~= "group:wood" then + minetest.register_craft({ + output = v .. " 5", + type = "cooking", + cooktime = 14, + recipe = "3d_armor:helmet_"..k + }) + minetest.register_craft({ + output = v .. " 8", + type = "cooking", + cooktime = 14, + recipe = "3d_armor:chestplate_"..k + }) + minetest.register_craft({ + output = v .. " 7", + type = "cooking", + cooktime = 14, + recipe = "3d_armor:leggings_"..k + }) + minetest.register_craft({ + output = v .. " 4", + type = "cooking", + cooktime = 14, + recipe = "3d_armor:boots_"..k + }) + end +end \ No newline at end of file