Custom Entities

Within your custom disaster you can create custom entities and then using the summon action you can spawn them in during your disaster!

To create custom mobs you have to create another skeleton body for entities outside of the other skeleton bodies. Custom entities are completely optional and do not need to be included in your custom disaster so you can ignore this section if you don't want custom entities, this is what your YAML file should look like:

# * Your settings skeleton body with info about the disaster
settings:
    # Settings info
    
# * Your core body for defining events and actions inside levels
core:
    # Core info

# Your custom items skeleton body if you decided to create one for your disaster
items:
    # Custom items
    
# This is your custom entities section notice how it is outside of the settings and core skeleton body
entities:
    customZombie:
        # * The type of vanilla mob that the entity is (refer to resources for a list of entity type names)
        type: zombie
        # Mobs custom name for death messages and name tag
        name: '&cCustom Zombie'
        # You can define equipment for your custom entity
        equipment:
            # You can reference your own custom items by name here or minecraft items (refer to resources for a list of item names)
            # 'coolSword' is a custom item that we defined in the custom items section
            mainHand: coolSword
            # 'strongerShield' is a custom item that we defined in the custom items section
            offHand: strongerShield
            helmet: iron_helmet
            chest: iron_chestplate
            legs: iron_leggings
            boots: iron_boots
        # You can define drop chances for each equipment slot on your custom mob
        dropChances:
            # Drop chances for gear, 1.0 meaning will always drop and 0.0 meaning will never drop (default: 0.1)
            mainHand: 1.0
            offHand: 0.5
            helmet: 0.1
            chest: 0.1
            legs: 0.1
            boots: 0.1
        # Health of the mob (default is mobs regular health)
        health: 30.0
        # Movement/fly speed
        speed: 0.3
        # Range it will follow targets in blocks
        range: 50.0
        # Knockback it deals
        knockback: 1.0
        # Base damage
        damage: 6.0
        # Resistance to knockback
        resistance: 3.0
    scaryMob:
        type: skeleton
        name: '&cCustom'
        equipment:
            mainHand: bow
            helmet: chainmail_helmet
            chest: chainmail_chestplate
            legs: chainmail_leggings
            boots: chainmail_boots
        dropChances:
            mainHand: 1.0
            helmet: 0.1
            chest: 0.1
            legs: 0.1
            boots: 0.1
        health: 15.0
        speed: 0.3
        range: 50.0
        knockback: 1.0
        damage: 6.0
        resistance: 3.0

Last updated