Jump to content

Quick question on Making Tools


r3vy

Recommended Posts

I am using most up to date MC and Forge. With Eclipse and everything is working fine when I made a custom sword with nothing fancy, just using custom ingots to make a sword more powerful then a diamond sword. Amazing mod right? lol

 

My question is when I was reading/watching tutorials on all tool sets, some people said to edit the EnumToolMaterial.java within the source of minecraft. Another person said it is bad to edit the original minecraft files, it can cause issues with other peoples mod.

 

Which is correct? can I simply edit the EnumToolMaterial class/enum to add in another line after GOLD? or should I make a "copy" of EnumToolMaterial(and simply add a "2" at the end) and redirect things to that? (even making for example "ItemSword2" class)

 

Both ways worked, with no errors, but of course, I dont want to start modding mincraft with the practice of editting minecraft files when I shouldn't

 

Any insight would be cool :)

Link to comment
Share on other sites

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



×
×
  • Create New...

Important Information

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