PluginBugs / Issues-ItemsAdder

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

[BUG] Anvil Repair not working and Menu problem. #1085

Closed 00Hrtz closed 3 years ago

00Hrtz commented 3 years ago

Anvil Repair is not working for anything.

Also there's an issue with Items that do not have recipes, showing empty recipes and items that do have anvil repair set, not showing anvil repair in the ia menu.

Here's an example of how it's setup https://paste.helpch.at/uqukimaheg.bash

but just like the screenshot below it only shows an empty recipe and no anvil repair in the menu.

Screenshots As you can see here the Cutlass has an empty recipe but no tab for anvil repair, despite having no recipe in it's yml and having anvil repair present in its yml

2021-08-02

I don't use the Ores so no problem with Protocolib

LoneDev6 commented 3 years ago

Default itemsadder recipe to repair the ruby sword:

image

image

recipes:
  anvil_repair:
    ruby_sword:
      permission: itemsadder.ruby_sword
      ingredient: itemsadder:ruby
      item: itemsadder:ruby_sword

A new recipe i created to show that it also works as you wanted

image

image

recipes:
  anvil_repair:
    ruby_sword_test_no_bug:
      permission: itemsadder.ruby_sword
      ingredient: itemsadder:ruby_sword
      item: itemsadder:ruby_sword
LoneDev6 commented 3 years ago

I fixed your configuration, it was missing the recipes attribute and the permissions.

info:
  namespace: customitems           
recipes:
  anvil_repair:
    magma_sword:
      permission: magma_sword
      ingredient: EMERALD
      item: customitems:magma_sword   
items:
  magma_sword:
    display_name: '&aMagma Sword'
    permission: magma_sword
    resource:
      material: STONE_SWORD
      generate: true
      model_path: item/weapons/magma_sword
    durability:
      max_custom_durability: 2980
    attribute_modifiers:
      mainhand:
        attackDamage: 8.0
        attackSpeed: 2.0            

ALWAYS use the IDE https://ide.devs.beer/itemsadder/

00Hrtz commented 3 years ago

ia.user.repair.YOURPERMISSION

is the permission for anvil repair in case anyone has an issue with it too.

LoneDev6 commented 3 years ago

ia.user.repair.YOURPERMISSION

is the permission for anvil repair in case anyone has an issue with it too.

Should be ia.user.craft.YOURPERMISSION, like very other recipe in the plugin, try it also

00Hrtz commented 3 years ago

yep,

ia.user.craft.PERMISSION

works also.