Skip to content
A Minecraft mod called Vampirism
Branch: 1.12
Clone or download
Latest commit ec985f9 Apr 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update no response configuration again Apr 11, 2018
dev_resources Village rework (#386) Apr 1, 2019
gradle Include upload to local maven option Apr 7, 2019
src Update mappings Apr 20, 2019
LICENCE Added vampire villagers May 4, 2016
build.gradle Update mappings Apr 20, 2019
gradlew Bump gradle to 4.4 Aug 28, 2018
gradlew.bat Bump gradle to 4.4 Aug 28, 2018 Bump version Oct 28, 2016

Vampirism for Minecraft 1.12 - Latest branch Build Status


Mod Description

Vampires are fast, strong and blood-thirsty entities, which do not like the sun, but don't fear the night, and the best thing is: You can become one!

This mod allows you to become a vampire with all it's benefits and drawbacks.

After being bitten by a vampire or manually injecting some vampire blood you get an effect called "Sanguinare Vampiris" which eventually turns you into a vampire.

For a more detailed description head over to the Minecraft forums or the Curseforge page.


Curseforge Project Minecraft Forum Thread
Help to translate



  • Mistadon Code/Models
  • wildbill22 Code
  • LRA_10 Models/Textures


Vampirism has an API you can use to add blood values to your mod's creatures or make them convertible and more.

Setup Gradle build script

You should be able to include it with the following in your build.gradle:

repositories {
    //Maven repo for Vampirism
    maven {
        url = ""
dependencies {
    //compile against the Vampirism API
    deobfCompile "de.teamlapen.vampirism:Vampirism:${mc_version}-${vampirism_version}:api"
    //at runtime (in your development environment) use the full Vampirism jar
    runtime "de.teamlapen.vampirism:Vampirism:${mc_version}-${vampirism_version}"

Choose a version

${mc_version} gets replaced by the current Minecraft version. (i.e. 1.10.2) ${vampirism_version} gets replaced by the version of Vampirism you want to use (i.e 1.0.3)

For a list of available Vampirism version, see CurseForge or the maven listing .

These properties can be set in a file named, placed in the same directory as your build.gradle file. Example


Rerun Gradle setup commands

Please run the commands that you used to setup your development environment again. E.g. gradlew setupDecompWorkspace eclipse --refresh-dependencies or gradlew setupDecompWorkspace ideaModule --refresh-dependencies Refresh/Restart your IDE afterwards.


Checkout this example project:

If you want to create an addon which access all of Vampirism's classes, not just the API, checkout this and consider contacting maxanier.

Code Structure

The master branch serves as the main development branch. Besides that there is a branch with the latest stable release code, it receives bugfixes which are usually cherry-pick merged in to the master branch. There also is a 1.9 branch which might be up-to-date with the latest release branch (for 1.10). The source code is currently divided into three parts, which might be split in the future.


Located in de.teamlapen.vampirism
Contains the mod source code. Depends on the other two parts.

Vampirism API

Located in de.teamlapen.vampirism.api
Designed to be used by mods that only optionally interact with Vampirism as well as addon mods depending on Vampirism.

VampLib/TeamLapen Lib

Located in de.teamlapen.lib Independent mod (Contains @Mod).
Provides Helpers and Registries to automate stuff like EntityUpdates. Provides abstract classes/default implementations/interfaces to simplify things (located under de.teamlapen.lib.lib).

Setting up the development environment

If you would like to compile your own versions or even contribute to Vampirism's development you need to setup a dev environment. The following example instructions will setup IntelliJ (Free community edition or Non-Free Ultimate edition). If you already have a setup or want to use another IDE, jump here.


  1. Make sure you have the Java JDK (minimum Java 8) as well as the IntelliJ IDE installed.
  2. If you want to contribute to the development (via pull requests), fork Vampirism on Github.
  3. (Optionally) Install Git, so you can clone the repository and push changes.
  4. Clone (git clone or download Vampirism to a new "Vampirism" folder.
  5. In IntelliJ use New... -> New from Version Control -> Fill out repo, directory and name
  6. After cloning is done IntelliJ offers you to import a unlinked Gradle Project. Click this.
  7. Select Create directories for empty content roots and deselect Create seperate module per source set Image
  8. Select the gradle task setupDecompWorkspace in the IntelliJ Gradle window and add the following arguments -Xmx4g -Xms4g. Run it.
  9. Refresh the gradle project
  10. Run genIntellijRuns
  11. Make sure Settings -> Build, Execution, Deployment -> Compiler -> 'Add runtime assertions for not-null-annotated methods and parameters' is disabled (Unfortunately required, requires rebuild if the project has been built before)
  12. You might have to modify the projets compiler output path

That's it.

Eclipse or other IDEs

If you would like to setup Vampirism in another way or another IDE, you should pay regard to the following points.

  1. Make sure src/main/java, src/api/java´ and src/lib/javaare marked as source folders andsrc/main/resourcesandsrc/lib/resources` are marked as resource folders.
  2. Vampirism might have a few dependencies (e.g. Waila), which are specified in the gradle files and should be automatically downloaded and added when you run ideaModule or eclipse.
  3. Vampirism requires at least Java 8

Code Style

The code style used in this project is the IntelliJ default one.
For Eclipse you can use the settings created by @Cheaterpaul FormatFile ImportOrder


This mod is licenced under LGPLv3

This mod uses these sounds from freesound:
DST-VampireMonk.mp3 by Striderjapan -- -- License: CC Attribution
vampire bites by Bernuy -- -- License: CC Attribution
bow02.ogg by Erdie -- Licence: CC Attribution
the swarm v31m3 by Setuniman -- Licence: CC Attribution
Boiling Towel by unfa -- Licence: CC Attribution

You can’t perform that action at this time.