[REQ] Undead Pig [IT'S POSSIBLE!]

Discussion in 'Archived: Plugin Requests' started by msw1, Aug 14, 2011.

  1. Offline

    msw1

    Hello. I have a plugin request that IS possible.... A mutant pig!
    Undead pig would use spout. Undead pig is a pig that makes pigs 1/10[maybe configurable] come
    back as an Undead pig and attack the player, and drops bones[if that's possible].

    If anyone could make this [I don't know how to make custom mobs] that would be great.
     
  2. Offline

    msw1

    Someone, please.
     
  3. Offline

    Toys

    This would be an awesome funny idea! I really like it haha.
     
  4. Offline

    dak393

    well you can set a target for the pig but I don't think you can have them chase down targets let alone damage them (it is possible just complicated would have to check proximity to the pig and the damage a player)
     
  5. Offline

    Stephen304

    You can do anything in spout! I really think I should learn java. Having already learned a lot of php and c++ I don't think it should be too hard.
     
  6. Offline

    Pencil

    Not hard at all making em damage or chasing them. Chasing them is a matter of setting the player as a target D:

    If I had time I'd make a plugin like this.
     
  7. Offline

    Zarius

    Well, OtherBlocks can do the pig back from the dead bit (with customisation):
    Code:
        CREATURE_PIG:
            - drop: CREATURE_PIG/1/10%
              delay: 40  # delay 40 ticks (about 2 seconds) - can remove this or increase or whatever
              message: "The pig has risen again."   # option message
    
    But not the aggression bit - although that's on the todo list I'm not sure how easy it'll be. Will also be looking to be able to "drop" custom mobs eventually - will be keeping an eye on Spout.

    Celtic Minstrel's Friendly is aimed towards this kind of idea (changing alignment of mobs) but I don't think he's worked out how to make pigs aggressive - perhaps you could see how he's going with it?
     
  8. Offline

    dak393

    I was unsure if setting the target entity for a pig would even make them move towards the entity (like agressive mobs do) and the reason I was saying its complicated is that even though you can easily make the pig damage the player wouldn't you have to check their distances to see if the pig was close enough?
     
  9. Offline

    Pencil

    Ye but even checking if hes in range is something relatively easy to do :D compared to some other stuff ^^
     
  10. Offline

    Bdl2

    Spawning a new pig after the death of another pig - Possible
    Making the new pig hostile - Theoretically possible.
    Changing the texture of the pig via Spout - Not yet possible.

    You misunderstand the current capabilities of Spout. Think of it's texture changing more like a texture pack you get for whatever reason while on the server. That's nice, but texture packs, by nature, will change the texture of ALL pigs if used the way you're suggesting, and it likely wouldn't be instant as the clientside has to download the texture pack before any changes are seen.

    If I'm wrong, feel free to prove me as such - I very well could be.

    Not to worry though, as Spout, in the distant future, aims to add all sorts of new features from custom blocktypes and graphical GUIs, to even the possibility of new mobs, I'm sure.
    What you need for the appearance is a new mob, and sadly Spout just isn't that far along yet.

    Also, @Zarius @Pencil @dak393
    You guys should check out the CustomDifficulty plugin, by @Pasukaru - which can make any mob you want hostile, passive, or friendly, dependant on times of day. There's lots of other features in it too, such as spawning any mobs on any world, how frequently they spawn, their health and attack damage, and what they drop on death.

    Link: http://forums.bukkit.org/threads/me...ong-or-too-weak-for-you-change-it-1000.20135/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  11. Offline

    Pencil

    You could make the undead pigs immune to fire and make them burn all the time as a visual effect :p
     
  12. Offline

    zhuowei

    The capability that the Op mentioned, setting an individual texture for an entity, was included in the latest Spout release, 1.0.2.
     
  13. Offline

    Bdl2

     
  14. Offline

    msw1

    This thread was old, but I just checked on it and it seems possible, so someone [maybe me now that I'm a coder, dunno how to make mobs though] should make this.
     
  15. Offline

    Zaros

    Then make a new thread.
     
  16. Offline

    BlueMond416

    I think you're all thinking about this too much. It is very possible and there is no need for spoutcraft. just onEntityDeath event get the location of the entity and if the entity type is = to a pig create a new entity that is a zombiepig at the place where the last pig died...

    Unless of course you are thinking about a new mob type then you would need some pretty good skills in java and use spout.
     
  17. Offline

    acuddlyheadcrab

    Is anyone doing this yet? Since, I have experience with this, it would be like doing a word-puzzle lol.
     
  18. Offline

    ZNickq

    onEntityDeath -> set timer to spawn new entity, mark the location where the entity will spawn
    onEntitySpawn -> check if it's a pig, if it spawns at the right location (maybe 1 meter error area), and change the texture with spout
    ((CraftPig pig).getHandle()).setPathEntity(x,y,z,yaw,pitch); -> move to the player
    OR
    pig.setTarget(player) -> could not work, it's probably only for mobs extending Creature
     
  19. Offline

    user_43347

    I'm doing this!
     

Share This Page