Refactor armors to be mods rather than hardcoded into API (#78)
* Begin work on "armors as modpack" refactor letting anyone to enable/disable any armors they want as mods rather than obscure settings * Fix some steel armor mishaps, remove pointless dependency on "default" * Move admin armor into mod * Make wood armor into a mod * More consistent steel description text etc. * remove wood references from 3d_armor api locale * remove admin armor reference from 3d_armor locale template.txt * Remove steel textures from api * Bronze armor as mod * Fix admin, wood armor missing local S translator var Fix wood locale missing template.txt * Fix bronze missing locale * Cactus as mod * Crystal into mod * Diamond into mod * Mithril and Gold as mods * Register armor fix * Nether as mod * Clean-up, add optional depends for mod armors, remove armor.lua from 3d_armor * Fix badly named mod.conf for admin, gold, nether armors Fix attempt to register crafting recipe even though the armor is disabled via setting * Fix steel and wood having bad globals for crafting section, turned them to locals * Fix brazilian translation getting deleted Fix cactus armor locales being incorrectly named
							
								
								
									
										26
									
								
								armor_admin/LICENSE.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,26 @@
 | 
			
		||||
[mod] 3d Armor [3d_armor]
 | 
			
		||||
=========================
 | 
			
		||||
 | 
			
		||||
License Source Code
 | 
			
		||||
-------------------
 | 
			
		||||
 | 
			
		||||
Copyright (C) 2012-2019 stujones11, Stuart Jones <stujones111@gmail.com>
 | 
			
		||||
 | 
			
		||||
This program is free software; you can redistribute it and/or modify
 | 
			
		||||
it under the terms of the GNU Lesser General Public License as published by
 | 
			
		||||
the Free Software Foundation; either version 2.1 of the License, or
 | 
			
		||||
(at your option) any later version.
 | 
			
		||||
 | 
			
		||||
This program is distributed in the hope that it will be useful,
 | 
			
		||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
GNU Lesser General Public License for more details.
 | 
			
		||||
 | 
			
		||||
You should have received a copy of the GNU Lesser General Public License along
 | 
			
		||||
with this program; if not, write to the Free Software Foundation, Inc.,
 | 
			
		||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
			
		||||
 | 
			
		||||
License Textures
 | 
			
		||||
----------------
 | 
			
		||||
 | 
			
		||||
Copyright (C) 2017-2019 davidthecreator - CC-BY-SA 3.0
 | 
			
		||||
							
								
								
									
										1
									
								
								armor_admin/depends.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1 @@
 | 
			
		||||
3d_armor
 | 
			
		||||
							
								
								
									
										1
									
								
								armor_admin/description.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1 @@
 | 
			
		||||
Adds admin armor.
 | 
			
		||||
							
								
								
									
										94
									
								
								armor_admin/init.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,94 @@
 | 
			
		||||
 | 
			
		||||
--- Registered armors.
 | 
			
		||||
--
 | 
			
		||||
--  @topic armor
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- support for i18n
 | 
			
		||||
local S = armor.get_translator
 | 
			
		||||
 | 
			
		||||
--- Admin Helmet
 | 
			
		||||
--
 | 
			
		||||
--  @helmet 3d_armor:helmet_admin
 | 
			
		||||
--  @img 3d_armor_inv_helmet_admin.png
 | 
			
		||||
--  @grp armor_head 1
 | 
			
		||||
--  @grp armor_heal 100
 | 
			
		||||
--  @grp armor_use 0
 | 
			
		||||
--  @grp armor_water 1
 | 
			
		||||
--  @grp not_in_creative_inventory 1
 | 
			
		||||
--  @armorgrp fleshy 100
 | 
			
		||||
armor:register_armor(":3d_armor:helmet_admin", {
 | 
			
		||||
	description = S("Admin Helmet"),
 | 
			
		||||
	inventory_image = "3d_armor_inv_helmet_admin.png",
 | 
			
		||||
	armor_groups = {fleshy=100},
 | 
			
		||||
	groups = {armor_head=1, armor_heal=100, armor_use=0, armor_water=1,
 | 
			
		||||
			not_in_creative_inventory=1},
 | 
			
		||||
	on_drop = function(itemstack, dropper, pos)
 | 
			
		||||
		return
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--- Admin Chestplate
 | 
			
		||||
--
 | 
			
		||||
--  @chestplate 3d_armor:chestplate_admin
 | 
			
		||||
--  @img 3d_armor_inv_chestplate_admin.png
 | 
			
		||||
--  @grp armor_torso 1
 | 
			
		||||
--  @grp armor_heal 100
 | 
			
		||||
--  @grp armor_use 0
 | 
			
		||||
--  @grp not_in_creative_inventory 1
 | 
			
		||||
--  @armorgrp fleshy 100
 | 
			
		||||
armor:register_armor(":3d_armor:chestplate_admin", {
 | 
			
		||||
	description = S("Admin Chestplate"),
 | 
			
		||||
	inventory_image = "3d_armor_inv_chestplate_admin.png",
 | 
			
		||||
	armor_groups = {fleshy=100},
 | 
			
		||||
	groups = {armor_torso=1, armor_heal=100, armor_use=0,
 | 
			
		||||
			not_in_creative_inventory=1},
 | 
			
		||||
	on_drop = function(itemstack, dropper, pos)
 | 
			
		||||
		return
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--- Admin Leggings
 | 
			
		||||
--
 | 
			
		||||
--  @leggings 3d_armor:leggings_admin
 | 
			
		||||
--  @img 3d_armor_inv_leggings_admin.png
 | 
			
		||||
--  @grp armor_legs 1
 | 
			
		||||
--  @grp armor_heal 100
 | 
			
		||||
--  @grp armor_use 0
 | 
			
		||||
--  @grp not_in_creative_inventory 1
 | 
			
		||||
--  @armorgrp fleshy 100
 | 
			
		||||
armor:register_armor(":3d_armor:leggings_admin", {
 | 
			
		||||
	description = S("Admin Leggings"),
 | 
			
		||||
	inventory_image = "3d_armor_inv_leggings_admin.png",
 | 
			
		||||
	armor_groups = {fleshy=100},
 | 
			
		||||
	groups = {armor_legs=1, armor_heal=100, armor_use=0,
 | 
			
		||||
			not_in_creative_inventory=1},
 | 
			
		||||
	on_drop = function(itemstack, dropper, pos)
 | 
			
		||||
		return
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--- Admin Boots
 | 
			
		||||
--
 | 
			
		||||
--  @boots 3d_armor:boots_admin
 | 
			
		||||
--  @img 3d_armor_inv_boots_admin.png
 | 
			
		||||
--  @grp armor_feet 1
 | 
			
		||||
--  @grp armor_heal 100
 | 
			
		||||
--  @grp armor_use 0
 | 
			
		||||
--  @grp not_in_creative_inventory 1
 | 
			
		||||
--  @armorgrp fleshy 100
 | 
			
		||||
armor:register_armor(":3d_armor:boots_admin", {
 | 
			
		||||
	description = S("Admin Boots"),
 | 
			
		||||
	inventory_image = "3d_armor_inv_boots_admin.png",
 | 
			
		||||
	armor_groups = {fleshy=100},
 | 
			
		||||
	groups = {armor_feet=1, armor_heal=100, armor_use=0,
 | 
			
		||||
			not_in_creative_inventory=1},
 | 
			
		||||
	on_drop = function(itemstack, dropper, pos)
 | 
			
		||||
		return
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
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")
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=Adminstiefel
 | 
			
		||||
Admin Chestplate=Adminbrustplatte
 | 
			
		||||
Admin Helmet=Adminhelm
 | 
			
		||||
Admin Leggings=Adminhose
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=Botas de admin
 | 
			
		||||
Admin Chestplate=Peto de admin
 | 
			
		||||
Admin Helmet=Casco de admin
 | 
			
		||||
Admin Leggings=Grebas de admin
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=Bottes d'admin
 | 
			
		||||
Admin Chestplate=Cuirasse d'admin
 | 
			
		||||
Admin Helmet=Casque d'admin
 | 
			
		||||
Admin Leggings=Jambières d'admin
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=Stivali dell'amministratrice/tore
 | 
			
		||||
Admin Chestplate=Corazza dell'amministratrice/tore
 | 
			
		||||
Admin Helmet=Elmo dell'amministratrice/tore
 | 
			
		||||
Admin Leggings=Gambali dell'amministratrice/tore
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=But Pentadbir
 | 
			
		||||
Admin Chestplate=Perisai Dada Pentadbir
 | 
			
		||||
Admin Helmet=Helmet Pentadbir
 | 
			
		||||
Admin Leggings=Perisai Kaki Pentadbir
 | 
			
		||||
							
								
								
									
										13
									
								
								armor_admin/locale/armor_admin.pt.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,13 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Steel Boots=Botas de Aço
 | 
			
		||||
Steel Chestplate=Peitoral de Aço
 | 
			
		||||
Steel Helmet=Capacete de Aço
 | 
			
		||||
Steel Leggings=Calças de Aço
 | 
			
		||||
Wood Boots=Botas de Madeira
 | 
			
		||||
Wood Chestplate=Peitoral de Madeira
 | 
			
		||||
Wood Helmet=Capacete de Madeira
 | 
			
		||||
Wood Leggings=Calças de Madeira
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.pt_BR.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=Botas de Administrador
 | 
			
		||||
Admin Chestplate=Peitoral de Administrador
 | 
			
		||||
Admin Helmet=Capacete de Administrador
 | 
			
		||||
Admin Leggings=Calças de Administrador
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/armor_admin.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=ботинки админа
 | 
			
		||||
Admin Chestplate=бронежилет админа
 | 
			
		||||
Admin Helmet=шлем админа
 | 
			
		||||
Admin Leggings=гамаши админа
 | 
			
		||||
							
								
								
									
										9
									
								
								armor_admin/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,9 @@
 | 
			
		||||
# textdomain: armor_admin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### init.lua ###
 | 
			
		||||
 | 
			
		||||
Admin Boots=
 | 
			
		||||
Admin Chestplate=
 | 
			
		||||
Admin Helmet=
 | 
			
		||||
Admin Leggings=
 | 
			
		||||
							
								
								
									
										3
									
								
								armor_admin/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,3 @@
 | 
			
		||||
name = armor_admin
 | 
			
		||||
depends = 3d_armor
 | 
			
		||||
description = Adds admin armor.
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_boots_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 258 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_boots_admin_preview.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 261 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_chestplate_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 409 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_chestplate_admin_preview.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 285 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_helmet_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 348 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_helmet_admin_preview.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 261 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_inv_boots_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 216 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_inv_chestplate_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 256 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_inv_helmet_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 188 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_inv_leggings_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 214 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_leggings_admin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 288 B  | 
							
								
								
									
										
											BIN
										
									
								
								armor_admin/textures/3d_armor_leggings_admin_preview.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 298 B  |