Jump to content

Recommended Posts

Posted

Maybe I'm looking in the wrong place, but I can't find ToolAxe etc. anyplace, and that was viable in 1.13 all I see now is 

ToolItem extends TieredItem

I'm trying to get my feet wet again haven't modded since early 1.12. =/

It seems that the constructor is fairly similar, it wants an offset damage, attack speed, IItemTier of which I've made my own IItemTier enum material etc.

But I'm lost as to what effectiveBlocksIn is and how I use it, as well is the builder for Properties the same as normal items?

 

public static Item magic_axe = new ItemMagicAxe(-1.5f, 5f, ToolMaterialList.magicMaterial, NotSureWhatIPutHere, WhichPropertiesGoHere?);

 

a.k.a. Sirius

width=400 height=82http://i.imgur.com/QRtYi6e.png[/img]

Posted (edited)
1 hour ago, SiriusWolf said:

Maybe I'm looking in the wrong place, but I can't find ToolAxe etc. anyplace, and that was viable in 1.13 all I see now is 


ToolItem extends TieredItem

 

You probably want the ItemTool, ItemTiered, and ItemAxe classes. Edit: Didn't see this was for 1.14. Draco is right.

 

As for Properties, look at the Item.Properties class. It's exactly what it sounds like, things such as max stack size, whether or not it can be repaired, etc.

Edited by TheKingElessar
Posted
9 minutes ago, TheKingElessar said:

You probably want the ItemTool, ItemTiered, and ItemAxe classes.

 

As for Properties, look at the Item.Properties class. It's exactly what it sounds like, things such as max stack size, whether or not it can be repaired, etc.

Neither ItemTool nor ItemAxe as valid classes, and the material I'm using already implements IItemTier. 

a.k.a. Sirius

width=400 height=82http://i.imgur.com/QRtYi6e.png[/img]

Posted

Try AxeItem and ToolItem. With 1.14 things were moved from prefixes (Item___) to suffixes (___Item).

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
4 hours ago, Draco18s said:

Try AxeItem and ToolItem. With 1.14 things were moved from prefixes (Item___) to suffixes (___Item).

Yup, I feel like a dumbass because I even read that in the notes on github about that and didn't think to try it lol. Thank you Draco, saving the world as usual.

I looked at the AxeItem class after I read the post. Make sure new Item.Properties().addToolType(TYPE, LEVEL) even though the material is added first.

a.k.a. Sirius

width=400 height=82http://i.imgur.com/QRtYi6e.png[/img]

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.