How to disguise as a mob?

Discussion in 'Plugin Development' started by Soxra, Apr 27, 2012.

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

    Soxra

    Hey,
    i want to make a plugin where you can disguise as a creeper.
    I DONT WANNA USE MOBDISGUISE. I wanted to ask if that is easily done and if there is a better way as
    Code:
    Location loc = player.getLocation();
    World world = player.getWorld();
    Creeper c = (Creeper)world.spawnCreature(loc, EntityType.CREEPER);
     
    c.teleport(loc)
    Regards Soxra
     
  2. Offline

    Father Of Time

    *laughs really hard*

    Oh good lord that is funny... Please tell me you tested this! :p

    The only thing that code is going to do is give you a nice surprise and make a nice crater where you once stood.
     
  3. Offline

    Ne0nx3r0

    Why not view their source code then? If they don't post it (Which I don't see where they do) just decompile* it:
    http://java.decompiler.free.fr/?q=jdgui

    I'd offer more help, but I'm not familiar with the gotcha's of disguising.


    *This is not a carte blanche statement to endorse stealing code on any occasion; however for the purposes of learning I don't take issue with decompiling to see how things are done.
     
  4. Offline

    ItsHarry

    AAHAHAHAHAHAHAHA someone put this in LAWL posts :p
     
  5. Offline

    ItsJerry

    HAHAHAAAA, if you understand coding this is really funny!! >=D
    You might want to test your code to see what'll happen lol

    But I would suggest to look at MobDisguise' source code
     
    ItsHarry likes this.
  6. Offline

    d33k40

    WTF!!!! wahahahahahah, you win the mob-totem.

    [creeper]
    [zombie]
    [spider]
    [skeleton]
     
  7. Offline

    BloodShura

    (PS: Sorry, I'm brazilian and my laugh is this...)

    AHUEHAUEHAUHEUAHEUHAUEHAUHEAUHEUHAE
     
  8. Offline

    Soxra

    woot? :D
    this is not the only code i have .... i have blocked the explosion of that creeper ....
     
  9. Offline

    nicholasntp

    Soxra: /disguise
    Soxra: Ohh, I wonder if it work...
    Creeper: sssss....
    Soxra: ed.... Ahhh!
    Creeper: *BOOM*
    Soxra: Dangit.
     
  10. Offline

    Soxra

    lol ... its working fine without any explosion but its not what i want.
     
  11. Offline

    nicholasntp

    I know, it was a joke. Trying to be funny :p
    Thats what I would do too.
     
  12. Offline

    Iron_Crystal

    LOLOLOLOLOLOLOLOLOL

    This is tooooo funny.....

    Whats funny is that I used this for my Torture plugin....
     
  13. Offline

    Darq

  14. Offline

    Gravity

    So guys, instead of laughing and hardly giving any help whatsoever, how about providing something useful to the conversation. Soxra, doing this is extremely complex and from what I can tell your API knowledge is not quite there yet to reliably do this. I would suggest you work on different projects first and then begin to work your way towards working with packets and the NMS code, because that's what you will need to figure this out.

    Honestly, I'm not even sure if I would attempt doing this, especially when (sorry) there's a great plugin like MobDisguise that already has done EXACTLY what you are trying to do. There's value in learning, but not in re-inventing the wheel, especially when you're not quite sure how to tackle the issue.
     
    ItsHarry, ImminentFate and Darq like this.
  15. Offline

    nicholasntp

    Agreed. It was funny while it lasted. Check out the source code for MobDisguise. :)
     
Thread Status:
Not open for further replies.

Share This Page