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
  • hasItem

hasItem · Changes

Page history
updated layout and informations authored May 29, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 22 deletions
+15 -22
  • Skills/conditions/hasItem.md Skills/conditions/hasItem.md +15 -22
  • No files found.
Skills/conditions/hasItem.md
View page @ cb03e587
**Description:** Tests if the target player or an item container has exactly the given number of the given material. ## Description
Tests if the target player or an item container has exactly the given number of the given material.
---
**Attributes:** ## Attributes
| Attribute | Alias | Description | Default | | Attribute | Aliases | Description | Default |
|-----------|----------------|----------------------------------------------------------------------------------------------|---------| |-----------|-----------|----------------------------------------------------------------------|---------|
| item | i, material, m | A vanilla, or mythicitem, to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT | | item | i, material, m | The item to check for | DIRT |
| amount | a | The number of items to check for | \>0 | | amount | a | The amount to check for | >0 |
---
**Examples:** ## Examples
```yaml ```yaml
Conditions: Conditions:
- hasitem{i=stick;amount=>1} true - hasitem{i=stick;amount=>1} true
``` ```
```yaml ```yaml
Conditions: Conditions:
- hasitem{i=my_custom_item;amount=<10} true - hasitem{i=my_custom_item;amount=<10} true
``` ```
```yaml ```yaml
Conditions: Conditions:
- hasitem{i=mmoitems.SWORD.CUTLASS;amount=1to10} true - hasitem{i=mmoitems.SWORD.CUTLASS;amount=1to10} true
``` ```
\ No newline at end of file
---
**Extra Information:**
- [x] Type: Entity, Location
\ 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
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples