technical:example

Example JSON

  • {
    • “name”: “example”, (Name of the creature. Auto-capitalises the first letter in game.)
    • “creatureType”: “example”, (The creature type. Determines where in the Beastiary it can be found, as well as the shape of the spawn egg.)
    • “groups”: [ (The creature group. Determines AI.)
      • “example”
    • ],
    • “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.)
    • “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.)
    • “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.)
    • “enabled”: true, (Setting this to false will disable the mob entirely. Will cause the game to crash if the entity exists in game already.)
    • “spawning”: {
      • “enabled”: true, (This value should be set to false to disable the mob from spawning in-game. Does not prevent spawning via spawn egg.)
      • “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, (Whether the game will allow subspecies of the mob to spawn.)
      • “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.)
        • 0
      • ],
      • “dimensionListType”: “whitelist”, (Whether to whitelist or blacklist dimension IDs.)
      • “ignoreBiome”: true, (When set to true, will allow the mob to spawn in any biome.)
      • “biomeTags”: [ (Sets the biome tags of the biomes that the mob can spawn in.)
        • “example”
      • ],
      • “spawnWeight”: 4, (Likelihood that the mob will spawn among the other mobs in its spawner.)
      • “dungeonWeight”: 200, (Likelihood that the mob will appear in a dungeon spawner.)
      • “spawnAreaLimit”: 5, (How many mobs of this species are allowed every 16 chunks.)
      • “spawnGroupMin”: 1, (Minimum amount of mobs that will spawn in a group.)
      • “spawnGroupMax”: 3, (Maximum amount of mobs that will spawn in a group.)
      • “spawnsInLight”: true, (Whether the mob can spawn in light levels above 7.)
      • “spawnsInDark”: true, (Whether the mob can spawn in light levels below 7.)
      • “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.)
      • “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.)
      • “despawnNatural”: true, (Whether the mob will despawn naturally.)
      • “despawnForced”: false (Whether the mob will be forced to despawn.)
    • },
    • “width”: 2.5, (The height of the hitbox.)
    • “height”: 2.5, (The width of the hitbox.)
    • “experience”: 10, (How much experience the mob drops.)
    • “health”: 20, (The health level, in half-hearts, that the mob has.)
    • “defense”: 1, (The defense level of the mob.)
    • “armor”: 0, (The armor level of the mob.)
    • “speed”: 24, (The speed of the mob.)
    • “damage”: 3, (How much damage the mob deals.)
    • “attackSpeed”: 1, (How often the mob can attack.)
    • “rangedSpeed”: 0.25, (The rate of fire of the mob.)
    • “effectDuration”: 5, (How long the effect dealt by the mob lasts.)
    • “effectAmplifier”: 0, (The amplifier of the effect dealt by the mob.)
    • “pierce”: 1, (Whether the mob pierces through armor.)
    • “sight”: 32, (The range that the mob can see you from.)
    • “knockbackResistance”: 0, (The chance that the mob will resist knockback.)
    • “eggBackColor”: “#FFFFFF”, (The primary color of the spawn egg, in hex.)
    • “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”: 0,
        • “variants”: [
          • {
            • “index”: 1,
            • “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.)
            • “type”: “uncommon” (Whether the subspecies is uncommon or rare.)
          • }
        • ]
      • }
    • ],
    • “element”: “example”, (The element(s) of the mob.)
    • “diets”: [
      • “examplevore” (The diet(s) of the mob.)
    • ],
    • “peaceful”: false, (Set to true if the mob doesn't attack.)
    • “summonable”: false, (Whether you can summon the mob.)
    • “tameable”: true, (Whether you can tame the mob.)
    • “mountable”: true, (Whether you can mount the mob.)
    • “summonCost”: 2, (The summon cost of the mob.)
    • “dungeonLevel”: 3, (The dungeon level of the mob.)
    • “drops”: [ (The drop(s) of the mob.)
      • {
        • “item”: “example:drop_one”, (The namespaced ID of the item.)
        • “minAmount”: 1, (The minimum amount that the mob can drop.)
        • “maxAmount”: 2, (The maximum amount that the mob can drop.)
        • “chance”: 1 (The likelihood of the mob dropping the item, out of 1.)
      • },
    • ],
    • “sizeScale”: 1, (The scaling of the mob.)
    • “hitboxScale”: 1, (The hitbox scaling of the mob.)
  • }
  • technical/example.txt
  • Last modified: 2020/06/19 22:33
  • by reetam