Jump to content

Make a player craft an item


Mannyyy

Recommended Posts

* I'M NOT TRYING TO MAKE THE PLAYER CRAFT A CUSTOM ITEM *

 

I want to create a mod where it crafts an item for the player (if they have the block obviously). How would I force the player to make an item (by id/name - i have the block stored). So for example how would I force this to make a snow block from snowballs.

Link to comment
Share on other sites

By "craft" do you mean on a crafting table? For that you  could just create a custom recipe. Since you said "force" I think you meant that just by holding something it would "craft" into something else? In that case you would just check the ItemStack in the player's hand, compare it to the things you want to be ingredients and then replace it with the output of the "recipe".

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.