Creating a merchant

Started by Theshortcircuit on

Topic category: Help with MCreator software

Last seen on 06:22, 12. May 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Creating a merchant

Pretty simple, I want to create a merchant mob

I've tried making a gui, and having it open when right-clicking the mob, but it doesn't work, I get an error during recompiling. 

Second issue, so, I tried using a block instead of a mob, not ideal but just to see if the gui works, opening it is fine, but when I put my item into the input slot, the other item shows up in the output slot, but I can't take it, when I exit out of the gui with the items still in it, both the input and output items fall out

Please help

Last seen on 12:26, 30. Nov 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you tried using a stack
Sun, 01/29/2017 - 11:14

Have you tried using a stack event. So instead of placing an item into a input slot you could use a button.

When clicking the button on the gui, additemtoinventory if there is an item in inventory. Then use stack event to make it remove item in inventory. Then at the end you are left with the item you purchased.

 

 

Last seen on 06:22, 12. May 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Have you tried using a stack
Fri, 02/03/2017 - 23:26

@#1 That's brilliant! Thank you! Now just the problem of making it open with a mob, any ideas?

 

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When mob rightclicked-->open
Sat, 02/04/2017 - 07:11

When mob rightclicked-->open gui