1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Spawning Entity at Specific Location

Discussion in 'Development' started by CupidonSauce173, Mar 25, 2019.

  1. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Hey, how can we spawn an entity (for example a firework) with a command (/firework <x> <y> <z> <type> ??
     
  2. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    Write specific xyz on when you creating nbt
     
  3. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    I never used nbt, can you show me an example please?
     
  4. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    PHP:
    $nbt Entity::createBaseNBT(new Vector3(xyz));
    If you are using build versions of software, you should change Entity to EntityFactory.
     
    CupidonSauce173 likes this.
  5. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    thank you!, I'll test rn
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.