Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 53
    • Issues 53
    • 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
  • MythicCrucibleMythicCrucible
  • Wiki
    • Guides
  • Consumable Item

Consumable Item · Changes

Page history
Create Guides/Consumable Item authored Jun 15, 2024 by Amy's avatar Amy
Show whitespace changes
Inline Side-by-side
Showing with 17 additions and 0 deletions
+17 -0
  • Guides/Consumable-Item.md Guides/Consumable-Item.md +17 -0
  • No files found.
Guides/Consumable-Item.md 0 → 100644
View page @ a27f7bf0
**Difficulty: Beginner**
This guide will help you create an item which can be right clicked to give the player a effect, and then take the item from the player.
This is a quick and simple thing to do! This example will give the player a [potion effect](/../../../MythicMobs/-/wikis/skills/mechanics/potion) and [take the item](/../../../MythicMobs/-/wikis/skills/mechanics/takeitem) from the player afterwards!
We are making use of the [skill mechanics](/../../../MythicMobs/-/wikis/skills/mechanics/skill) in-line capabilities to keep things clean and in 1 place!
```yaml
RegenBuff:
Id: FEATHER
Display: '&dRegenerative Feather'
Skills:
- skill{s=[
- potion{type=REGEN;duration=200;level=4}
- takeitem{i=RegenBuff;a=1} @self
]} @self ~onUse
```
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • ResourcePack Generator
  • World Generation
Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions
Placeholders
  • Placeholders