question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with recipes not working / Items not craftable

See original GitHub issue

Sometimes the recipe of an item is not working. It needs to be “reset” with /rpgitem ITEM recipe 1 to work again. I can’t say what causes this bug, as it just happens randomly. We are not restarting the server or make any changes to the server. The bug occurs with just the server running normally.

Version: 1.11-v3.5.275

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cyilincommented, Dec 3, 2017

@Formula350 RPGItems use color codes to store item id and durability

0reactions
Formula350commented, Nov 29, 2017

That’s actually a thing I’ve been experiencing for years now, and yes it’s INCREDIBLY annoying. Where it bites me in the ass is with the Quests plugin. Usually when we create a quest that requires an RPGItem (which is quite often) we’ll just use the /rpgitem <item> give to have it on hand for input… Unfortunately, the issue ends up being that when a player comes to try and hand their item in, the Quests plugin is like “Sorry, this isn’t the item the NPC is looking for…” which of course causes frustration to no end for staff and players.

Curiously though, I had within the last week made a couple items and one of them just so happened to be an upgrade much like you’re doing. For the upgrade recipe, it too utilized the crafted RPGItem in the center of the recipe; however, I’ve yet to hear anyone have a problem with crafting the upgrade, despite the first “crafted” item I used in the recipe being acquired via the give-command. I’ll have to do some testing to see if I can see if that happens to me, as well.

I can indeed confirm that it’s an issue with RPGItems, and has been forever. The problem, as far as I’ve been able to determine over the years, is just in the Display and Hand/Type entries, as the difference between rpgitems-given and crafted are a bunch of random colorcode padding that is added/removed from the metadata. In the case of the Hand/Type, it’s at the beginning and end of that lore line.
–Example taken from the Quests.yml file, which was ‘added’ to the plugin using the in-game quest creation system while holding the item in your hand (bold colorcode are the plugin-added padding, the rest was added by me during creation):

- name-STONE_SWORD:amount-1:displayname-§0§0§0§0§0§0§7§1§6§l§eStar§r of the §4Nether:lore-§0§0§0§0§0§0§7§1§fTwo handed Claymore §c§a§f§e§0§0§0§0:lore-§f15-20 Damage:lore-§a50% chance to apply wither:lore-§aGrants regeneration 2 for 8.0s:lore-§e§o"The brightest point visible from within:lore-§e§othe Nether, forged into a mighty:lore-§e§osword.":lore-§7[Hit enemy to trigger Wither 2]:lore-§f§a[Right-click to activate Regeneration 2]:lore-§fCraftable §6Legendary Weapon

To be honest, I don’t even know why RPGItems even adds a bunch of extra color codes to the front of the item name… Unless it’s used by RPGItems to recognize (authenticate) it as an RPGItem and not just some vanilla player-created item?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Items not appearing in Recipe Book until crafting them manually
Items not appearing in Recipe Book until crafting them manually · 1. Collect wood and break down into planks and sticks · 2....
Read more >
[RESOLVED] Recipe not showing - Bugs & Technical Issues
I have noticed that I have all the materials need to craft something but it recipe is not showing in the crafting menu....
Read more >
Older items with new crafting recipes cannot be crafted
Whenever an item from a previous update with a newer crafting recipe is to be crafted, it uncrafts and the craft will not...
Read more >
All Crafting Tables Broken [SOLVED - NOT A BUG]
Even when I craft a new crafting table it only shows the above mentioned recipes and nothing else. Usually ones I craft a...
Read more >
Crafting Recipes not working in specific world
I discovered that the create mod's items show up in JEI and can be given to players, but the output doesn't show up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found