Mechanic

breakBlockAndGiveItem

Breaks the block at the target location

Aliases

blockBreakAndGiveItem

Configuration Fields (5)

NameTypeDefaultDescription
doDrops
drops, d
booleantrueDrops the block broken
doEffect
effect, e
booleantruePlays the block break effect
useTool
tool, t
booleantrueWhether to use the tool in the player's hand
items
item, i
DropTableThe item(s) to drop after the target block is broken. Can accept droptables
doFakeLooting
fakelooting, fl
booleanfalsePlays the pickup animation from the origin

Examples & Notes

Examples

Using Crucible Items:

Instead of dropping dirt, it’ll instead give diamonds to the player.

#Items Document
CustomItem:
  Id: GOLDEN_SHOVEL
  Display: 'Lucky Shovel'
  Skills:
  - skill{s=dirtToDiamonds;sync=true} @origin ~onBreakBlock

#Skills Document
dirtToDiamonds:
  TargetConditions:
  - blocktype{t=DIRT,GRASS_BLOCK} true
  Skills:
  - breakBlockAndGiveItem{dodrops=false;items=diamond}

Universal Mechanic Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.