Topic category: Help with Minecraft modding (Java Edition)
This is my 'Shop' procedure which I'm having issues taking and adding to the blocks inventory.
The issue is the same I'm going to assume for both taking and adding as it has to loop 9 times in both 'Shop Inventory' and 'Shop Profits'. In this procedure, when I right click with an item(s) which matches slot '1' on the Shop block it will take my item(s) '1' and give me item(s) from slot '0'. It then places item(s) '1' in slot '11' and removes item(s) from slot '2' of the inventory. Works from that point of view. However, I need to keep taking items from slots 3-10 and adding items to slots 12-20. How would I achieve this? Please break down what I need from the procedure menu to do this. I can feel like I'm in touch distance on the shop buying and sell procedure now, just last issue to overcome. Will add additional checks for stock after.
Procedure Screenshot:
ShopSeller GUI Screenshot: