Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Issues
  • #113

Closed
Open
Created Nov 19, 2022 by Mergu@Mergu219

MythicCrucible reformatting non-crucible recipe results

I'm using Denizen to create custom crafting recipes, and have noticed that occasionally my Denizen items cannot be used in the crafting recipes of other Denizen items. I have narrowed the issue down to MythicCrucible, by only using a clean install of Denizen, MythicMobs, and MythicCrucible on a test server. This issue does not occur if I am using Denizen alone.

It turns out MythicCrucible is doing some reformatting of non-crucible items in the craft item event. Specifically, the things I've found is that it converts every hex color code in lore lines to be all-uppercase, and it converts unicode \uXXXX codes into their respective characters.

This means if I have hex color codes in my Denizen items' lore, or use characters such as single quotes, MythicCrucible reformats the item in the craft event and prevents it from matching any subsequent Denizen recipes. It also prevents stacking the items together if they can be obtained through non-crafting means.

An example listening to CraftItemEvent before and after MythicCrucible alters items:

EventPriority.LOWEST:
{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"#abc123","text":"It\u0027s a test"}],"text":""}
EventPriority.HIGHEST:
{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"#ABC123","text":"It's a test"}],"text":""}

There may be other ways it changes the item. Ideally it would not alter non-crucible recipe items at all.

Edited Nov 19, 2022 by Mergu
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking