Jump to content

[Solved] [1.20.2] ArmorItem Constructor Issue


Nachtsenf

Recommended Posts

I'm trying to add an armor set using the ArmorItem class; nothing too fancy, just a new material.  The issue I'm running into is that the ArmorItem constructor is expecting an Item.Settings object, but it can't find the Item.Settings subclass.  When I try using Item.Properties, like I have with other items, it says that there isn't a constructor for ArmorItem that uses Item.Properties.  Am I missing something obvious here, or is there an incomplete change in Item/ArmorItem for 1.20.2?

Edited by Nachtsenf
Resolved issue.
Link to comment
Share on other sites

I'm also using 48.0.30.  Based on this afternoon's Googling it looks like my environment is confusing Forge and Fabric, because that's the only reference to Item.Settings that I could find.

Edit:  Not really sure how it could be, though, because I have never used Fabric.

Edited by Nachtsenf
Link to comment
Share on other sites

  • Nachtsenf changed the title to [Solved] [1.20.2] ArmorItem Constructor Issue

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.