Solved InventoryMoveEvent

Discussion in 'Plugin Development' started by cfil360, Jun 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    cfil360

    What is the best way to see if the gold block is placed inside either the green area or the red area? I am kinda stumped here.

    2014-06-16_00.00.32.png
     
  2. Offline

    travja

    Check it's slot number. [0, 1, 9, 10, 18, 19, 27, 28, 36, 37] is green [7, 8, 16, 17, 25, 26, 34, 35, 43, 44] is red
     
  3. Offline

    cfil360

    travja ok i was just wondering if there was a more efficient way of doing it.
     
  4. Offline

    travja

    Well for green you could check if it is a multiple of 9 or number-1 is a multiple. For red you'd do number-7 and number-8 or number+2 and number+1
     
Thread Status:
Not open for further replies.

Share This Page