Summon Different parts of EnderDragon

Discussion in 'Plugin Development' started by VortexGmer, May 18, 2015.

?

Is this possible

  1. Yes

    3 vote(s)
    25.0%
  2. No

    9 vote(s)
    75.0%
Thread Status:
Not open for further replies.
  1. Offline

    VortexGmer

    I am not sure but I have hear that the enderdragon is multiple entities.
    How do I (For Instance) Summon just the wing or head?
    Thanks for any help!
     
  2. Offline

    NathanWolf

    I'd be curious to try this.. you'd have to spawn the entities via NMS, and I'm guessing weird/bad things would happen, or it just wouldn't work. But maybe worth a try! Imagine, attaching the dragon wings to a player....
     
  3. Offline

    RingOfStorms

    This is not possible, the individual dragon pieces will not function or even show up clientside.
     
    NathanWolf likes this.
  4. Offline

    Reynergodoy

    I don't think so, as they are just a "3D" piece model
     
  5. Offline

    VortexGmer

    I don't really want them to function, Just be there floating there and stuff
     
  6. Offline

    RawCode

    provide source of this rumor
     
  7. Offline

    VortexGmer

    People talk about when you try to hit the enderdragon it hits one of the complex entities part of it?
     
  8. Offline

    NathanWolf

    Proof is in the MC source code, it's not a rumor. You could also just scan entities with a dragon around, you'll get the different pieces- the dragon is made up of multiple entities. It's actually a bit of a pain for targeting.

    Sounds like the client won't render them as individual separate entities though, so we can't do anything useful with this information.
     
  9. Offline

    RingOfStorms

    If you just want floating pieces the only thing u can do is spawn an entire dragon to be shown. The spawn entity packet takes an entity type, and there is no ID for the individual pieces, but only the entire dragon as one.
     
    NathanWolf likes this.
  10. Yeah, the ender dragon 'parts' are just the parts that can be damaged, you can't spawn each body part individually
     
  11. Offline

    NathanWolf

    But once spawned, each EntityComplexPart is a full Entity, correct? And they would have entity id's- ones that could perhaps go in a packet to hide the entity from the client?

    I know it's a stretch. :D
     
  12. Offline

    RingOfStorms

    I'm fairly certain that the client only reads the dragon as a whole with one entity ID, but I'm not entirely sure on that one.
     
  13. Offline

    RawCode

    dragon parts have no network ID and cannot be sent to client
    dragon parts have no render and cannot be rendered by they own

    probably i have "other" source of mc, and my render manager and entity list special, or this is rumor without source?
     
  14. Offline

    NathanWolf

    We're looking at server code, you're apparently looking at client.. or a modded client.. or .. something?

    Just look in the mcserver source. EntityEnderDragon creates several EntityComplexPart's. Each of those is an Entity, and hence would have an entity id.

    It sounds like the server never sends this entity id, though. And perhaps the client doesn't care to render the parts, and maybe never knows about the parts.. could be they are only used server-side for hit detection, or something like that.

    So I think if the "ComplexPart" entities have nothing to do with the visual rendering, we are not going to be able to do anything useful with them.
     
  15. Offline

    VortexGmer

    Then why did they make it in the first place? Also I'm pretty sure people can do this because recently people have started making vanilla mods that have helmets which showenderdragon heads instead? anyway to do this with bukkit?
     
  16. Offline

    NathanWolf

    "vanilla mods" as in client mods? They can do whatever they heck they want in that case...

    Looking through the code, it seems like the different parts are just a hacky way to make a complex hitbox for an entity. The dragon is the only thing in the game that doesn't have a simple rectangular bounding box. I'm not sure how the client handles that, possibly just a hard-coded arrangement that matches the server. I never look at the client code, so I've no idea but it sounds like RawCode isn't seeing it there.

    In any case I'm not doubting that the vanilla client won't render a piece individually, even if you were somehow able to spawn one. I wish that wasn't the case, but until I see it myself I don't have much hope :)
     
  17. Offline

    VortexGmer

    No, not Client mods. Check this out if you want to understand.
     
  18. Offline

    I Al Istannen

    @VortexGmer Where did he use that? Sorry, couldn't see it.
     
  19. Offline

    NathanWolf

    That was a very interesting video, and a very creative technique... but seems in no way relevant? :D Where's the dragon head?
     
  20. Offline

    VortexGmer

    In some of his other videos He has a 'Hydra' which uses a dragon head... Another solution is using this just instead of snakes make dragon heads with a less complex AI?
     
  21. Offline

    NathanWolf

    Can you please link to that video then? xD
     
  22. Offline

    I Al Istannen

    @NathanWolf
    @VortexGmer

    He uses wool with a custom model. Not a dragon head. I donwloaded the map, lime wool is the head. Then a armorstand wears that model and boom, there is a ender dragon head.
     
    NathanWolf likes this.
Thread Status:
Not open for further replies.

Share This Page