Jump to content

Recommended Posts

Posted

I am trying to learn how to create armor for minecraft using mc forge, but I ran into some difficulties. All tutorials I watch add .setIconCoord() and .setItemName() to the end of the new armor, but when I attempt this, it gives me an error.

 

errorOutput.png

 

I am using mcforge version 7.7.0.605. For this test project, I am working on making gold-trimmed diamond armor.

 

GoldTrimmed.java (Main Class)

http://paste.minecraftforge.net/view/68afd075

 

gDiamondArmor.java (Armor Class)

http://paste.minecraftforge.net/view/3384f9d0

 

CommonProxy.java (Server Proxy)

http://paste.minecraftforge.net/view/67a8ed5f

 

ClientProxy.java (Client Proxy)

http://paste.minecraftforge.net/view/9c7a7b24

 

Thanks

Posted

Gosh, people these days.

 

I think you're wrong, you SHOULD use Eclipse.

 

please.. Don't try to act professional without Eclipse.

 

Reason? If you are professional why are you watching YouTube videos?

 

The fix is.

Replace all .setBlockName or .setItemName to .setUnlocalizedName

 

The unlocalized name is your texture, that means you can remove .setIconCoord() and all the other texture stuff.

 

If you have for example

 

testBlock = new TestBlock(222, 0).setUnlocalizedName("testBlock");

 

It would be located in :

 

Minecraft.jar's :

textures/blocks/testBlock.png

 

If it is a ITEM then:

 

testItem = new TestItem(8000).setUnlocalizedName("testItem");

 

It would be located in :

 

Minecraft.jar's :

textures/items/testItem.png

 

 

 

SWITCH TO ECLIPSE!

 

ALSO, YOU HAVE TO USE "recompile.bat" EVERYTIME YOU EDIT THE CODE!

 

ECLIPSE AUTOMATICALLY DOES RECOMPILE FOR YOU! AND IT IS FAST!

Posted

Gosh, people these days.

 

I think you're wrong, you SHOULD use Eclipse.

 

please.. Don't try to act professional without Eclipse.

 

Reason? If you are professional why are you watching YouTube videos?

 

The fix is.

Replace all .setBlockName or .setItemName to .setUnlocalizedName

 

The unlocalized name is your texture, that means you can remove .setIconCoord() and all the other texture stuff.

 

If you have for example

 

testBlock = new TestBlock(222, 0).setUnlocalizedName("testBlock");

 

It would be located in :

 

Minecraft.jar's :

textures/blocks/testBlock.png

 

If it is a ITEM then:

 

testItem = new TestItem(8000).setUnlocalizedName("testItem");

 

It would be located in :

 

Minecraft.jar's :

textures/items/testItem.png

 

 

 

SWITCH TO ECLIPSE!

 

ALSO, YOU HAVE TO USE "recompile.bat" EVERYTIME YOU EDIT THE CODE!

 

ECLIPSE AUTOMATICALLY DOES RECOMPILE FOR YOU! AND IT IS FAST!

why people alawy want the easiest way????????? people should use clipse when they are beginers(or when they will create an android program)i make my mods with n++ and its good, also the textures dont need to go into de jar just put in mcp/eclipse/minecraft/bin (if u start from eclipse) or mcp/bin/minecraft(if u start from startclient and startsever bat).

"ALSO, YOU HAVE TO USE "recompile.bat" EVERYTIME YOU EDIT THE CODE!"

wrong if he uses eclipse he can just copy and paste the recompiled code to the mcp/bin and then just use reobfuscate bat.

ProTip:

