Adding a collar to another mob

Discussion in 'Plugin Development' started by NonameSL, Jun 1, 2014.

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

    NonameSL

    Is it possible? Can I add a collar, for lets say... A creeper? A villager? A pig?
    If so, how? Packets?

    Thanks in advance!
     
  2. NonameSL To the best of my knowledge and assuming you mean those wolf collars, I am pretty certain that it cannot be done.
     
  3. Offline

    oscarshi1995

    Collar is a clientside render pretty sure
     
  4. Offline

    RawCode

    ok lets imagine you added collar on your (server) side.

    how client going to know about your actions?
     
  5. Offline

    xTrollxDudex

  6. Offline

    oscarshi1995

    How so? o.o are you telling me the server renders the images and sends it to the client?
     
  7. Offline

    ResultStatic

    oscarshi1995 xTrollxDudex
    LOL
     
  8. Offline

    xTrollxDudex

    oscarshi1995
    No. The server sends information about what the object is an the client will respond to that, BUT, it has to be from the server side first. If you happen to be "able" to put collars on a different mob, how would the client be able to recognize it? It comes from both server and client, not the client itself.
     
  9. Offline

    oscarshi1995

    I realize that but my original post said its "rendered" client side. And to my knowledge does not render on any other mob
     
  10. Offline

    xTrollxDudex

    oscarshi1995
    ? It's a "well duh" thing - what does the server render? Nothing involving rendering. It just loads stuff and sends it to the player.

    And as for your second point, the player will be able to get it, but instead of generating the mob, it will crash since it doesn't know the server put the collar there. It CAN render on a different mob AFAIK, but the client doesn't know that.

    It's like trying to send a nonexisting block to the client, the client doesn't know what to do with it, but knows it has to render somehow, and the lookup fails. There's your crash.
     
  11. Offline

    oscarshi1995


    That still goes back to my main point: "No you cant have the tag render on the client for different mobs because the client renders the collars. and Although I have not looked up details I believe if you send a collar with a mob it wouldn't crash since it just another NBT tag that the client doesnt know exists for the mob, so unless the client checks the packet lengths for the mobs (which I doubt, but I could be wrong).

    regarding your second argument, what you are saying is like saying if I tossed a apple into the engine of a jet in flight the jet would "cook" the apple for a instant(which is probably true..., at one instance in time the apple would be just right for eating), its just the plane and apple would both crash to the ground in a firey heap as a side effect.
     
  12. That's one strong apple or one poor engine. A single apple wouldn't take down most planes.
     
  13. Offline

    oscarshi1995

    Good point... I will rephrase to a giant apple at 1m diameter :D
     
    AdamQpzm likes this.
  14. Offline

    RawCode

    single apple can take down any plan, but that apple shoud move really fast.

    i will remind you about E=MCC
     
  15. RawCode Good point, but I don't think that he would be able to throw the apple all that fast. And that's not to mention that most planes, especially the commercial ones, have more than one engine - taking out of them wouldn't have to result in the plane 'crashing in a firey heap'

    Also, this is more than slightly off-topic now. :)
     
  16. Offline

    99storm2

    If nothing works another option would be to just make a custom resource pack and set it as the server resource pack
     
    NathanWolf likes this.
  17. 99storm2 Would hardly be perfect, but in the absence of anything else I guess that's the best case.
     
  18. Offline

    99storm2

    AdamQpzm Yeah it wouldnt be the best option because some people dont use the server resource pack
     
  19. Offline

    Onlineids

    Welp this thread is going straight downhill
     
Thread Status:
Not open for further replies.

Share This Page