PluginBugs / Issues-ItemsAdder

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

anvil_repair does not work #2819

Closed evilsaloon closed 1 year ago

evilsaloon commented 1 year ago

Terms

Discord tag (optional)

evilsaloon

What happened?

Anvil repair with vanilla and custom IA items does not work with 1.20 update.

Steps to reproduce the issue

  1. Add item .yml
  2. /iareload
  3. Repair does not work in anvil (see screenshot)

Server version

Current: git-Purpur-2001 (MC: 1.20.1)* Previous: git-Purpur-1996 (MC: 1.20.1)

ItemsAdder Version

ItemsAdder version 3.5.0b

ProtocolLib Version

ProtocolLib version 5.1.0-SNAPSHOT-654

LoneLibs Version

LoneLibs version 1.0.25

FULL server log

https://pastebin.com/7H4C8uu0

Error (optional)

No error in console.

Problematic items yml configuration file (optional)

info:
  namespace: testserv
items:
  testium_sword:
    nbt: "{display:{Name:'{\"italic\":false,\"translate\":\"item.testserv.testium_sword\"}'}}"
    permission: testserv
    durability:
       max_custom_durability: 2032
    attribute_modifiers:
      mainhand:
        attackDamage: 8
        attackSpeed: 2.6
      offhand:
        attackDamage: 8
        attackSpeed: 2.6
    resource:
      material: DIAMOND_SWORD
      generate: true
      textures:
        - testium/testium_sword.png
anvil_repair:
  testium_sword:
    permission: testserv
    ingredient: testserv:testium_ingot
    item: testserv:testium_sword

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)

image

yorik100 commented 1 year ago

Anvil repair with vanilla and custom IA items does not work with 1.20 update.

Works fine for me, you can try using the iageneric -> iasurvival as an example https://github.com/ItemsAdder/DefaultPack/releases

LoneDev6 commented 1 year ago

Works fine for me. There is probably a misconfiguration in your configs.

image

Item Recipe

evilsaloon commented 1 year ago

Yep, it does work. I was going off the wiki (https://itemsadder.devs.beer/plugin-usage/adding-content/recipes/anvil-repair) and thought you didn't need to have a "recipes:" layer before "anvil_repair:". My bad, sorry.

Here's a working config in case someone has the same issue:

recipes: anvil_repair: emerald_sword: enabled: true permission: iasurvival.swords.emerald_sword ingredient: EMERALD_BLOCK item: iasurvival:emerald_sword