Wikia

Surfpup's tConfig Mod Wiki

How to Make Custom Armor

Comments137
122pages on
this wiki

Redirected from How to make custom Armor

Under Construction
This page has been marked as under construction, which means information may change rapidly as it updated, or that the page is awaiting updates.


Difficulty: Difficulty-3
Clock : 8 - 20 minutes


Making custom Armor ini Files.Edit

  1. Make sure you have an 'Item' folder within your modpack folder.
  2. Create a new .ini file within that folder called 'Greenium Helm.ini'
  3. Add the following code to the file from step 2:
[Stats]
width=18
height=18
type=-1
useAnimation=100
useTime=100
maxStack=1
scale=1
defense=16
headSlot=-2
;set as -2 for custom armor pieces
toolTip= Greenium armor contains certain special 'Properties'...
rare=4
setName=Greenium
;for setBonus items
value=150000
className=Item
[Recipe]
Amount=1
needWater=False
Items=20 Greenium Bar
Tiles=Iron Anvil
;set as whatever you want it to be
  1. Do the same thing with legs ('Greenium Greaves.ini') and chest ('Greenium Chainmail.ini'), using legSlot=-2 and bodySlot=-2 instead of headSlot=-2
  2. The Body piece needs two additional lines of code, marked 'EXTRA' in the following snippet. Add them so your 'Greenium Chainmail.ini' script looks as follows:
[Stats]
width=18
height=18
type=-1
useAnimation=100
useTime=100
maxStack=1
scale=1
defense=16
bodySlot=-2
toolTip=Greenium armor contains certain special 'Properties'...
rare=4
setName=Greenium
value=150000
className=Item

; EXTRA
hasHands=True 
hasArms=True

[Recipe]
Amount=1
needWater=False
Items=20
Greenium Bar
Tiles=Iron Anvil

Making custom Armor PNG Files.Edit

  1. Find a default armor sprite (I'll do chest because it's the most complicated)
  2. Armor Body 18

    Average Chest Piece

    Average chest piece used to make the Greenium armor. >>>>
  3. Once you are done with whatever you want to do to that you need to add arms to it. As of now, even though the armor SPRITE has arms the armor itself will not show it.
  4. So we need to go find the armor arm matching this armor. Due to space issues I'll post a link to the armor to match.
Once you have both those all you need to do is make sure the arm is named 'Greenium Chainmail Arms.png' and the chest named 'Greenium Chainmail Body.png'. If the sprites appear too small in the inventory screen in-game, make certain that you've downloaded the image files WITHOUT extra padding around them; Terraria will scale the png file to fit within a slot.

Giving the Armor Special Effects.Edit

  1. Create .cs files with the same base names as the items ini files ('Greenium Helm.cs', 'Greenium Chainmail.cs', and 'Greenium Greaves.cs')
  2. The Player Class reference lists how you can change the player. For example, the helm can provide immunity to lava by entering the following into the 'Greenium Helm.cs' file:
public static void Effects(Player player) {
	player.lavaImmune=true;
}
  1. The greaves can move the player faster and provide water walking with the following:
public static void Effects(Player player) {
	player.moveSpeed += 12;
	player.waterWalk=true;
}
  1. The chainmail can provide a melee crit bonus and prevent knockbacks by adding the following to 'Greenium Chainmail.cs':
public static void Effects(Player player) {
	player.meleeCrit += 10;
	player.noKnockback = true;
}

public static void SetBonus(Player player) {
	player.setBonus = "Increased defense by 20";
	player.statDefense += 20;
}
  1. The chest piece also provides a set bonus with the SetBonus function. To ensure your armor provides a set bonus, the beginning of each piece name must be the same (e.g., 'Greenium Helm', 'Greenium Greaves', and 'Greenium Plate Mail'), and they must be using -2 for headSlot, legSlot and bodySlot.
    Greenium greaves Info

    Greenium Set Bonus

Around Wikia's network

Random Wiki