PluginBugs / Issues-ItemsAdder

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

Custom durability does not apply if the items has custom nbt #4156

Closed KrazyxWolf closed 1 day ago

KrazyxWolf commented 1 day ago

Terms

Discord Username (optional)

krazyxwolf_

What happened?

I already reported this bug in #4081 on custom armors with custom nbt but was closed for being an apparent duplicate of issue with different conditions under which it occurs and the current issue was not fixed in the version 4.0.4

Steps to reproduce the issue

Test the contents of the armor configurations and see the output of /data or /iatag of those items

Server version

[22:56:18 INFO]: Checking version, please wait... [22:56:18 INFO]: This server is running Paper version 1.20.6-151-ver/1.20.6@a4f0f5c (2024-10-30T19:13:22Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)

ItemsAdder Version

[22:57:29 INFO]: ItemsAdder version 4.0.4

ProtocolLib Version

[22:58:43 INFO]: ProtocolLib version 5.3.0

LoneLibs Version

[22:59:23 INFO]: LoneLibs version 1.0.61

Full Server Log

https://mclo.gs/aTo29Su

Error (optional)

No response

Problematic items yml configuration file (optional)

info:
  namespace: expansion
items:
  fake_helmet_nbt:
    nbt: '{HasDamage: 1b}'
    fire_resistant: true
    item_flags:
    - HIDE_ENCHANTS
    enchants:
    - PROTECTION:5
    - THORNS:4
    - UNBREAKING:5
    resource:
      generate: true
    durability:
      max_custom_durability: 140
    specific_properties:
      armor:
        slot: head
  fake_helmet:
    fire_resistant: true
    item_flags:
    - HIDE_ENCHANTS
    enchants:
    - PROTECTION:5
    - THORNS:4
    - UNBREAKING:5
    resource:
      generate: true
    durability:
      max_custom_durability: 140
    specific_properties:
      armor:
        slot: head

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

No response

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

Captura de pantalla 2024-11-13 162858

Andre601 commented 1 day ago

If the other issue was marked a duplicate, opening yet another one stating basically the same issue won't change much. If you want to help, provide your info on the original issue that has been mentioned.

Duplicate of #4039


Your issue has been marked as duplicate! Please always check the issue tracker first for any existing issues of the same problem/suggestion (including closed ones!) before creating your own. Thank you.