Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • 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
  • MythicMobsMythicMobs
  • Issues
  • #1315

Closed
Open
Created Sep 13, 2023 by Jsteeler707@Jsteeler707

NBT Placeholder not processing in switch-case

(Using latest dev build for crucible and mythic) - This is probably just unsupported, but not sure why it wouldn't be so if that is the case hopefully its fixed! : )

Summary

Tried to make an ability weapon leveling system where the player can unlock random abilities for their swords, NBT data is assigned and all works up to the point of using a switch case to actually fire the skill. When the skill is unlocked and a player tries to use it (By left clicking) Nothing happens and console fires errors about not being able to parse placeholder. Steps to reproduce Item needs 10 kills, once 10 kills randomskills a skill that assigns an NBT Value. Now everytime a player left click skill (should) go off. (Currently spams console with cant parse placeholder) Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file. https://mclo.gs/Lc35XkO - Skill File https://mclo.gs/ZcmmV6H - Item File

Current behavior

Skill is not fired from switchcase, console spammed, placeholder not being parsed. Intended correct behavior

Placeholder is processed, switch case reads the placeholder and then fires a skill based on the input. Server log file https://mclo.gs/aWjfsrp - Error File https://mclo.gs/yIIRBTp - Entire log gl Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

Debug log snippet

[04:58:32 WARN]: [MythicMobs] This error has been saved in the Error Logs folder. Please report it on the MythicCraft forums or discord. [04:58:32 ERROR]: [MythicMobs] Failed to process placeholder <caster.item.hand.nbt.FirstSkill in xPlaceholderString{'<caster.item.hand.nbt.FirstSkill'}

Proposed fixes

NBT placeholder being processed in switch case

Edited Sep 13, 2023 by Jsteeler707
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking