mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-11-04 05:55:28 +01:00 
			
		
		
		
	Finish the "reinforced_leather" armor
This commit is contained in:
		@@ -1,38 +1,33 @@
 | 
			
		||||
-- Register helmets:
 | 
			
		||||
 | 
			
		||||
minetest.register_tool(":3d_armor:helmet_reinforced_leather_hunter", {
 | 
			
		||||
	description = "Hunter's Reinforced Leather Helmet",
 | 
			
		||||
	inventory_image = "3d_armor_inv_helmet_reinforced_leather_hunter.png",
 | 
			
		||||
	groups = {armor_head = 6, armor_heal = 0, armor_use = 40},
 | 
			
		||||
	wear = 0,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Register chestplates:
 | 
			
		||||
 | 
			
		||||
minetest.register_tool(":3d_armor:chestplate_reinforced_leather_hunter", {
 | 
			
		||||
	description = "Hunter's Reinforced Leather Chestplate",
 | 
			
		||||
	inventory_image = "3d_armor_inv_chestplate_reinforced_leather_hunter.png",
 | 
			
		||||
	groups = {armor_torso = 10, armor_heal = 0, armor_use = 40},
 | 
			
		||||
	wear = 0,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Register leggings:
 | 
			
		||||
 | 
			
		||||
minetest.register_tool(":3d_armor:leggings_reinforced_leather_hunter", {
 | 
			
		||||
	description = "Hunter's Reinforced Leather Leggings",
 | 
			
		||||
	inventory_image = "3d_armor_inv_leggings_reinforced_leather_hunter.png",
 | 
			
		||||
	groups = {armor_legs = 10, armor_heal = 0, armor_use = 40},
 | 
			
		||||
	wear = 0,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Register boots:
 | 
			
		||||
 | 
			
		||||
	minetest.register_tool(":3d_armor:boots_reinforced_leather_hunter", {
 | 
			
		||||
	description = "Hunter's Reinforced Leather Boots",
 | 
			
		||||
	inventory_image = "3d_armor_inv_boots_reinforced_leather_hunter.png",
 | 
			
		||||
	groups = {armor_feet = 6, armor_heal = 0, armor_use = 40},
 | 
			
		||||
	wear = 0,
 | 
			
		||||
})
 | 
			
		||||
if ARMOR_MATERIALS.reinforced_leather then
 | 
			
		||||
	-- Register helmets :
 | 
			
		||||
	minetest.register_tool(":3d_armor:helmet_reinforced_leather_hunter", {
 | 
			
		||||
		description = "Hunter's Reinforced Leather Helmet",
 | 
			
		||||
		inventory_image = "3d_armor_inv_helmet_reinforced_leather_hunter.png",
 | 
			
		||||
		groups = {armor_head = 6, armor_heal = 0, armor_use = 40},
 | 
			
		||||
		wear = 0,
 | 
			
		||||
	})
 | 
			
		||||
	-- Register chestplates :
 | 
			
		||||
	minetest.register_tool(":3d_armor:chestplate_reinforced_leather_hunter", {
 | 
			
		||||
		description = "Hunter's Reinforced Leather Chestplate",
 | 
			
		||||
		inventory_image = "3d_armor_inv_chestplate_reinforced_leather_hunter.png",
 | 
			
		||||
		groups = {armor_torso = 10, armor_heal = 0, armor_use = 40},
 | 
			
		||||
		wear = 0,
 | 
			
		||||
	})
 | 
			
		||||
	-- Register leggings :
 | 
			
		||||
	minetest.register_tool(":3d_armor:leggings_reinforced_leather_hunter", {
 | 
			
		||||
		description = "Hunter's Reinforced Leather Leggings",
 | 
			
		||||
		inventory_image = "3d_armor_inv_leggings_reinforced_leather_hunter.png",
 | 
			
		||||
		groups = {armor_legs = 10, armor_heal = 0, armor_use = 40},
 | 
			
		||||
		wear = 0,
 | 
			
		||||
	})
 | 
			
		||||
	-- Register boots :
 | 
			
		||||
		minetest.register_tool(":3d_armor:boots_reinforced_leather_hunter", {
 | 
			
		||||
		description = "Hunter's Reinforced Leather Boots",
 | 
			
		||||
		inventory_image = "3d_armor_inv_boots_reinforced_leather_hunter.png",
 | 
			
		||||
		groups = {armor_feet = 6, armor_heal = 0, armor_use = 40},
 | 
			
		||||
		wear = 0,
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Reinforced Leather craft recipe
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user