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
Update hasItem authored Jan 01, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 3 deletions
+15 -3
  • Skills/conditions/hasItem.md Skills/conditions/hasItem.md +15 -3
  • No files found.
Skills/conditions/hasItem.md
View page @ 0f843d2a
**Description:** Tests if the target player, chest, or shulkerbox has the given number of given material **Description:** Tests if the target player, chest, or shulkerbox has exactly the given number of the given material.
--- ---
...@@ -7,17 +7,29 @@ ...@@ -7,17 +7,29 @@
| Attribute | Alias | Description | Default | | Attribute | Alias | Description | Default |
| --------- | ------- | ----------- | ------- | | --------- | ------- | ----------- | ------- |
| item | i, material, m | A material to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT | | item | i, material, m | A material to check for. Can also check for MMOItems using `mmoitems.TYPE.ID` | DIRT |
| amount | a | A Number to check for | >0 | | amount | a | The number of items to check for | >0 |
--- ---
**Examples:** **Examples:**
```yaml
Conditions:
- hasitem{i=STICK;amount=>1} true
``` ```
```yaml
Conditions: Conditions:
- hasitem{i=STICK;amount=2} true - hasitem{i=STICK;amount=<10} true
``` ```
```yaml
Conditions:
- hasitem{i=STONE;amount=1to10} true
```
--- ---
**Extra Information:** **Extra Information:**
......
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
  • 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