Minecraft Blogs / Tutorial

Tutorial - Add BreedingRealism Compatability With Your Mod's Animals!

  • 1,642 views, 1 today
  • 3
  • 1
Neuroticcheeze1101's Avatar Neuroticcheeze1101
Level 60 : High Grandmaster Button Pusher
54
Hello there! You're reading this, so you must want to give your animals some functionality with my mod. Here's how.

  1. You will need to create a new folder in the root directory in your mod jar or zip. (Both extensions are supported by my mod.)Call this folder "br_supported_animals".Like this:tutmod.jar (or .zip)+--assets...+--com...+--mcmodinfo...+--br_supported_animals...
  2. Now, inside your new folder, create a .json and give it the same name that you used to register your entity. For example, if I used EntityRegistry.registerGlobalEntityID(TutEntity.class, "EntityTutorialMob", tutentityid)Then, I MUST call the .json "EntityTutorialMob", So now we have:tutmod.jar (or .zip)+--assets...+--com...+--mcmodinfo...+--br_supported_animals    +--EntityTutorialMob.json    +--EntityAnotherTutorialMob.json
  3. Wonderful! Now, for the code inside this json!Below is a readymade json file called "Sheep.json" (It will edit minecraft's sheep animal):
    Sheep.json
    { "useDefRenderer": true,                             //If true, it will replace our mod's RenderTutorialMob.class with my renderer "useDefSounds": true,                                //If true, it will use the sounds you define below
    "pregTime": 5,                                              //How long the animal is preggers for (in minecraft days) "loveSpeed": 3, "shadowSize": 0.7F,
    "sounds": {                                                    //Sounds do not work at the moment
    "male": {
    "living": "",
    "hurt": "",
    "death": "",
    "step": ""
    },
    "female": {
    "living": "",
    "hurt": "",
    "death": "",
    "step": ""
    },
    "child": {
    "living": "",
    "hurt": "",
    "death": "",
    "step": "" }
    },
    "models": {
    "male": "com.tutmod.model.ModelBull",
    "female": "com.tutmod.model.ModelRooster",
    "child": "com.tutmod.model.ModelBoar" },
    "scales": { "male": 13f, "female": 1.35f, "child": -1f },
    "textures": {
    "male": "tut:textures/entity/bull.png",
    "female": "tut:textures/entity/rooster.png",
    "child": "tut:textures/entity/boar.png" }}

Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome