Next revision
|
Previous revision
|
technical:example [2020/02/25 16:00] tehmadtitan created |
technical:example [2020/06/19 22:33] (current) reetam PLEASE REVIEW: complete overhaul of this page. will add hyperlinks later |
====== Example json ====== | ====== Example JSON ====== |
* "name": "Example", //(The name of the mob)// | * { |
* "creatureType": "Example", //(Creature type gives it blank)// | * "name": "example", // (Name of the creature. Auto-capitalises the first letter in game.)// |
* "groups": [ ; | * "creatureType": "example", // (The creature type. Determines where in the Beastiary it can be found, as well as the shape of the spawn egg.)// |
* "Example" //(Creature group gives it its AI)// | * "groups": [ // (The creature group. Determines AI.)// |
* ], ; | * "example" |
* "entityClass": "com.lycanitesmobs.core.entity.creature.EntityExample", //(where the actual storage of the java info of the mob is housed)// | * ], |
* "modelClass": "com.lycanitesmobs.client.model.creature.ModelExample", (where the actual storage of the Model info of the mob is housed) | * "entityClass": "com.lycanitesmobs.core.entity.creature.EntityExample", // (The entity class that the mob will use. Not recommended to change as it can be unstable if you don't know what you are doing.)// |
* "loadDefault": true, (makes it so the Default version of this json is reloaded when launching the mod making sure that you don't accidentally mess up your version and giving a handy backup)) | * "modelClass": "com.lycanitesmobs.client.model.creature.ModelExample", // (The model class that the mob will use. Not recommended to change as it can be unstable if you don't know what you are doing.)// |
* "enabled": true, (this tells the mod if the creature should be used or not changing this to false will make the creature not spawn) | * "loadDefault": true, // **(Set this to false whenever you edit the config file, otherwise it will reset! Leaving it as or setting it to true is useful for regenerating specific config files.)**// |
* "spawning": { ; | * "enabled": true, // **(Setting this to false will disable the mob entirely. Will cause the game to crash if the entity exists in game already.)**// |
* "enabled": true, (This tells the mod if this mob should normally spawn in the world) | * "spawning": { |
* "spawners": [ ; | * "enabled": true, // (This value should be set to false to disable the mob from spawning in-game. Does not prevent spawning via spawn egg.)// |
* "Example" (This tells the mod where the mob will normally spawn in the world) | * "spawners": [ // (A list of spawners for the mob to use. You can find a list of spawners in the spawners folder in the config.)// |
* ], ; | * "example", |
* "disableSubspecies": false, (This tells the mod if subspecies should be disabled in the world) | * ], |
* "dimensionIds": [ (This tells the mod where subspecies should be disabled (if disabled) in the world) | * "disableSubspecies": false, // (Whether the game will allow subspecies of the mob to spawn.)// |
* -1, ; | * "dimensionIds": [ // (List of dimension IDs that the mob can spawn in. Overworld is 0, Nether is -1, End is 1. Most dimension mods have the dimension id in the config.)// |
* 1 ; | * 0 |
* ], ; | * ], |
* "dimensionListType": "blacklist", ( | * "dimensionListType": "whitelist", // (Whether to whitelist or blacklist dimension IDs.)// |
* "ignoreBiome": false, ( | * "ignoreBiome": true, // (When set to true, will allow the mob to spawn in any biome.)// |
* "biomes": [ ( | * "biomeTags": [ // (Sets the biome tags of the biomes that the mob can spawn in.)// |
* "Example" ; | * "example" |
* ], ; | * ], |
* "spawnWeight": 6, ( | * "spawnWeight": 4, // (Likelihood that the mob will spawn among the other mobs in its spawner.)// |
* "dungeonWeight": 200, ( | * "dungeonWeight": 200, // (Likelihood that the mob will appear in a dungeon spawner.)// |
* "spawnAreaLimit": 5, ( | * "spawnAreaLimit": 5, // (How many mobs of this species are allowed every 16 chunks.)// |
* "spawnGroupMin": 1, | * "spawnGroupMin": 1, // (Minimum amount of mobs that will spawn in a group.)// |
* "spawnGroupMax": 3, | * "spawnGroupMax": 3, // (Maximum amount of mobs that will spawn in a group.)// |
* "spawnsInLight": false, | * "spawnsInLight": true, // (Whether the mob can spawn in light levels above 7.)// |
* "spawnsInDark": true, | * "spawnsInDark": true, // (Whether the mob can spawn in light levels below 7.)// |
* "worldDayMin": -1, | * "worldDayMin": -1, // (The amount of days that must pass before the spawner is enabled in a world. Set to -1 for it to start enabled.)// |
* "despawnNatural": true, | * "worldDayMax": 32767, // (The amount of days that must pass before the spawner is disabled in a world. Remove the line for it to never be disabled.)// |
* "despawnForced": false | * "despawnNatural": true, // (Whether the mob will despawn naturally.)// |
* }, | * "despawnForced": false // (Whether the mob will be forced to despawn.)// |
* "width": 0.9, | * }, |
* "height": 0.9, | * "width": 2.5, // (The height of the hitbox.)// |
* "experience": 5, | * "height": 2.5, // (The width of the hitbox.)// |
* "health": 5, | * "experience": 10, // (How much experience the mob drops.)// |
* "defense": 0, | * "health": 20, // (The health level, in half-hearts, that the mob has.)// |
* "armor": 0, | * "defense": 1, // (The defense level of the mob.)// |
* "speed": 28, | * "armor": 0, // (The armor level of the mob.)// |
* "damage": 1, | * "speed": 24, // (The speed of the mob.)// |
* "attackSpeed": 2, | * "damage": 3, // (How much damage the mob deals.)// |
* "rangedSpeed": 1, | * "attackSpeed": 1, // (How often the mob can attack.)// |
* "effectDuration": 5, | * "rangedSpeed": 0.25, // (The rate of fire of the mob.)// |
* "effectAmplifier": 0, | * "effectDuration": 5, // (How long the effect dealt by the mob lasts.)// |
* "pierce": 1, | * "effectAmplifier": 0, // (The amplifier of the effect dealt by the mob.)// |
* "sight": 24, | * "pierce": 1, // (Whether the mob pierces through armor.)// |
* "knockbackResistance": 0, | * "sight": 32, // (The range that the mob can see you from.)// |
* "eggBackColor": "#537d41", | * "knockbackResistance": 0, // (The chance that the mob will resist knockback.)// |
* "eggForeColor": "#dfb752", | * "eggBackColor": "#FFFFFF", // (The primary color of the spawn egg, in hex.)// |
* "subspecies": [ | * "eggForeColor": "#000000", // (The secondary color of the spawn egg, in hex.)// |
* { | * "subspecies": [ // (The types of subspecies it has. The subspecies must match the textures given in the files.)// |
* "index": 1, | * { |
* "name": "Example", | * "index": 0, |
* "type": "uncommon" | * "variants": [ |
* }, | * { |
* { | * "index": 1, |
* "index": 2, | * "name": "example", // (The name of the subspecies. Can be scarlet, golden, verdant, keppel, azure, violet, dark, ashen, lux, and russet, meaning red, yellow, green, cyan, blue, magenta, black, grey, white, and brown respectively.)// |
* "name": "Example2", | * "type": "uncommon" // (Whether the subspecies is uncommon or rare.)// |
* "type": "uncommon" | * } |
* }, | * ] |
* { | * } |
* "index": 3, | * ], |
* "name": "Challenge", | * "element": "example", // (The element(s) of the mob.)// |
* "scale": 3, | * "diets": [ |
* "type": "rare" | * "examplevore" // (The diet(s) of the mob.)// |
* } | * ], |
* ], | * "peaceful": false, // (Set to true if the mob doesn't attack.)// |
* "element": "Example", | * "summonable": false, // (Whether you can summon the mob.)// |
* "diets": [ | * "tameable": true, // (Whether you can tame the mob.)// |
* "Example", | * "mountable": true, // (Whether you can mount the mob.)// |
* "Example2" | * "summonCost": 2, // (The summon cost of the mob.)// |
* ], | * "dungeonLevel": 3, // (The dungeon level of the mob.)// |
* "peaceful": false, | * "drops": [ // (The drop(s) of the mob.)// |
* "summonable": true, | * { |
* "tameable": false, | * "item": "example:drop_one", // (The namespaced ID of the item.)// |
* "mountable": false, | * "minAmount": 1, // (The minimum amount that the mob can drop.)// |
* "summonCost": 4, | * "maxAmount": 2, // (The maximum amount that the mob can drop.)// |
* "dungeonLevel": 1, | * "chance": 1 // (The likelihood of the mob dropping the item, out of 1.)// |
* "drops": [ (this section tells the mod what items it should drop and how many) | * }, |
* { | * ], |
* "item": "minecraft:Item", | * "sizeScale": 1, // (The scaling of the mob.)// |
* "burningItem": "minecraft:Item", | * "hitboxScale": 1, // (The hitbox scaling of the mob.)// |
* "minAmount": 1, | * } |
* "maxAmount": 5, | |
* "chance": 1 | |
* }, | |
* { | |
* "item": "minecraft:Item", | |
* "minAmount": 1, | |
* "maxAmount": 8, | |
* "chance": 1 | |
* }, | |
* { | |
* "item": "lycanitesmobs:soulstoneExample", | |
* "minAmount": 1, | |
* "maxAmount": 1, | |
* "chance": 1, | |
* "subspecies": 3 (this section restricts this item to a certain subspecies) | |
* } | |
* ], | |
* "sizeScale": 1, (this section tells the scale size of the model) | |
* "hitboxScale": 1 (this section tells the scale size of the hitbox) | |
* } | |