Interacting with ground items?

Discussion in 'Spigot Plugin Development' started by alzdoesmc, May 22, 2016.

  1. I'm making a shop system (without the use of HolographicDisplays) and I'm having some issues with having items stay in place and interacting with them.

    I have no idea why, but the PlayerInteractEntityEvent is not working, so I don't know about that.

    Moreover, the items keep spreading out and jumping around.


    How would I keep these items in one spot and what methods should I use to detect interaction with these items?

    Would I have to extend EntityItem?
  2. Well I would say the easy route and make them uninteractable, and infinitely lasting. And just place an invisible armorstand before it and there's already an event for checking interaction with armorstands. Just give it an NBT of "ItemType" a string and than

    Check if enough money
    Remove money
    Giveitem by turning the itemtype string into a material