Summon Entity from NBT Tag Compound

Discussion in 'Plugin Development' started by Colinus999, May 2, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    Colinus999

    Hello!
    I am storing entities using NBT and want to spawn them from their NBT tag.
    How do I do this? There is no NMS Method like Entity.fromNBT()
     
  2. Yes there is, Because I suppose you already know the command ./summon
    Then you should take a look at the class: net.minecraft.server.(NMS_VERSION).CommandSummon
    Get to the point where they read/process the NBT in argument 4.
    And just simple copy the code.
     
Thread Status:
Not open for further replies.

Share This Page