Started by
Jaklyn
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
I am trying to make a procedure that checks which slot an item is within a block inventory. For example, lets say im trying to make it so if any inventory holds a dirt block, its swapped with a diamond.
Can anyone help?
You could use a local variable to check each slot, and use repeat # times to check every slot.
Code example:
[ Image link if it doesn't show: https://imgur.com/a/mcreator-help-1-utArYqf ]
What it does by each block:
I hope this helps!