Item drop in specific location based on item in slot

Started by mikerman50 on Tue, 01/04/2022 - 19:03

Topic category: Help with modding (Java Edition)

Last seen on 15:04, 23. Jan 2022
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Item drop in specific location based on item in slot
Tue, 01/04/2022 - 19:03

Hi  I am stuck with an problem where I want to drop items(entity) to a position forward, left and right of a block if they meet the item that has been defined in slots 1-9, Left position, 10-18 forward position and 19-27 right position if they are on top the the current block. i've had no issues moving items around the world only effectively "sorting" them to slots. i understand that I will need to spawn gem/item and xyz + offset, but setting the if entity exists as xyz of type item = item in slot 1 then place else "drop"