1.12.2 Unique Entities

Discussion in 'Spigot Plugin Development' started by DatSquidFTW, Jan 23, 2020.

  1. This is probably a super dumb question.

    But I'm trying to make money making machines for a plugin. I have a GUI to collect the money when you right click the entity. And I have the actual entity to collect from. The listener for clicking and opening the GUI when I click the entity works off of the title. However, I need a way to differentiate between different entities. So working off of the title won't work anymore.

    What would be the most efficient way to do this?
     
    #1 DatSquidFTW, Jan 23, 2020
    Last edited: Jan 23, 2020
  2. ^ you can differentiate between entities specifically with the UUID entity.getUniqueId()
    if you just need to differentiate between different entity types which you set up, you can easily identify them by grabbing a scoreboard tag that you previously stored on them (scoreboard tags are _not_ stored in the scoreboard.dat so dont worry)