PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
54 stars 21 forks source link

java.lang.IllegalStateException: We don't have CustomModelData! Check hasCustomModelData first! #3947

Closed HaydoPotato1310 closed 2 months ago

HaydoPotato1310 commented 2 months ago

Terms

Discord Username (optional)

HaydoPotato1310

What happened?

When creating a custom set of armour, the custom colour works but when wearing the armour, it just looks like coloured armor, as if I was simply making a simple armour.

Steps to reproduce the issue

Follow the steps on the wiki to create a custom armour set, and import the textures Save the .yml file, reload itemsadder, then run /iazip. Get the armour piece and wear it

Server version

This server is running Paper version 1.21-130-master@b1b5d4c (2024-08-10T10:02:42Z) (Implementing API version 1.21-R0.1-SNAPSHOT)

ItemsAdder Version

4.0.2-alpha-test-8-pre-release-4

ProtocolLib Version

5.3.0-SNAPSHOT-726

LoneLibs Version

1.0.58

Full Server Log

https://mclo.gs/Nfgkx23

Error (optional)

No response

Problematic items yml configuration file (optional)

info:
  namespace: agritite_set
armors_rendering:
  agritite: 
    color: '#C98B26'
    layer_1: armor/agritite/agritite_layer_1
    layer_2: armor/agritite/agritite_layer_2
    use_color: false
items:
  agritite_helmet:
    display_name: '&6Agritite Helmet'
    permission: agritite_helmet
    resource:
      generate: true
    durability:
      max_custom_durability: 625
    specific_properties:
      armor:
        slot: head
        custom_armor: agritite
    attribute_modifiers:
      head:
        armor: 4
        armorToughness: 3
        attackDamage: 1
        movementSpeed: -0.004
        attackSpeed: 0.1
  agritite_chestplate:
    display_name: '&6Agritite Chestplate'
    permission: agritite_chestplate
    resource:
      generate: true
    durability:
      max_custom_durability: 800
    specific_properties:
      armor:
        slot: chest
        custom_armor: agritite
    attribute_modifiers:
      chest:
        armor: 9
        armorToughness: 3
        attackSpeed: 0.1
        attackDamage: 1
        movementSpeed: -0.004
  agritite_leggings:
    display_name: '&6Agritite Leggings'
    permission: agritite_leggings
    resource:
      generate: true 
    durability:
      max_custom_durability: 780
    specific_properties:
      armor:
        slot: legs
        custom_armor: agritite
    attribute_modifiers:
      legs:
        armor: 7
        armorToughness: 3
        attackSpeed: 0.1
        attackDamage: 1
        movementSpeed: -0.004
  agritite_boots:
    display_name: '&6Agritite Boots'
    permission: agritite_boots
    resource:
      generate: true
    durability:
      max_custom_durability: 700
    specific_properties:
      armor:
        slot: feet
        custom_armor: agritite
    attribute_modifiers:
      feet:
        armor: 4
        armorToughness: 3
        attackSpeed: 0.1
        attackDamage: 1
        movementSpeed: -0.004

Other files, you can drag and drop them here to upload. (optional)

agritite_layer_2 agritite_layer_1

Screenshots/Videos (you can drag and drop files or paste links)

Screenshot 2024-08-30 at 12 18 36
HaydoPotato1310 commented 2 months ago

I enabled armour loading broadcasts and some other things and got this message when doing /iareload [02:24:21 INFO]: HaydoPotato1310 joined the game [02:24:21 INFO]: HaydoPotato1310[/1.132.104.144:56795] logged in with entity id 33 at ([season8]-15.530528133669549, 256.0, -3.0122382075765017) [02:24:59 INFO]: HaydoPotato1310 issued server command: /iareload [02:24:59 INFO]: [ItemsAdder] Reloading... [02:24:59 INFO]: [ItemsAdder] [Host] Stopped self-host webserver on port: 25749 [02:24:59 INFO]: [ItemsAdder] [Host] Starting self-host webserver on port: 25749 [02:24:59 WARN]: [ItemsAdder] Warning: forcefully setting player resourcepack status to installed because the plugin was reloaded. [02:24:59 INFO]: [ItemsAdder] [Pack] Extracting internal contents from .jar [02:24:59 INFO]: [ItemsAdder] [Pack] Done extracting internal contents from .jar [02:24:59 INFO]: [ItemsAdder] [Init] Loading content... [02:24:59 WARN]: [ItemsAdder] Detected legacy ItemsAdder pack (pre 3.3.0). [02:24:59 WARN]: [ItemsAdder] Trying to load files, unexpected results might occur. [02:24:59 WARN]: [ItemsAdder] It's adviced to follow the new guidelines: https://a.devs.beer/ia-new-guidelines-330 [02:24:59 INFO]: [ItemsAdder] [Init] Loading YML files... [02:24:59 INFO]: [ItemsAdder] Registered armors_rendering 'cloud', color Color:[argb0xFF2EA7AB] [02:24:59 INFO]: [ItemsAdder] Registered armors_rendering 'agritite', color Color:[argb0xFFC98B26] [02:24:59 INFO]: [ItemsAdder] Registered armors_rendering 'void', color Color:[argb0xFF210A2A] [02:24:59 INFO]: [ItemsAdder] Loading item: magic_wand [02:24:59 INFO]: [ItemsAdder] generate = false, model_path: minecraft:item/stick [02:24:59 ERROR]: [ItemsAdder] Error loading the plugin, something is not configured right or an exception occured. More detail: [02:24:59 WARN]: java.lang.IllegalStateException: We don't have CustomModelData! Check hasCustomModelData first! [02:24:59 WARN]: at com.google.common.base.Preconditions.checkState(Preconditions.java:512) [02:24:59 WARN]: at org.bukkit.craftbukkit.inventory.CraftMetaItem.getCustomModelData(CraftMetaItem.java:1270) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.eH.bS(SourceFile:869) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.fk.hO(SourceFile:657) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.G.b(SourceFile:776) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.G.c(SourceFile:631) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.nS.d(SourceFile:130) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.G.a(SourceFile:625) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.ic.b(SourceFile:80) [02:24:59 WARN]: at ItemsAdder_4.0.2-alpha-test-8-pre-release-4.jar//ia.m.ic.onCommand(SourceFile:55) [02:24:59 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [02:24:59 WARN]: at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91) [02:24:59 WARN]: at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) [02:24:59 WARN]: at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31) [02:24:59 WARN]: at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19) [02:24:59 WARN]: at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) [02:24:59 WARN]: at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) [02:24:59 WARN]: at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) [02:24:59 WARN]: at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443) [02:24:59 WARN]: at net.minecraft.commands.Commands.performCommand(Commands.java:350) [02:24:59 WARN]: at net.minecraft.commands.Commands.performCommand(Commands.java:337) [02:24:59 WARN]: at net.minecraft.commands.Commands.performCommand(Commands.java:332) [02:24:59 WARN]: at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2147) [02:24:59 WARN]: at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2121) [02:24:59 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18) [02:24:59 WARN]: at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) [02:24:59 WARN]: at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1537) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) [02:24:59 WARN]: at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1514) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1507) [02:24:59 WARN]: at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1629) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304) [02:24:59 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) [02:24:59 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)

HaydoPotato1310 commented 2 months ago

Ok Update, that only happens when I set Log-items-loading to true in config.yml