Crafting GUI in 1.9.1

Started by GamesRuleYears on

Topic category: Help with MCreator software

Last seen on 02:53, 30. Aug 2022
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Crafting GUI in 1.9.1

I am trying to create a crafting GUI in the newest Mcreator version, but I want to make it like a REAL crafting system. I have had very minor success, but it mostly bugs out and does not work. I am trying to make use of the "When Item taken from slot" in the output slot and using "when slot contents change," but when I do this, everything goes haywire. The fist item crafted works, but the second item does not.

To replicate this just do this:

-create a block with an inventory of 1 slot(including slot 0)

-create gui

-attach gui to block with inventory

-place 1 input slot and 1 output slot

-in the input slot, i put this in the "when slot contents change"

if [Get item from slot 0 of block at x, y, z if it has inventory] == iron_ingot

do set 1 iron_dust in slot 1 of block at x, y, x if it has inventory

-in the output slot, I put this in the "when item taken from slot"

remove 1 items from slot 0 of block at x, y, z if it has inventory

 

I thought that this would work for creating an inventory, but everything glitches out. It does not let me take the item out of the output slot, and when it does, it creates fake items in my inventory that disappear when I try to drop them. It also consumes the item in the input slot and makes it unretrievable.

 

Is there a way to fix this so that it works like a traditional crafting table?

I am in the 1.9.1 version of Mcreator.

Last seen on 04:11, 23. Sep 2024
Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a bug with some of…
Tue, 10/15/2019 - 20:24

There is a bug with some of these functions.