Skip to content

Exception during initialization #416

Closed
@Katalijst

Description

@Katalijst

Agreements

  • I am using an official build of Nova.
  • I am running the latest version of Nova.
  • I am using a server software supported by Nova
  • I am running the latest version of my server software.
  • I have checked for similar issues.

Check for plugin incompatibilites

There are no other plugins running on my server.

Plugin Version, Server Software, Server Version

Nova-0.17-alpha.4 ; paper-1.21.1-13

Nova Addons and Versions

My WIP addon

Expected behavior

Nova should load fully without error

Observed/Actual behavior

It throws an exception during initialization

Steps to reproduce

The code :

@Init(stage = InitStage.PRE_PACK)
object Armor : ArmorRegistry by NovaAdventureCraft.registry {
    
    val AZURITE = armor("azurite_armor") {
        texture {
            texture(layer1 = "armor/azurite_layer_1", layer2 = "armor/azurite_layer_2")
        }
    }
}
@Init(stage = InitStage.PRE_PACK)
object Items : ItemRegistry by NovaAdventureCraft.registry {
    var AZURITE_HELMET = registerItem("azurite_helmet", Wearable(Armor.AZURITE, EquipmentSlot.HEAD, Sound.ITEM_ARMOR_EQUIP_NETHERITE), Damageable, Enchantable)
    var AZURITE_CHESTPLATE = registerItem("azurite_chestplate", Wearable(Armor.AZURITE, EquipmentSlot.CHEST, Sound.ITEM_ARMOR_EQUIP_NETHERITE), Damageable, Enchantable)
    var AZURITE_LEGGINGS = registerItem("azurite_leggings", Wearable(Armor.AZURITE, EquipmentSlot.LEGS, Sound.ITEM_ARMOR_EQUIP_NETHERITE), Damageable, Enchantable)
    var AZURITE_BOOTS = registerItem("azurite_boots", Wearable(Armor.AZURITE, EquipmentSlot.FEET, Sound.ITEM_ARMOR_EQUIP_NETHERITE), Damageable, Enchantable)
}

Server log

latest.log

Errors

[Nova] An exception occurred during initialization

Additional context

If needed I can provide access to the full code of my addon

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions