I really don't know what any of those words mean. I made an items-opaque folder and put a 16X16 picture of a nature helmet in it. The texture and the coding (ModPE.setItem) works perfectly. NOW I just need to get the armor to WORK! I am making a nature mod with armor sets and weapons so ha, you just got some exclusive information.
Could you fill the defineArmor function for me and I will do the other armors?
damageReduceAmount is the amount of damage the armor reduces, for example 2
maxDamage is how often the armor reduces damage before it breakes, for exmaple 400
ArmorType is the kind of the armor, for example ArmorType.helmet, you can see all ArmorType when you go to BlockLauncher --> Settings --> nerdy stuff --> dump ModPE Script funtcions (scrool down until you see them)
Ok, so I made a set of custom armour but now I'm wondering if there was a way to make it WORK as armor
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDid you used
Item.defineArmor(Id, String Icon, Icon Index, String name, String Texture Location, damageReduceAmount, maxDamage, ArmorType)
?
I really don't know what any of those words mean. I made an items-opaque folder and put a 16X16 picture of a nature helmet in it. The texture and the coding (ModPE.setItem) works perfectly. NOW I just need to get the armor to WORK! I am making a nature mod with armor sets and weapons so ha, you just got some exclusive information.
Could you fill the defineArmor function for me and I will do the other armors?
Armor:
ModPE.setItem(500,"nature_helmet",0,"Nature Sword",1);
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumModPE.setItem() don´t works for armor, you to use Item.defineArmor.
Item.defineArmor(500, "nature_helmet", 0, "Nature Sword", "mobs/nature_helmet", damageReduceAmount, maxDamage, ArmorType)
mobs/nature_helmet is just an example
damageReduceAmount is the amount of damage the armor reduces, for example 2
maxDamage is how often the armor reduces damage before it breakes, for exmaple 400
ArmorType is the kind of the armor, for example ArmorType.helmet, you can see all ArmorType when you go to BlockLauncher --> Settings --> nerdy stuff --> dump ModPE Script funtcions (scrool down until you see them)
Ok, I got it to work! THANKS! But now it won't show up in the armor tab where your supposed to equip it.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt doesn´t? Can you give me the filled Item.defineArmor()?
Yeah sure! By the way, do you have kik or skype or facebook messenger?
Skype: antagonistic278
Kik: Dat_Life_Doe