Jump to content

[1.16.5] [FORGE] Custom Screen - Output is only on client


Recommended Posts

Posted (edited)

Hello, i'm trying to create a simil stone cutter block.

I have done 99% of the mod, create a block, a tilentity, container and a screen.

The tileentity has 9 slots (which 6 are input and 3 are for output).

The screen shows some recipes that the player can craft, putting specific items in the input slots.

When the player clicks on a item that he can craft, the item is added but only on client, so when an update block is sent, everything is removed from the "inventory" (it is not even registered on server side)

It's 4 days that i'm trying to understand how to do this... I appreciate only a guide (maybe a commented guide) to solve this.

 

Here are my classes:

 

The Block:

  Reveal hidden contents

The Tile Entity:

  Reveal hidden contents

The Screen:

  Reveal hidden contents

The Container:

  Reveal hidden contents

 

Here's how the gui (screen) works:

 

SseTY3c.png

 

 

every tip is very appreciated

 

Edited by DioDogz
changing code to java format
Posted

1.16.5 is no longer supported here. Please upgrade to 1.18.x and 1.19.x to receive support.

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Guest
This topic is now closed to further replies.

Announcements



  • Create New...

Important Information

By using this site, you agree to our Terms of Use.