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 144
    • Issues 144
    • 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
Update Items authored Nov 18, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 31 additions and 12 deletions
+31 -12
  • Items/Items.md Items/Items.md +31 -12
  • No files found.
Items/Items.md
View page @ b54a9824
...@@ -353,9 +353,13 @@ Used to handle the [equippable item component](https://minecraft.wiki/w/Data_com ...@@ -353,9 +353,13 @@ Used to handle the [equippable item component](https://minecraft.wiki/w/Data_com
| Dispensable | Whether the item can be dispensed by using a dispenser | true | | 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 | | 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 | | DamageOnHurt | Whether this item is damaged when the wearing entity is damaged | true |
| EquipSound | The sound to play when the item is equipped | item.armor.equip_generic |
| EntityTypes | A list of Entity Types that can equip this item | |
```yaml ```yaml
Material: IRON_HELMET KING_HELMET:
Id: PAPER
Display: '&dKing Helmet'
Equippable: Equippable:
Model: yourNamespace:thePathToYourCustomModel Model: yourNamespace:thePathToYourCustomModel
Slot: HEAD Slot: HEAD
...@@ -363,6 +367,9 @@ Used to handle the [equippable item component](https://minecraft.wiki/w/Data_com ...@@ -363,6 +367,9 @@ Used to handle the [equippable item component](https://minecraft.wiki/w/Data_com
Dispensable: true Dispensable: true
Swappable: true Swappable: true
DamageOnHurt: true DamageOnHurt: true
EquipSound: "item.armor.equip_iron"
EntityTypes:
- "PLAYER"
``` ```
#### UseCooldown #### UseCooldown
...@@ -392,21 +399,33 @@ Used to handle the [tool item component](https://minecraft.wiki/w/Data_component ...@@ -392,21 +399,33 @@ Used to handle the [tool item component](https://minecraft.wiki/w/Data_component
| Rule Attributes | Aliases | Description | Default | | Rule Attributes | Aliases | Description | Default |
|--------------------|---------|---------------------------------------------------------------|---------| |--------------------|---------|---------------------------------------------------------------|---------|
| materials | material, m | A list of materials for which this rule applies | | | materials | | A list of materials for which this rule applies. Can, optionally, also be a single block tag | |
| speed | s | If the material being mined matches, overrides the default mining speed | 1.0 | | speed | | 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 | | isCorrectForBlock | | 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 ```yaml
ExampleTool: OBSIDIAN_BREAKER:
Material: IRON_PICKAXE Id: COD
Display: '&8Obsidian Breaker'
Tool: Tool:
DamagePerBlock: 2 DamagePerBlock: 1
DefaultMiningSpeed: 3 DefaultMiningSpeed: 0.0
Rules: Rules:
- iDontThinkThisIsEvenParsed{mat=DIRT;speed=2} - materials: "OBSIDIAN,CRYING_OBSIDIAN"
- like{mat=STONE;speed=4;correct=true} speed: 10000.0f
- atAll{mat=COBBLESTONE;speed=5;correct=true} isCorrectForBlock: true
```
```yaml
TREE_BREAKER:
Id: COD
Display: '&aTree Breaker'
Tool:
DamagePerBlock: 1
DefaultMiningSpeed: 0.0
Rules:
- materials: "completes_find_tree_tutorial" # Example of a Tag being used
speed: 10000.0f
isCorrectForBlock: 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