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 145
    • Issues 145
    • 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
    • Items
  • Items

Items · Changes

Page history
added new options for components authored Nov 16, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 57 additions and 1 deletion
+57 -1
  • Items/Items.md Items/Items.md +57 -1
  • No files found.
Items/Items.md
View page @ 605a91d0
...@@ -344,13 +344,69 @@ NetheritePops: ...@@ -344,13 +344,69 @@ NetheritePops:
#### Equippable #### Equippable
Used to handle the [equippable item component](https://minecraft.wiki/w/Data_component_format/equippable) of an item Used to handle the [equippable item component](https://minecraft.wiki/w/Data_component_format/equippable) of an item
| Tag | Description | Default |
|-------------------|-------------------------------------------------------------------------|----------|
| Model | The resource location of the equipment model to use when equipped. If a namespace is not used, it will default to `minecraft:` | |
| Slot | The [slot](/Skills/EquipSlot) to put the item on. If not specified, the plugin will try to "guess" it based on whether the base material contains any of the following strings: `_HELMET`, `_CHESTPLATE`, `_LEGGINGS` or `_BOOTS` | |
| CameraOverlay | The resource location of the overlay texture to use when equipped. If a namespace is not used, it will default to `minecraft:` | |
| Dispensable | Whether the item can be dispensed by using a dispenser | true |
| Swappable | Whether the item can be equipped into the relevant slot by right-clicking | true |
| DamageOnHurt | Whether this item is damaged when the wearing entity is damaged | true |
```yaml ```yaml
Material: IRON_HELMET Material: IRON_HELMET
Equippable: Equippable:
Model: yourNamespace:yourCustomModel Model: yourNamespace:thePathToYourCustomModel
Slot: HEAD Slot: HEAD
CameraOverlay: yournamespace:thePathToYourTexture
Dispensable: true
Swappable: true
DamageOnHurt: true
``` ```
#### UseCooldown
Used to handle the [use_cooldown item component](https://minecraft.wiki/w/Data_component_format/use_cooldown) of an item
| Tag | Description | Default |
|-------------------|-------------------------------------------------------------------------|----------|
| CooldownGroup | The unique resource location to identify this cooldown group. If present, the item is included in a cooldown group and no longer shares cooldowns with its base item type, but instead with any other items that are part of the same cooldown group. If a namespace is not used, it will default to `minecraft:` | |
| CooldownSeconds | The cooldown duration in seconds. Must be an integer, so the cooldown cannot be defined up to the tick | |
```yaml
ExampleItem:
Material: STICK
UseCooldown:
CooldownGroup: CoolWands
CooldownSeconds: 3
```
#### Tool
Used to handle the [tool item component](https://minecraft.wiki/w/Data_component_format/tool) of an item
| Tag | Description | Default |
|-------------------|-------------------------------------------------------------------------|----------|
| DamagePerBlock | The amount of durability to remove each time a block is broken with this tool. Must be a non-negative integer | |
| DefaultMiningSpeed | The default mining speed of this tool, used if no rule overrides it | 1.0 |
| Rules | A list of rules for the tool | |
| Rule Attributes | Aliases | Description | Default |
|--------------------|---------|---------------------------------------------------------------|---------|
| materials | material, m | A list of materials for which this rule applies | |
| speed | s | If the material being mined matches, overrides the default mining speed | 1.0 |
| isCorrectForBlock | isCorrect, correct, c | If the material being mined matches, overrides whether or not this tool is considered correct to mine at its most efficient speed, and to drop items if the block's loot table requires it | false |
```yaml
ExampleTool:
Material: IRON_PICKAXE
Tool:
DamagePerBlock: 2
DefaultMiningSpeed: 3
Rules:
- iDontThinkThisIsEvenParsed{mat=DIRT;speed=2}
- like{mat=STONE;speed=4;correct=true}
- atAll{mat=COBBLESTONE;speed=5;correct=true}
```
## Examples ## Examples
More item examples can be found in the [Examples](/examples/Common-Examples#items) section. More item examples can be found in the [Examples](/examples/Common-Examples#items) section.
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information

MythicScribe MythicScribe
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns

Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques