how to check if there is 50 stone in slot0 of a block (crafting table advanced)

Started by mangamaniacs2064 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to check if there is 50 stone in slot0 of a block (crafting table advanced)
Thu, 03/03/2022 - 02:50 (edited)

hi, i made an advanced crafting table that will let the user build special blocks with the table. when the user put 50 stones in the input slot (slot0) the crating table output (slot1)

will give for example obsidian.. here is what i tried !!! it work only for one block not 5...  i tried with 5 block of stone... it doesnt detect 5 stone...

 

https://hosting.photobucket.com/images/a370/mangamaniacs2064/Sans_titre…

 

Edited by mangamaniacs2064 on Thu, 03/03/2022 - 02:50
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try doing in the procedure…
Thu, 03/03/2022 - 12:12

try doing in the procedure

if (number of items in  slot 0) = 50 AND (get item in slot 0) = Stone

then do whatever

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you this worked... but…
Thu, 03/03/2022 - 17:02

thank you this worked... but... i cant remove any item from slot 0 or add item to slot1.

 

i checked the slots are not locked and there is in property inventory size is set at 3.

 

here is one of many method i tried...

 

https://hosting.photobucket.com/images/a370/mangamaniacs2064/Sans_titre…

 

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i solved it with your…
Sat, 03/05/2022 - 18:39

i solved it with your example and i found the right procedure thank you