Jump to content

Recommended Posts

Posted

Hello, I can't find out how to create tools in my mod. I know i'm a noob, I just need 1 example of how can I do this.

I can show you what i've already done, only ores and items.

I really need some help please, it's for my server.

Posted

There are plenty of tutorials for tools. Or, you know, you could look at the way vanilla adds tools? Did you actually search before posting here? If you have anything specific you are having trouble with, post again here.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Thank for your answer.

 

I've seen and tried plenty of tutorials, but most of them aren't finished or inconsistant.

 

Not finished + nothing about tools + some problems with blocks and items.

http://bedrockminer.jimdo.com/ and this one is outdated.

 

https://www.youtube.com/user/kevsvids1000/videos I find this one, works perfectly for anything, but no explanation for tools.

--

I did search for 3 hours today and a bit yesterday, didn't find out.

 

 

 

 

Posted

Tools didn't change much since 1.7.10, only the textures, for which are plenty of tutorials to convert, and you can refer to the Minecraft source code for help.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

A tool is a subclass of ItemTool, which is a subclass of Item. Start by reading the source code for an example tool (e.g. class ItemAxe) and the whole of the shared class ItemTool. Then make your own subclass. If your tool is idiosyncratic, then you might subclass ItemTool or even Item (see how vanilla shears and hoe are coded). If your tool is yet another axe, pick etc, then you may subclass from the vanilla one you want to imitate.

 

Override the methods and adjust properties you want to do differently (e.g. tool material, effectiveBlocks). Other than that, tools are much like other items.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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.