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
  • #123

Closed
Open
Created Jan 02, 2023 by JonahTheEngi1@JonahTheEngi1

Item Triggers not working

Hello there I have encountered an issue with all my custom items i been working on, I want the items skills to trigger from anywhere in my inventory as long as it is on a player but it seems as though non of the triggers work if its not being held other than ~onTimer and even then it only works in hotbar not in the players entire inventory.

DETAILS

Video: (HOLDING THE PET IN HAND) https://gyazo.com/0912b8a3b019150739cc8ccdd38224ad (PET IN HOTBAR) https://gyazo.com/b42e57976445cf5343af87b3dcf16ca5

MythicMobs Version: 5.2.1

MythicCrucible Version: 1.6.0

Server Version: Paper 1.19.2

The code I have used to test the triggers:

ResistancePet:
  Id: 397
  Data: 3
  Options:
    PreventStacking: True
    Player: Jonah_The_Engi
  Display: '&3Resistance &6PET'
  Lore:
  - ''
  - 'Holder'
  - ''
  Skills:
  - message{m=&cYou took this much dmg <skill.var.damage-amount>} @self ~onDamaged

I also do understand that this could be intentional and if it is could you please add an option to enable the item to work via anywhere in your inventory such as:

Options:
  activeFromInventory: True
Edited Jan 02, 2023 by JonahTheEngi1
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking