Jump to content

[SOLVED]Items in Crafting?


Davidobot

Recommended Posts

So if I set it as the item it should give me back the item after crafting?

Yup.

I just tried it, it didn't work:

metalConvert = new portableMagik(metalID).setMaxStackSize(1).setCreativeTab(MagikTab).setIconIndex(0).setItemName("MetalConvert").setContainerItem(metalConvert);

So basically it should turn iron into copper, but when I craft with it, it uses it up.

If you found this post helpful, please take your time to give me a "Thank You". :)

Link to comment
Share on other sites

You need to create your Item first of course. At the point where you do setContainerItem(metalConvert) metalConvert is still null (= no containerItem).

So inside my item class?

 

EDIT: Nevermind, just put it after the declaration like so:

metalConvert.setContainerItem(metalConvert);

If you found this post helpful, please take your time to give me a "Thank You". :)

Link to comment
Share on other sites

You need to create your Item first of course. At the point where you do setContainerItem(metalConvert) metalConvert is still null (= no containerItem).

Ok, but it disappears every time I craft something. Is there a way how to prevent it from going into my inventory every time? Example: The minium stone from EE3.

If you found this post helpful, please take your time to give me a "Thank You". :)

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.