54
Hello there! You're reading this, so you must want to give your animals some functionality with my mod. Here's how.
- 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...
- 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
- 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 |
tools/tracking
3269635
6
tutorial---add-breedingrealism-compatability-with-your-mods-animals
Create an account or sign in to comment.