How to disguise as a mob?

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

  1. Offline

    Soxra

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    *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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    AAHAHAHAHAHAHAHA someone put this in LAWL posts :p
  5. Offline

    ItsJerry

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    WTF!!!! wahahahahahah, you win the mob-totem.

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

    BloodShura

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    (PS: Sorry, I'm brazilian and my laugh is this...)

    AHUEHAUEHAUHEUAHEUHAUEHAUHEAUHEUHAE
  8. Offline

    Soxra

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    woot? :D
    this is not the only code i have .... i have blocked the explosion of that creeper ....
  9. Offline

    nicholasntp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Soxra: /disguise
    Soxra: Ohh, I wonder if it work...
    Creeper: sssss....
    Soxra: ed.... Ahhh!
    Creeper: *BOOM*
    Soxra: Dangit.
  10. Offline

    Soxra

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    lol ... its working fine without any explosion but its not what i want.
  11. Offline

    nicholasntp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I know, it was a joke. Trying to be funny :p
    Thats what I would do too.
  12. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  13. Offline

    Iron_Crystal

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    LOLOLOLOLOLOLOLOLOL

    This is tooooo funny.....

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

    This post has been edited 1 time. It was last edited by Iron_Crystal Apr 28, 2012.
  14. Offline

    Darq

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  15. Offline

    Gravity BukkitDev Team Lead Moderator BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  16. Offline

    nicholasntp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Agreed. It was funny while it lasted. Check out the source code for MobDisguise. :)

Share This Page