This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Should the last achievement in a branch be .setSpecial()? - Single Choice
Quote from gegy1000»Try this: boolean wearingHead = player.getCurrentArmor(3) != null; boolean wearingHelmet = player.getCurrentArmor(2) != null; boolean wearingLeggings = player.getCurrentArmor(1) != null; boolean wearingBoots = player.getCurrentArmor(0) != null; BTW don't rage and delete code, you wont get anywhere if you do that.
Quote from WhateverHeSaid22 So how do I make the if statement to give the player an achievement after they are wearing all of it? It says true/false is a property of ItemStack.
(If you need example code, I don't have any because I raged and deleted it :P)
^ In 1.6.4 ^
Need help designing an item?
Message me with a .png file with the shape of your item, and in the message, any colors in any order!
Need help designing an item?
Message me with a .png file with the shape of your item, and in the message, any colors in any order!
boolean wearingHead = player.getCurrentArmor(3) != null;
boolean wearingHelmet = player.getCurrentArmor(2) != null;
boolean wearingLeggings = player.getCurrentArmor(1) != null;
boolean wearingBoots = player.getCurrentArmor(0) != null;
BTW don't rage and delete code, you wont get anywhere if you do that.
Feel free to download my mod!
View Detached Soul V1.0
Need help designing an item?
Message me with a .png file with the shape of your item, and in the message, any colors in any order!
So how do I make the if statement to give the player an achievement after they are wearing all of it? It says true/false is a property of ItemStack.
Need help designing an item?
Message me with a .png file with the shape of your item, and in the message, any colors in any order!
if(wearingHelmet && wearingChestplate && wearingLeggings && wearingBoots)
{
player.addState(YourMod.yourachievement, 1);
}
How do I even make a variable? -_-'
Need help designing an item?
Message me with a .png file with the shape of your item, and in the message, any colors in any order!
Need help designing an item?
Message me with a .png file with the shape of your item, and in the message, any colors in any order!