#Can't full output this papi.
1 messages · Page 1 of 1 (latest)
for this example, they can bought MAX value of "ghast_tear" was
( 64-33 + 64-64 + 64-49 + 64-32 ) ghast_tear
which slot has matched as ghast_tear,then this slot equals to 64 for started.
(IF((64-{checkitem_amount_inslot:0,mat:ghast_tear,strict})!=0&&(64-{checkitem_amount_inslot:0,mat:ghast_tear,strict})!=64,64-{checkitem_amount_inslot:0,mat:ghast_tear,strict},0))
64-"value" when item equals ghast_tear
64-(64) when that slot get a set(64) of ghast_tear
64-(0) when that slot was empty, or that item didn't matched ghast_tear
That expression can be used before Minecraft 1.21.4 (Luminol server)
IF(64-"value") not equal 64
then output
64-value
0
that was 36*64
therefore i suggest achieve this by javascript or skript rather than math :3