How to make GUI only for one player (meant for mod to be used in multiplayer)

Started by Gamemaster2022 on

Topic category: Help with modding (Java Edition)

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make GUI only for one player (meant for mod to be used in multiplayer)

Hi, in my mod I have got 5x5 crafting table with multiple recipes. My problem is, that in multiplayer game anyone can see how I am crafting when they open the GUI and steal items. It works like a chest. I want to make it act like normal crafting table.I mean, when I try to craft only I can see my items when crafting. When another player opens the crafting table it can not see my items and it can craft too. I have no clue how to do it. Thanks for replys.

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the block is tile entity?
Thu, 05/06/2021 - 18:16

the block is tile entity?

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes. I was unable to use it…
Fri, 05/07/2021 - 05:38

Yes. I was unable to use it without tile entity mode activated

 

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try removing the tile entity…
Fri, 05/07/2021 - 06:17

Try removing the tile entity
just add a tigger "on block right clicked"
8

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI opens but I can not craft
Fri, 05/07/2021 - 06:27

GUI opens but I can not craft

Look how my GUI looks. It should craft but when I click "Craft" button to call procedures to be used as crafting recipe, It just play the sound and nothing happens

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I understand, so maybe a…
Fri, 05/07/2021 - 06:43

I understand, so maybe a solution could be to use the tile entity but only allow to use one player at a time.

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
S how to do it :D
Fri, 05/07/2021 - 06:44

S how to do it :D

Last seen on 23:21, 17. Jun 2022
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The thing is that Crafting…
Fri, 05/07/2021 - 06:50

The thing is that Crafting Table doesn’t even have a tile entity. You can replace procedure blocks from block procedures to the one that in Slot and GUI or whatever it’s called. These procedure blocks work without tile. But you will not be able to store item inside your block. And finally create a procedure for opening your GUI.

Last seen on 16:16, 15. Sep 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well I know what you mean…
Fri, 05/07/2021 - 07:29

Well I know what you mean but I do not understand how to do it. Making recipes took me a lot of time...