Jump to content

Issue/help on creating 4x4 crafting recipe (1.16.5)


Recommended Posts

Posted

I try to create a custom crafting table that has a grid of 4 by 4, so I first tried to create a recipe that extends ShapedRecipe, call the super in the constructor and then call SetCraftingSize(4, 4) as mentionned in the ShapedRecipe class. However, it seems not to work, I took a closer look to the vanilla class but I don’t really understand why they are using CraftingInventory, And CraftingContainers. So I tried to « rebuild » it with IInventory. It perfectly works on singleplayer but I have this weird error when trying to connect to a server « UTF-8FormatException : Malformed input around byte », and an error on the client only, I guess it’s an error of networking but I don’t really know :

See error

 

And here is my Recipe Class :

See class

 

thanks for your help if I can have any !

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.