1.12.2 Entity Data Profile save?

Discussion in 'Spigot Plugin Development' started by thienbao860, Mar 16, 2020.

  1. Hi. Let me first give you an example with this: https://gfycat.com/shockingclosehylaeosaurus
    Explanation: I want to make it suck entities into the gun, but I also need to save the data profile (health, age, etc.) of the 1st entity which is before the sucking so that I can retrieive it to the 2nd entity that will be shot while the 1st is removed

    It is obvious that in the example, I had to use spawnEntity as temporary, and the problem about it is, villager gets random job, horse gets random texture, and their health is reset

    If anyone knows the fix, I would be appreciated
  2. You could try to modify the spawned entity to match the 'sucked in' one once you spawn it, maybe there is better solution to this i haven played around too much with this.
  3. I thought that's my goal?