How to stop machine from working when player has no items

Started by Professor Nautilus on Sun, 07/19/2015 - 02:25
Last seen on 19:24, 29. Sep 2016
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to stop machine from working when player has no items
Sun, 07/19/2015 - 02:25

So I want to make a smeltery, right? I make the GUI, add the button and add the event to remove (1) copper ingot and (1) zinc ingot and give the player (1) brass ingot... Except.. there is one little problem... If you dont have copper or zinc in your inventory it still works.. I dont now how to  fix it please help!

Last seen on 13:08, 27. Jul 2017
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i can help  
Tue, 07/25/2017 - 20:35

i can help

 

Last seen on 13:08, 27. Jul 2017
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
click on (all cases) and
Tue, 07/25/2017 - 20:38

click on (all cases) and paste this: hasPlayerInInventory[Itens.zinc_ingot]

Last seen on 13:08, 27. Jul 2017
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:click on (all cases) and
Tue, 07/25/2017 - 20:39

ops, i mean hasPlayerInInventory[Mod.zinc_ingot]