in your mod zip/jar u need to create a folder mods and then a folder yourmodname and then a folder called textures and then a folder called items (same for blocks just change items to blocks)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • New users at Temu receive a $100 discount on orders over $100 Use the code [aci789589] during checkout to get Temu Coupon Code $100 off For New Users. Yes, Temu offers $100 off coupon code “aci789589” for first-time users. Temu 100% Off coupon code "aci789589" will save you $100 on your order. To get a discount, click on the item to purchase and enter the code. Yes, Temu offers $100 off coupon code “aci789589” for first-time users. You can get a$100 bonus plus 30% off any purchase at Temu with the$100 Coupon Bundle at Temu if you sign up with the referral code [aci789589] and make a first purchase of$50 or more. The Temu $100 Off coupon code (aci789589) will save you $100 on your order. To get a discount, click on the item to purchase and enter the code. Yes Temu offers $100 Off Coupon Code “aci789589” for First Time Users. Yes, Temu offers $100 off coupon code {aci789589} for first-time users. You can get a $100 bonus plus 100% off any purchase at Temu with the $100 Coupon Bundle if you sign up with the referral code [aci789589] and make a first purchase of $100 or more. If you are who wish to join Temu, then you should use this exclusive Temu coupon code $100 off (aci789589) and get $100 off on your purchase with Temu. You can get a $100 discount with Temu coupon code {aci789589}. This exclusive offer is for existing customers and can be used for a $100 reduction on your total purchase. Enter coupon code {aci789589} at checkout to avail of the discount. You can use the code {aci789589} to get a $100 off Temu coupon as a new customer. Apply this Temu coupon code $100 off (aci789589) to get a $100 discount on your shopping with Temu. If you’re a first-time user and looking for a Temu coupon code $100 first time user(aci789589) then using this code will give you a flat $100 Off and a 90% discount on your Temu shopping. Temu $100% Off Coupon Code "aci789589" will save you $100 on your order. To get a discount, click on the item to purchase and enter the code. Temu coupon code$100off-{aci789589} Temu coupon code -{aci789589} Temu coupon code$50 off-{aci789589} Temu Coupon code [aci789589] for existing users can get up to 50% discount on product during checkout. Temu Coupon Codes for Existing Customers-aci789589 Temu values its loyal customers and offers various promo codes, including the Legit Temu Coupon Code (aci789589]) or (aci789589), which existing users can use. This ensures that repeat shoppers can also benefit from significant discounts on their purchases. Keep an eye out for special promotions and offers that are periodically available to enhance your shopping experience.
    • New users at Temu receive a $100 discount on orders over $100 Use the code [aci789589] during checkout to get Temu Coupon Code $100 off For New Users. Yes, Temu offers $100 off coupon code “aci789589” for first-time users. Temu 100% Off coupon code "aci789589" will save you $100 on your order. To get a discount, click on the item to purchase and enter the code. Yes, Temu offers $100 off coupon code “aci789589” for first-time users. You can get a$100 bonus plus 30% off any purchase at Temu with the$100 Coupon Bundle at Temu if you sign up with the referral code [aci789589] and make a first purchase of$50 or more. The Temu $100 Off coupon code (aci789589) will save you $100 on your order. To get a discount, click on the item to purchase and enter the code. Yes Temu offers $100 Off Coupon Code “aci789589” for First Time Users. Yes, Temu offers $100 off coupon code {aci789589} for first-time users. You can get a $100 bonus plus 100% off any purchase at Temu with the $100 Coupon Bundle if you sign up with the referral code [aci789589] and make a first purchase of $100 or more. If you are who wish to join Temu, then you should use this exclusive Temu coupon code $100 off (aci789589) and get $100 off on your purchase with Temu. You can get a $100 discount with Temu coupon code {aci789589}. This exclusive offer is for existing customers and can be used for a $100 reduction on your total purchase. Enter coupon code {aci789589} at checkout to avail of the discount. You can use the code {aci789589} to get a $100 off Temu coupon as a new customer. Apply this Temu coupon code $100 off (aci789589) to get a $100 discount on your shopping with Temu. If you’re a first-time user and looking for a Temu coupon code $100 first time user(aci789589) then using this code will give you a flat $100 Off and a 90% discount on your Temu shopping. Temu $100% Off Coupon Code "aci789589" will save you $100 on your order. To get a discount, click on the item to purchase and enter the code. Temu coupon code$100off-{aci789589} Temu coupon code -{aci789589} Temu coupon code$50 off-{aci789589} Temu Coupon code [aci789589] for existing users can get up to 50% discount on product during checkout. Temu Coupon Codes for Existing Customers-aci789589 Temu values its loyal customers and offers various promo codes, including the Legit Temu Coupon Code (aci789589]) or (aci789589), which existing users can use. This ensures that repeat shoppers can also benefit from significant discounts on their purchases. Keep an eye out for special promotions and offers that are periodically available to enhance your shopping experience.
    • I'm having the exactly same problem, do you find another solution? and what are the specifications of your pc?
    • I've used both java 21, 24 and 17 separately and 24 isn't needed but both 21 and 17 are.    Removing modernfix doesn't work just gives separate errors (can't access rn, not home)
    • Omg, tens of tutorials, tweaks, uninstalls and reinstalls, java versions, java arguments, system variables. You. You did it. I bow in awe.
  • Topics

×
×
  • Create New...

Important Information

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