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 147
    • Issues 147
    • 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
  • #587

Closed
Open
Created Oct 12, 2021 by Miguel Endes@EndesmanReporter

Add m=AIR to Wearing/isWearing Condition

Summary

In order to use ~onUse Equip mechanics that allow for crucible hats, a useful way for the object not to override an already existent helmet would be to be able to check if the user's head is empty. The best way would be to recognize AIR as material, or to have "NONE", or a placeholder for empty.

Usage

- skill{s=[
    - equip{delay=1;item=mmoitems{type=ARMOR;id=DIAMOND_HORDE_HELMET}:4} ?equipslot{slot=HAND}
    - consumeHeldItem{amount=1} ~onUse ?equipslot{slot=HAND}
    - sound{s=item.armor.equip_netherite;volume=1;pitch=0.8} @origin ?equipslot{slot=HAND}];sync=true} @Self ~onUse ?wearing{slot=HEAD;m=AIR}

This way, the above would only happen if the head slot is empty. Value

Allows much better and healthier integration of Helmets with 3D custom models to MMOItems/crucible

Priority

Medium-High. This can lead to important overrides of player equipment or the need to put annoying lores explaining what to do.

Implementation

:3 with love

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking