Jump to content

Recommended Posts

Posted

Hey everyone, first i wanna do a technic armor that uses energy, i tried making it with using durability, so i made crafting recipes that my technic element + a part of the armor

to fill the armors durability...

sry for bad explaining btw

anyways here is the code:
        GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_helmet), new Object[] {ModItems.texotek_helmet, new ItemStack(ModItems.texotek_element)});
        GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_chestplate), new Object[] {ModItems.texotek_chestplate, new ItemStack(ModItems.texotek_element)});
        GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_leggings), new Object[] {ModItems.texotek_leggings, new ItemStack(ModItems.texotek_element)});
        GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_boots), new Object[] {ModItems.texotek_boots, new ItemStack(ModItems.texotek_element)});

thing is it only works when the armor has full durabilty :/

Posted
Just now, diesieben07 said:

Do what?

 

A basic level of programming knowledge is required to make a mod. Jumping into Minecraft modding without any programming experience is like trying to learn swimming in the middle of the ocean during a thunderstorm. Without a lifejacket. You won't learn to swim, you will just drown.

I have experienced with coding i did already a full Armor and Tool Kit also A world generated ore, i just wonder if you could explain me how to do that Durability damage thing

 

 

 

Posted
1 minute ago, diesieben07 said:

Well, at least you didn't lie about it.

 

So, now what is your question about the "durability damage thing"?

I'm wondering how i can make that my texotek_element can repair my texotek armor,

here is the code what i tried:
        GameRegistry.addRecipe(new ItemStack(ModItems.texotek_helmet), new Object[] {"###", "# #", '#', ModItems.texotek_plate});
        GameRegistry.addRecipe(new ItemStack(ModItems.texotek_chestplate), new Object[] {"# #", "###", "###", '#', ModItems.texotek_plate});
        GameRegistry.addRecipe(new ItemStack(ModItems.texotek_leggings), new Object[] {"###", "# #", "# #", '#', ModItems.texotek_plate});
        GameRegistry.addRecipe(new ItemStack(ModItems.texotek_boots), new Object[] {"# #", "# #", '#', ModItems.texotek_plate});

but it doesn't work since that recipe only allows full durability armor to take

so i wondered how i could do that also damaged armor parts would work for the recipe

Posted
1 minute ago, diesieben07 said:

You already asked all that. Did you even read my post?

 

 

yea but i have no idea what that means could u explain that pls? xD

Posted
1 minute ago, diesieben07 said:

You pass it to the ItemStack constructor.

like this?         GameRegistry.addShapelessRecipe(new ItemStack(ModItems.texotek_helmet), new Object[] {ModItems.texotek_helmet, new ItemStack(ModItems.texotek_element).OreDictionary.WILDCARD_VALUE});

Posted
3 minutes ago, diesieben07 said:

No. Please learn the Java basics before make a mod.

can you please just help me with that one? im not gonna learn java for just one single mod

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.