The procedure to set items in the GUI is only working for the player's GUI

Started by AidenR0 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The procedure to set items in the GUI is only working for the player's GUI

Hey there! 
So I'm having a little bit of a problem. I've made a mob which you can right click to trade with. Everything works fine, from the pages to the actual trading. The only problem I have is that I want players to see what they are trading for. (Kind of like the pre-1.14 trade GUI) I tried doing this with images, but I realised it'll be a problem when it comes to blocks. So I thought I'd do this via a slot that the player can't interact with, but upon opening the GUI, it'll play a procedure where it'll put the tradable item in the slot to show what the player is getting. (I hope this makes sense) The problem is that the item is getting placed, but in the player's inventory contrary to where it should be; the trade GUI. I tried setting the "Set item" procedure block to source entity instead of event/target entity, but the GUI trigger won't accept the new procedure.

So is there anyway to fix this? 

Thank you