Solved Remove items

Discussion in 'Plugin Development' started by dominikremes, Apr 28, 2017.

Thread Status:
Not open for further replies.
  1. Hello. I`m working on a Bedwars plugin and I`ve got smaller problems with the arena clearing. I need to destroy the dropps in that arena. I don`t have cubicoid selection, I`ve got only the position of the spawners (bronze iron and gold). How can I destroy the dropped items near spawners and not to delete items in the whole world? Thanks for help
     
  2. Offline

    Caderape2

    @dominikremes You can loops the nearby entities from a player. Or get chunk where your arena standing and remove item drop.
     
  3. @Caderape2
    Ok. I check the nearby block and how to remove the dropped items?
     
  4. Offline

    Caderape2

    @dominikremes not block, floating item are entities. You have to loops entities and check if it's instanceof Item, then entity has a remove() method
     
  5. @Caderape2
    I`ve got it. Thanks :)
    And now I have to finish just the shop and Bedwars is ready to be used
     
Thread Status:
Not open for further replies.

Share This Page