Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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 :/

  • Author
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

 

 

 

  • Author

C and C++ and a few years ago GML (The Script part, nothing with drag and drop)

Edited by TeeAgeSee

  • Author
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

  • Author
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

  • Author
Just now, diesieben07 said:

Which part?

with the  OreDictionary.WILDCARD_VALUE where do i put that in my code?

  • Author
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});

  • Author
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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.