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 154
    • Issues 154
    • 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
    • Mechanics
  • breakBlockAndGiveItem

breakBlockAndGiveItem · Changes

Page history
updated layout and informations authored Oct 09, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 12 deletions
+12 -12
  • skills/mechanics/breakBlockAndGiveItem.md skills/mechanics/breakBlockAndGiveItem.md +12 -12
  • No files found.
skills/mechanics/breakBlockAndGiveItem.md
View page @ d27731dd
Mechanic: breakBlockAndGiveItem ## Description
===================================
Breaks the block at a target location and gives item(s). This mechanic will also drop the block (with exception of Bedrock). REQUIRES `forcesync=true`. Breaks the block at a target location and gives item(s). This mechanic will also drop the block (with exception of Bedrock). REQUIRES `forcesync=true`.
Attributes
-------------- ## Attributes
| Attribute | Aliases | Description | Default Value | | Attribute | Aliases | Description | Default |
|-----------|-----------|------------------------------------|---------------| |-----------|-----------|----------------------------------------------------------------------|---------|
| dodrops | drops, d | Whether or not to drop the block/s | true | | dodrops | drops, d | Whether or not to drop the block/s | true |
| doeffect | effect, e | Whether or not to play the break block particles (?) | true | | doeffect | effect, e | Whether or not to play the break block particles (?) | true |
| usetool | tool, t | Whether or not to use the tool in the players hands (?) | true | | usetool | tool, t | Whether or not to use the tool in the players hands (?) | true |
| fakelooting | fl | Plays the pickup-item animation from the origin | false | | doFakeLooting | doFakeLooting, fl | Plays the pickup-item animation from the origin | false |
| items | item, i | An array of item materials, or droptables. | | | items | item, i | An array of item materials, or droptables. | |
Examples ## Examples
--------
Using Crucible Items: Using Crucible Items:
Instead of dropping dirt, it'll instead give diamonds to the player. Instead of dropping dirt, it'll instead give diamonds to the player.
...@@ -34,4 +30,8 @@ dirtToDiamonds: ...@@ -34,4 +30,8 @@ dirtToDiamonds:
- blocktype{t=DIRT,GRASS_BLOCK} true - blocktype{t=DIRT,GRASS_BLOCK} true
Skills: Skills:
- breakBlockAndGiveItem{dodrops=false;items=diamond} - breakBlockAndGiveItem{dodrops=false;items=diamond}
``` ```
\ No newline at end of file
## Aliases
- [x] blockBreakAndGiveItem
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
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
  • Intratick Scheduling
  • Dynamic Metaskills