Crafting bench creating phantom outputs?

Started by ristar2 on Thu, 09/03/2020 - 14:39

Topic category: Help with modding (Java Edition)

Last seen on 20:31, 24. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Crafting bench creating phantom outputs?
Thu, 09/03/2020 - 14:39

I've started work on a mod and was trying to get a custom crafting bench up and working. In the GUI I have each of the input tiles set to run a procedure that checks the recipes and places the appropriate item in the output slot whenever their contents are changed.

For some reason I cannot seem to work out, if you complete the crafting recipe and take the item it will instantly disappear from your hand. It will show in the output slot, but if you click on it it just vanishes. If you shift+click it into your inventory, it will sit in your backpack until you try to click on it to move it, then it vanishes. 

The weirdest part of this is, it will not do this if you run the procedure TWICE. I've tried actually running the procedure twice in the procedure itself, but that doesn't seem to work. You can only take the item successfully if you actually input a duplicate item onto the grid, thus running the procedure that checks the recipe again, or use a debug button I added that literally just calls the same procedure.

I've tried iterating every way I can think of. I've run the line that places the output twice, I've set a master procedure that just runs the crafting procedure twice, I've put all of the functions into one main procedure instead of breaking them up, nothing works.

Has anyone run into this before?

Last seen on 14:42, 26. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I personaly didn't run into…
Thu, 09/03/2020 - 15:18

I personaly didn't run into this eror but it would be really helpfull if you give workspace example so I can check procedure.

Last seen on 20:31, 24. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Posted images of everything…
Thu, 09/03/2020 - 15:49

Posted images of everything in Imgur. https://imgur.com/a/x8X5EWj

 

Last seen on 14:42, 26. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Maybe its due to remove…
Thu, 09/03/2020 - 16:49

Maybe its due to remove 999999 items grom slot 9?

Try to remove that procedure block and try again, if that dosen't work report iz as a glich.

Last seen on 08:52, 27. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
this phantom item thing is…
Fri, 09/04/2020 - 14:18

this phantom item thing is most likely due to your procedure running on the client side