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 140
    • Issues 140
    • 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
  • #1631

Closed
Open
Created Jun 20, 2024 by lilyofsteel@taigacat

hasitem condition does not work with Crucible items on latest dev builds.

The hasitem conditon works with vanilla items but not custom items from Crucible. Version is 1.20.6 Paper build 147, Mythic build 5110, Crucible build 3880. Here's an example. Try picking it up with another copy of the custom item in your inventory, and then try with a stick.

red_ice:
  Id: RED_DYE
  Display: '&f&nRed Ice'
  CustomModelData: 1
  Group: Items
  Lore:
  - '&c+1% Damage &7per stack'
  Attributes:
    All:
      Damage: -99
      AttackSpeed: 20
  Options:
    Unbreakable: true
    PreventDropping: false
    PreventStacking: false
  Hide:
    - ATTRIBUTES
    - ENCHANTS
    - UNBREAKABLE
  Skills:
  - message{msg="<trigger.itemstack_amount>";delay=1} @Self ~onPickup ?hasitem{i=red_ice}
  - message{msg="<trigger.itemstack_amount>";delay=1} @Self ~onPickup ?hasitem{i=stick}
  - stataura{auraName=red_ice;d=30;stat=BONUS_DAMAGE;type=ADDITIVE;val=1;bt=true;bartimerdisplay="&4RED ICE";bartimercolor=RED;i=1;
      onTick=[
        - message{msg="<skill.var.aura-stacks> <caster.stat.BONUS_DAMAGE> <skill.var.aura-charges>"} @Self ?hasitem{i=red_ice}
      ];
      onEnd=[
        - message{msg="refresh"} @Self ?hasitem{i=red_ice}
      ]} @Self ~onPickup
Edited Jun 20, 2024 by lilyofsteel
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking