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 136
    • Issues 136
    • 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
  • Wiki
    • Skills
    • Conditions
  • itemissimilar

itemissimilar · Changes

Page history
updated layout and informations authored Jun 04, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 13 additions and 11 deletions
+13 -11
  • Skills/conditions/itemissimilar.md Skills/conditions/itemissimilar.md +13 -11
  • No files found.
Skills/conditions/itemissimilar.md
View page @ 13ed9486
Checks that targeted player's inventory slot if it's similar to an item ## Description
Checks if the target player's inventory slot holds an item that is similar to the specified one.
To be more specific, their ItemStacks will be compared and the condition will return true if they match.
**Attributes**
| Attribute | Alias | Description | Default | ## Attributes
|-----------|----------------|----------------------------------------------------------------------|---------|
| item | i, material, m | The item to check for | DIRT |
| slot | s | The inventory slot to check for. Accepts 0 to 35, or equipment slots | HAND |
--- | Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| item | i, material, m, mm, mythicitem | The item to check for | DIRT |
| slot | s | The inventory slot to check for. Accepts 0 to 35, or equipment slots | HAND |
**Examples**
## Examples
Tests the item in slot 0, or the first slot, of the targeted player's inventory. Tests the item in slot 0, or the first slot, of the targeted player's inventory.
```yml ```yml
Conditions: Conditions:
- itemissimilar{i=MyCustomItem;slot=0} true - itemissimilar{i=MyCustomItem;slot=0} true
``` ```
**Extra Information:**
- [x] Type: Entity ## Aliases
\ No newline at end of file - [x] issimilar
- [x] similarto
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples