Skip to content

princessbinas/Vampirism

 
 

Repository files navigation

Vampirism for Minecraft 1.11 - Latest branch

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 adds several rituals which allow you to first become a vampire and then level up as a vampire, with higher levels you will get faster, stronger, better night vision etc, but it brings disadvantages with it, you take sun damage or are hunted by vampire hunters.

As a vampire you don't need to eat all that dry bread or eat these strange fruits called "apples", you prefer some red and tasty blood, which you have to suck from animals or better villagers, but be careful not every animal likes to give blood.

Links

Minecraft Forum Thread
Downloads
Help to translate

Team Join the chat at https://gitter.im/TeamLapen/Vampirism

Inactive

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

API

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 = "https://maxanier.de/maven2"
    }
}
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 gradle.properties, placed in the same directory as your build.gradle file. Example gradle.properties:

mc_version=1.10.2
vampirism_version=1.0.3

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.

Examples

Checkout this example project: https://github.com/TeamLapen/VampirismAPIExample

If you want to create an addon which access all of Vampirism's classes, not just the API, checkout this https://github.com/TeamLapen/VampirismAddonExample 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.

Vampirism

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 instructions will setup a multi module setup for IntelliJ (Free community edition or Non-Free Ultimate edition). If you already have a setup or want to use another IDE, jump here.

Preperations

  1. Make sure you have the Java JDK (minimum Java 7) 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. Create a folder for all Minecraft related development files.
  5. Create one folders "Run" inside.
  6. Clone (git clone https://github.com/TeamLapen/Vampirism) or download Vampirism to a new "Vampirism" folder next to the "Run" one.

You should have a build.gradle along other files in the "Vampirism" folder now

Import

  1. Open a console windows inside the "Vampirism" folder (on windows use shift-right click and select "Open in console")
  2. Run gradlew.bat setupDecompWorkspace ideaModule on Windows or ./gradlew setupDecompWorkspace ideaModule on Linux
  3. Open IntelliJ and create an empty project in the top folder you've created
  4. Open "Project Structure", modules and import the Vampirism.iml in the "Vampirism" folder. Make sure that src/main/java and src/lib/java are marked as source folders and /src/main/resources and src/lib/resources are marked as resource folders.
  5. Make sure you choose Java 7 as language level.

You should have Vampirism's code in the project now and no errors should be displayed

Run configurations

  1. Click Run->Edit Configurations and create a new one.
  2. Set it up like this use the second folder "Run" you've created as working directory. It will store your world and configs etc.
  3. If you want run a server use GradleStartServer instead of GradleStart

That's it.

Setting up Vampirism in another environment

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 and src/lib/java are marked as source folders and src/main/resources and src/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 7

Licence

This mod is licenced under LGPLv3

This mod uses these sounds from freesound:
DST-VampireMonk.mp3 by Striderjapan -- http://www.freesound.org/people/Striderjapan/sounds/141368/ -- License: CC Attribution
vampire bites by Bernuy -- http://www.freesound.org/people/Bernuy/sounds/268501/ -- License: CC Attribution
bow02.ogg by Erdie https://www.freesound.org/people/Erdie/sounds/65734/ -- Licence: CC Attribution
the swarm v31m3 by Setuniman https://www.freesound.org/people/Setuniman/sounds/130695/ -- Licence: CC Attribution
Boiling Towel by unfa https://www.freesound.org/people/unfa/sounds/174499/ -- Licence: CC Attribution

About

A Minecraft mod called Vampirism

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%