Creating Chest and shift clicking

Started by LueLusten on

Topic category: Help with MCreator software

Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Creating Chest and shift clicking
Mon, 08/28/2017 - 19:59 (edited)

I am having a problem with the chests I can make a block and gui that is fine but I can't shift click more then 9 times I changed this to 

 

if (index < 27) { if (!this.mergeItemStack(itemstack1, 27, (45 - 9), true)) {          return null;   // fixes shiftclick } } else if (!this.mergeItemStack(itemstack1, 0, 27, false)) { return null; }

And I was able get it to shit click from player to chest fine but now I can't get more then 9 back out of the chest I have changed the 45 - 9 to 45 -27 but this brakes it so I think the maths here are wrong anyone got any idea on this part?

Edited by LueLusten on Mon, 08/28/2017 - 19:59
Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyone got a idea on this or
Wed, 08/30/2017 - 21:32

Anyone got a idea on this or is it just broken ???

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
#@0 Shit click?
Thu, 08/31/2017 - 14:36

#@0 Shit click?