Inactive [MECH/FUN] Vampire v3.3 - The horror continue on your server [766]

Discussion in 'Inactive/Unsupported Plugins' started by TrainYourBrain, May 8, 2011.

  1. Offline


    Hey guys,

    Since Olof Larsson's vampire plugin seems to be inactive I will continue his great job, you can check the original version at Vampire Original Topic.
    All credits go to Olof Larsson, I've done some fixes that's all.

    Please if you find something weird or if you want something to be added or even a bug, please tell me ;-)

    Current version: 3.3
    Source :

    This plugin add the horror of vampirism to your minecraft server.
    Any player may turn into a vampire if they contract the infection and doesn’t manage (or doesn’t care) to cure themselves in time.
    The plugin is fully configurable, see the "Configuring the plugin" section.

    Turing into a vampire
    To become a vampire you must first contract a certain infection. This infection will make you sicker and sicker until you finally turn into a vampire. If you want to stop the infection you can either eat bread or use a good altar (read more about altars further down).
    There are three ways to contract the infection:

    1. Fight against vampires in close combat. For each attack (from either you or the vampire) there is a 1/30 risk that you will contract the infection.
    2. Use an evil altar. Any player can build such an altar (read more about altars further down).
    3. Ask a server operator to infect you. There is a server command for this.
    After you contract the infection you have one hour (real time not game time) before you turn. This is about 3 minecraft day night cycles.

    Since version 3.0 it exists two vampire types : The TrueBlood and the Common.
    The main difference is TrueBlood can infect other player, whereas Common can't.
    True Blood are those who turn into vampire thanks to an evil altar.
    The common are human infected (and turn) because of an other vampire.

    A human become True Blood vampire using an evil altar.
    A human become Common vampire when a TrueBlood vampire attack him.

    Being a vampire

    • Burn in sunlight, but not when it's raining/snowing/thundering.
    • Take no fall damage.
    • Can breath underwater… or rather does not need to breathe at all.
    • Has a reservoir of blood between 0 and 100.
    • Must drink blood from humans or animals to not die from starvation.
    • Can not eat normal food except fresh pork to recover blood.
    • Regenerates health automatically. (costs blood)
    • Won’t be attacked by monsters unless the vampire attacks first.
    • Can jump and fly using a red rose. (costs blood)
    • Deal more damage in close combat.
    • Take less damage in close combat except for attacks from wooden weapons which hurt them a lot.
    • Occasionally infects others in close combat.
    A vampire is considered to stand in sunlight if it is daytime and the blocks above the vampire is too transparent. So for example a vampire will burn under a clear sky but be safe under a cobblestone roof. If the roof was made of glass the vampire would burn. It is possible for vampires to take cover under trees if they are thick enough. It takes 4 leaf-blocks to block the sun… etc.

    To drink blood a vampire must damage other humans or animals. So if you are a vampire you will find that it is possible to go the vegetarian way… however humans are much more tasty (you get much more blood from them than animals). It is important to keep track of your blood supply. Use the v command every once in a while. If blood is over 50 the regenerate ability will work. You will slowly heal your wounds automatically at the cost of blood. However if you blood is below 50 you are thirsty and will slowly loose health. If blood is below 20 you are very very thirsty and will loose health fast.

    Curing a vampire
    The only way to cure a vampire (except for the admin cheat command) is to use a good altar.

    There are two types of altars. Good ones and evil ones. These altars can be built by any player. The evil altar can be used to contract the infection that after a while will turn you into a vampire. The good altar can stop the infection and even cure already turned vampires. The altars are made of one main block and 20 nearby blocks:
    Note how I wrote nearby. To be more precise nearby means within a radius of 7 blocks away from the main block. This means you may design your altar how you like. Put the secondary blocks in any way you think look nice [​IMG]

    To use the altar you right-click on the main block (gold or lapis).

    Configuring the plugin

    Show (open)

    So there are 4 configuration files :
    • Conf.json include general Vampire plugin variables.
    • Lang.json contains all the text. (So this is the file you'll need to translate if you don't want the text to be in English ;))
    • TrueBloodConf.json contains attributes about TrueBlood vampire.
    • CommonConf.json contains attributes about Common vampires.
    FAQ :

    First, to configure the plugin, edit the conf.json file located in Vampire directory.

    How can I change the necrosis system radius effect ?

    Set the radiusSpreadingNecrosis value to true/false.

    How to enable/disable the things becoming death when vampire are close to them (spreading necrosis system) ?

    Change "allowSpreadingNecrosis" value to true or false (respectively enable/disable).

    How to enable/disable draining blood over time ?

    Change "allowBloodLoss" value to true or false (respectively enable/disable).

    How to change the color vampire name when the vampire send a message in chat box ?

    Change the following variable that are use to set the vampire name color and the message color of a vampire :

    "vampireChatNameColor": "RED",
    "vampireChatMessageColor": "WHITE",

    The base chat console command is /v or simply v. This means you don’t need to write the forward slash if you don’t feel like it. [​IMG]

    The base command v can be used by vampires to display their current blood reservoir. There are also the following subcommands for server operators (OP):
    • v infect [playername] *[amount from 0 to 100]
      The player turns into vampire at infection 100. 0 means no infection.
    • v turn [playername] [TrueBlood]
      Instantly turn a player into a common or trueblood vampire.
      Ex: "/v turn Toto" will turn Toto in common vampire.
      "/v turn Toto trueblood" will turn Toto in True Blood vampire.
    • v cure [playername]
      Instantly cure a player from vampirism.
    • v list
      List all vampires on the server.
    • v load [config|players|all]
      Load data from disk.
    • v save [config|players|all]
      Save data to disk.
    • v time [ticks from 0 to 23999]
      Set the time. 0 means sunrise. 1 ingame hour is 1000 ticks.
    • v version
      Find out which version you are running.
    • v help
      Show help
    • v chatcolor [enable/disable]
      Enable or disable the system chat color : When a vampire write something, the vampire nickname is write in red
    • v burntime [From] [To]
      Set time when the vampires will burn. Ex: /v burntime 0 12400
    • v feed [playername][amount]
      Give blood to the vampire.

    1. Download the latest release:
    2. Put Vampire.jar in the plugins folder.
    A default config file will be created on the first run. You don’t need to modify it. The default file is good. But if you feel like it you can alter all ingame messages and a lot of the game balance from there.


    If you have an older version of Vampire, you may update the plugin, so the simplest way to update the plugin is to replace your current Vampire.jar by the one you downloaded and to remove Vampire directory.
    However if you don't how to delete them ('cause you've translated the conf.json for instance) you have to :
    (For instance : if your version is 1.3 do the things write in "If your version was < 2.1" but also the things write in "If your version was < 2")

    Show Spoiler

    If your version was < 3.2 /!\ VERY IMPORTANT

    Show Spoiler

    - Remove your Conf.json
    It will be created once again, when you restart your server

    If your version was < 3.1

    Show (open)
    Edit config.json in Vampire directory, and add the following lines :

    "allowBloodLoss": true,
    "allowSpreadingNecrosis": true,
    "radiusSpreadingNecrosis": 2,
    "messageTrueBloodVampire": "You are a True Blood vampire.",
    "messageBasicVampire": "You are a common vampire.",
    "turnTrueBloodMessages": [
    "Your heart stops. You don\u0027t breathe anymore.",
    "You are now a True Blood vampire, able to infect.",
    "To see your blood supply:",
    "Type \"/v\" or simply \"v\" in the chat."

    If your version was < 2.2

    Show (open)
    Edit config.json in Vampire directory, and add the following lines :

    "vampireNameColor": "RED",
    "vampireChatMessageColor": "WHITE",

    And add this lines in the part regarding helpMessages :

    "/v burntime [From] [To] Set time in which vampires will burn.",
    "/v chatcolor [enable/disable] Enable/Disable vampire player name color.",
    "/v help Show this message."

    If your version was < 2.1

    Show (open)
    Edit config.json in Vampire directory and remove the "Pork" item from food material :

    "foodMaterials": [
    "PORK" <-remove this

    If your version was < 2

    Show (open)
    Edit config.json in Vampire directory, and add this line between the second and third line :

    "allowOPToUseAdminCommand": true,

    Incompatibility with other plugins :

    You'll maybe meet some bugs if you use a Weather plugins.


    Version 3.3
    • When a human died, he may become a vampire (configurable).
    • Bug fixes
    • True Blood vampire can use different recipes than Common vampire , in order to cure.
    Version 3.2
    • Added the possiblity to vampire (True Blood and/or Common) to prevent from burning.
    • Configuration file (Conf.json) splitted in 4 :
      - Conf.json includes general Vampire plugin variables.
      - Lang.json contains all the text. (So this is the file you'll need to translate if you don't want the text to be in English)
      - TrueBloodConf.json contains attributes about TrueBlood vampire.
      - CommonConf.json contains attributes about Common vampires.
    • Red roses don't disappear if "spreading death" ability is enabled.
    Version 3.1
    • Drain blood overt time is now available and configurable.
    • Server operators can feed vampire (give blood to vampire)
    • A vampire will bring death to the world. It's mean all entity next to the vampire become dust.
      For instance, flowers will disappear, grass will become dirt, snow will melt.
    • Added True Blood vampire and Common vampire. True Blood are the vampire turn thanks
      to an evil altar, and common vampire are those infected by other vampire.
    • And other bug fixes...
    • CB 740->766
    Version 2.2

    • Added : help command : "/v help"
    • Added : set burn time (time during the vamprie will burn) command : "/v burntime [From] [To]"
    • When a vampire say something in the chatbox, his/her nickname is colored in red, this feature is disable by default. Use the "/v chatcolor enable" command to enable the chat color system.
    Version 2.1

    • Vampire can walk out the day when it's raining/snowing or even thundering.
    • Vampire can eat pork to get blood.
    • /v command fixed
    Version 2

    • Bugs fixes when it's day light, a vampire who flight over the 127th block (y) will now burn.
    • Removed Permissions Plugin Support due to some errors (only OP can use admin command).
    • Removed Help Plugin Support due to some errors (only OP can use admin command).
    Version 1.4.1

    • For CB602 -> CB617 and upwards...
    Version 1.4

    • Better jump and fly ability for vampires :) Now using red rose instead of feather.
    Version 1.3

    • Permissions Plugin Support
    • Help Plugin Support
    Version 1.2

    To update: You should rename config.json to config.json.old. Then start server and stop it. Then paste your custom messages and changes (if you made any) into the new default config.json file.
    • There is now altars that can be built to infect and cure vampires.
    • Some bugfixes.
    Version 1.1

    • Important bugfix. Players did not get infected correctly.
    Version 1.0

    • The first release
  2. Offline


    Wondering if this actually works >.>
  3. Offline


    Tried it, no luck.

    Although the only things not working for me at the moment (on Version 3.3 or the one that Darkride posted) are Necrosis (spreading death) and health loss when thirsty (50 or 20)

    Can someone else confirm if either of those features are working on CB818-819+ so I'll know if it's just me?

    Not getting any log errors.


    Apparently, necrosis works when both common and trueblood have it but not when it's only for trueblood
  4. Offline


    Okay seems to be working fine for me. Thank you
  5. hm tested it and all works fine for me :/ and its ONLY 818. i will take a look on it again but on my serer there was no problem
  6. Offline



    Maybe just conflicting with something else I've got running. Still no errors though.

    I updated the code from the original jar file to apply the health accumulator after every health decrease tick and now thirst damage seems to work properly. Also changed the logic on the spreading necrosis ability and that worked as well, although I can't see why it wouldn't have worked for me before. Oh well :D
  7. Well i cant reproduce your problem. send me your config pls and i will look at this. maybe i can reproduce it with it :)
  8. Offline


    This is super awesome!
  9. Offline


    OMGOMGOMGOMGOMGOMGOMGOMG. Sorry, I freaked out for a second there. Thanks for posting that! :D
  10. ok ok come down its only a plugin for a game :)
  11. Offline


    I'd like to get the thirst damage fixed for my server also. Can you paste in this code or upload this fixed jar please? I'd be immensely grateful. :3

    Thank you so much!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 25, 2017
  12. Offline


    There you go. Increase the amount of health taken per second in the config file if it's too low/you want to see it working.

    I don't remember exactly what I did to the Necrosis ability but on my server I only use it for true blood vampires so I might have changed the logic so that it only works for true blood and if true blood necrosis is disabled it won't work at all.

    Used on CB818-835.
  13. so what you have chanced all in all into the code ??? send me a pm with it i want to take a look on it
  14. Offline


    What a good burn time to set? I don't know all the times in the game so unsure what I should set it as.
  15. Offline


    Some friends and I are looking into possibly forking this project since the author seems to have completely abandoned or temporarily gone AWOL. First things first tho, wrap my head around some Java coding.
    LlmDl likes this.
  16. so you have to learn java first ? i dont understand what you want to tell me with this phrase
  17. Offline


    I was wondering if this is still active or not?
    If it is, it would be amazing to have other mobs be able to give you the disease.
    Like, when you are hit, let there be a small chance that you will be infected.
    Me and my friend are the only ones on my server and this would make it much more exiting!! lol
  18. Offline


    If the source isn't in the JAR, I'm pretty sure I didn't save it. Either way, all I did was use the built-in apply accumulative health method right after the damage was calculated per xx seconds. Sorry I can't be more helpful xD

    If CB should update and Vampire breaks I may update it again but I doubt I'd do a formal fork or anything of that nature, working on two plugins for my server atm.

    The default burn times work just fine, IMO.

    That'd be nice, I look forward to it. The coding in this plugin is fairly straightforward and there aren't too many complexities in it that I think you'll be able to modify it just fine.

    edit: ^ being that you're new to Java and all. Sorry, haha. Just re-read that in my head.
  19. Offline


    It seems there is a bug in vampire where after a while burning and healing over time with blood is just stopped in all. I figured I did something to break the burning so I asked for a time but after restarting my server it seems to work again but breaks after a while. I really enjoy this mod and wish someone would take it over...again

  20. so 2 people want to pickup this plugin so i dont have to do it because i have not really mutch time and this would be stupid then :p and the thing about your codechange tested it once again it was 100% fine. necroises worked for me as only true blood and not for common idk but who whants to know this :D

    stopped to burn / to work / to heal ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  21. Offline


    After a while the burning in stun stopped for all vampires and the healing stopped...along with the ability to get blood.

    I even did the command to give myself blood and I was sitting at 100blood and no healing.
  22. Offline


    Are you using the updated jar I posted on page 8 or Vampire 3.3? I haven't had any issues with healing/burning/blood stopping. Are you using any weird weather plugins? Maybe it's a conflict
  23. Offline


    I am using the one "Darkride" posted and I think its about 5 posts before yours. And I have no weather addons.
  24. Offline

    Dillon Austin

    could you make it so vamps get stronger as the get older
  25. Offline


    If his doesn't work for you, try mine. If mine doesn't work for you, try updating CB if possible. I'm running CB #857 and it's working. If THAT doesn't work and you still get no error logs in console, not sure what to tell you. Sorry :(
  26. Offline


    This is the error im receiving.

    Attached Files:

  27. Offline


    Is there a way to change the amount of blood pork gives you? I was unable to find it in the config.

    Also is there a way to make the nether creatures attack zombies? I checked the config and ghasts are in there but attack anyways but the pigmen are not in there but dont attack you.
  28. Offline


    Does the 818 version still work at 860 build? And also on 818 i noticed ghasts attack vampires, but everything else seemed to work.
  29. Offline


    hey, my server only lets me edit .yml files, i tried renaming it .yml changing it then renaming it to .json, but it didnt change anything it just made the .config file not work :/ im new to plugins and any help you could give me would be awesome :) thank you!
  30. Offline


    Editing the .yml and renaming it should work for you as long as the new version is in the .json format. Basically:

      "key": "value",
      "key2": "value2"
      "key3": [
    Hope that helped.
  31. Offline


    Sever seems to be crashing less so I guess using the other .jar worked. Though I fear in the next update or two Vampires will break. Wish someone would take it up :(

Share This Page