Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Named Items #2234

Open
NGamerW opened this issue Jun 25, 2024 · 3 comments
Open

Custom Named Items #2234

NGamerW opened this issue Jun 25, 2024 · 3 comments
Labels

Comments

@NGamerW
Copy link

NGamerW commented Jun 25, 2024

What is your Quests version / build number (do not say "latest")?

5.0.4

Describe the problem and how to replicate it.

When i save items with a custom names that should be crafted for a quest in quest, they wont get noticed when they are crafted. Like when i make a quest to craft Dared Pickaxe and the name is bold and gray it wont register it when its crafted.

Sometimes it works but mostly not, i dont know where the issue is so i cant replicate it by command. But i know that it doesnt work 99%.

Any console errors to share?

no errors

If applicable, can you provide an example quest from quests.yml?

custom1:
    name: 'Rylon: The Beginning'
    ask-message: Rylon
    finish-message: Well done!
    block-start: empty world 165358.0 66.0 165360.0
    stages:
      ordered:
        '1':
          break-block-names:
          - OAK_LOG
          break-block-amounts:
          - 6
          break-block-durability:
          - 0
          start-event: RunCommand
          start-message: Break 6 Oak Logs
        '2':
          items-to-craft:
          - ==: org.bukkit.inventory.ItemStack
            v: 3465
            type: WOODEN_PICKAXE
            meta:
              ==: ItemMeta
              meta-type: UNSPECIFIC
              display-name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"gray","text":"Dared
                Pickaxe"}],"text":""}'
              lore:
              - '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"yellow","text":"Can
                Break:"}],"text":""}'
              - '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"white","text":"-
                Stone"}],"text":""}'
          start-message: Buy the Recipe book from the allay! &c&lDont shift-click
            items from the crafting table in your inventory!
@NGamerW NGamerW added the bug label Jun 25, 2024
@PikaMug
Copy link
Owner

PikaMug commented Jul 24, 2024

Sorry for the late reply. How are your players able to craft items with custom names? As far as I know, the vanilla Crafting table does not allow this?

@IllusionTheDev
Copy link
Contributor

Sorry for the late reply. How are your players able to craft items with custom names? As far as I know, the vanilla Crafting table does not allow this?

Custom plugins can register new recipes. The easiest way to tell is to listen to PrepareItemCraftEvent on MONITOR.

@PikaMug
Copy link
Owner

PikaMug commented Jul 31, 2024

Thanks for chiming in. If OP can provide the name of the plugin they're using to register recipes, I'll consider looking into this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants